diff --git a/examples/go.mod b/examples/go.mod index 32e53d78..e29208e7 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -2,7 +2,7 @@ module github.com/pulumi/pulumi-gitlab/examples/v6 go 1.21 -require github.com/pulumi/pulumi/pkg/v3 v3.86.0 +require github.com/pulumi/pulumi/pkg/v3 v3.90.1 require ( cloud.google.com/go v0.110.4 // indirect @@ -13,12 +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.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 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect - github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.4.1 // indirect github.com/Azure/go-autorest v14.2.0+incompatible // indirect github.com/Azure/go-autorest/autorest v0.11.28 // indirect github.com/Azure/go-autorest/autorest/adal v0.9.21 // indirect @@ -29,7 +24,6 @@ require ( github.com/Azure/go-autorest/autorest/validation v0.3.1 // indirect github.com/Azure/go-autorest/logger v0.2.1 // indirect github.com/Azure/go-autorest/tracing v0.6.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect github.com/Microsoft/go-winio v0.5.2 // indirect github.com/ProtonMail/go-crypto v0.0.0-20221026131551-cf6655e29de4 // indirect github.com/acomagu/bufpipe v1.0.3 // indirect @@ -41,21 +35,14 @@ require ( github.com/atotto/clipboard v0.1.4 // indirect github.com/aws/aws-sdk-go v1.44.298 // indirect github.com/aws/aws-sdk-go-v2 v1.17.3 // indirect - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.3 // indirect github.com/aws/aws-sdk-go-v2/config v1.15.15 // indirect github.com/aws/aws-sdk-go-v2/credentials v1.12.10 // indirect github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.12.9 // indirect - github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.21 // indirect github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.27 // indirect github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.21 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.3.16 // indirect - github.com/aws/aws-sdk-go-v2/internal/v4a v1.0.6 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.9.3 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.1.10 // indirect github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.9 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.13.9 // indirect github.com/aws/aws-sdk-go-v2/service/kms v1.18.1 // indirect - github.com/aws/aws-sdk-go-v2/service/s3 v1.27.2 // indirect github.com/aws/aws-sdk-go-v2/service/sso v1.11.13 // indirect github.com/aws/aws-sdk-go-v2/service/sts v1.16.10 // indirect github.com/aws/smithy-go v1.13.5 // indirect @@ -71,7 +58,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/dimchansky/utfbom v1.1.1 // indirect github.com/djherbis/times v1.5.0 // indirect - github.com/dustin/go-humanize v1.0.1 // 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 @@ -80,7 +66,6 @@ require ( github.com/go-git/go-git/v5 v5.6.0 // indirect github.com/gofrs/uuid v4.2.0+incompatible // indirect github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect github.com/golang-jwt/jwt/v4 v4.4.2 // indirect github.com/golang/glog v1.1.0 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect @@ -111,25 +96,21 @@ require ( github.com/hashicorp/go-version v1.6.0 // indirect github.com/hashicorp/golang-lru v0.5.4 // indirect github.com/hashicorp/hcl v1.0.0 // indirect - github.com/hashicorp/hcl/v2 v2.16.2 // indirect + github.com/hashicorp/hcl/v2 v2.17.0 // indirect github.com/hashicorp/vault/api v1.8.2 // indirect github.com/hashicorp/vault/sdk v0.6.1 // indirect github.com/hashicorp/yamux v0.1.1 // indirect - github.com/ijc/Gotty v0.0.0-20170406111628-a8b993ba6abd // indirect github.com/imdario/mergo v0.3.13 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/json-iterator/go v1.1.12 // indirect - github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect 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-isatty v0.0.18 // indirect github.com/mattn/go-localereader v0.0.1 // indirect github.com/mattn/go-runewidth v0.0.14 // indirect - github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b // indirect github.com/mitchellh/copystructure v1.2.0 // indirect github.com/mitchellh/go-homedir v1.1.0 // indirect github.com/mitchellh/go-ps v1.0.0 // indirect @@ -150,13 +131,13 @@ require ( github.com/pgavlin/goldmark v1.1.33-0.20200616210433-b5eb04559386 // indirect github.com/pierrec/lz4 v2.6.1+incompatible // indirect github.com/pjbgf/sha1cd v0.3.0 // indirect - github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect 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.86.0 // indirect + github.com/pulumi/esc v0.5.6 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.90.1 // indirect github.com/rivo/uniseg v0.4.4 // indirect - github.com/rogpeppe/go-internal v1.9.0 // indirect + github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/ryanuber/go-glob v1.0.0 // indirect github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 // indirect @@ -166,7 +147,7 @@ require ( github.com/skeema/knownhosts v1.1.0 // indirect github.com/spf13/cobra v1.7.0 // indirect github.com/spf13/pflag v1.0.5 // indirect - github.com/stretchr/testify v1.8.3 // indirect + github.com/stretchr/testify v1.8.4 // indirect github.com/texttheater/golang-levenshtein v1.0.1 // indirect github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 // indirect github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect @@ -180,14 +161,15 @@ require ( go.uber.org/atomic v1.9.0 // indirect gocloud.dev v0.27.0 // indirect gocloud.dev/secrets/hashivault v0.27.0 // indirect - golang.org/x/crypto v0.9.0 // indirect - golang.org/x/mod v0.10.0 // indirect - golang.org/x/net v0.10.0 // indirect + golang.org/x/crypto v0.14.0 // indirect + golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect + golang.org/x/mod v0.13.0 // indirect + golang.org/x/net v0.17.0 // indirect golang.org/x/oauth2 v0.8.0 // indirect golang.org/x/sync v0.2.0 // indirect - golang.org/x/sys v0.9.0 // indirect - golang.org/x/term v0.8.0 // indirect - golang.org/x/text v0.9.0 // indirect + golang.org/x/sys v0.13.0 // indirect + golang.org/x/term v0.13.0 // indirect + golang.org/x/text v0.13.0 // indirect golang.org/x/time v0.0.0-20220722155302-e5dcc9cfc0b9 // indirect golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect google.golang.org/api v0.126.0 // indirect diff --git a/examples/go.sum b/examples/go.sum index ab745422..350f37bf 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -93,8 +93,6 @@ 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.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= @@ -103,16 +101,12 @@ github.com/Azure/azure-sdk-for-go v66.0.0+incompatible h1:bmmC38SlE8/E81nNADlgmV github.com/Azure/azure-sdk-for-go v66.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= github.com/Azure/azure-sdk-for-go/sdk/azcore v0.19.0/go.mod h1:h6H6c8enJmmocHUbLiiGY6sx7f9i+X3m1CHdd5c6Rdw= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0/go.mod h1:uGG2W01BaETf0Ozp+QxxKJdMBNRWPdstHG0Fmdwn1/U= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.1 h1:tz19qLF65vuu2ibfTqGVJxG/zZAI27NEIIbvAOQwYbw= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.1/go.mod h1:uGG2W01BaETf0Ozp+QxxKJdMBNRWPdstHG0Fmdwn1/U= github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.11.0/go.mod h1:HcM1YX14R7CJcghJGOYCgdezslRSVzqwLf/q+4Y2r/0= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 h1:Yoicul8bnVdQrhDMTHxdEckRGX01XvwXDHUT9zYZ3k0= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0/go.mod h1:+6sju8gk8FRmSajX3Oz4G5Gm7P+mbqE9FVaXXFYTkCM= github.com/Azure/azure-sdk-for-go/sdk/internal v0.7.0/go.mod h1:yqy467j36fJxcRV2TzfVZ1pCb5vxm4BtZPUdYWe/Xo8= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 h1:jp0dGvZ7ZK0mgqnTSClMxa5xuRL7NZgHameVYF6BurY= github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus v1.0.2/go.mod h1:LH9XQnMr2ZYxQdVdCrzLO9mxeDyrDFa6wbSI3x5zCZk= -github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.4.1 h1:QSdcrd/UFJv6Bp/CfoVf2SrENpFn9P6Yh8yb+xNhYMM= github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.4.1/go.mod h1:eZ4g6GUvXiGulfIbbhh1Xr4XwUYaYaWMqzGD/284wCA= github.com/Azure/go-amqp v0.17.0/go.mod h1:9YJ3RhxRT1gquYnzpZO1vcYMMpAdJT+QEg6fwmw9Zlg= github.com/Azure/go-amqp v0.17.5/go.mod h1:9YJ3RhxRT1gquYnzpZO1vcYMMpAdJT+QEg6fwmw9Zlg= @@ -156,7 +150,6 @@ github.com/Azure/go-autorest/logger v0.2.1 h1:IG7i4p/mDa2Ce4TRyAO8IHnVhAVF3RFU+Z github.com/Azure/go-autorest/logger v0.2.1/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= github.com/Azure/go-autorest/tracing v0.6.0 h1:TYi4+3m5t6K48TGI9AUdb+IzbnSxvnvUMfuitfgcfuo= github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU= -github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 h1:WVsrXCnHlDDX8ls+tootqRE87/hL9S/g4ewig9RsD/c= github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= @@ -192,8 +185,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-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= github.com/ProtonMail/go-crypto v0.0.0-20221026131551-cf6655e29de4 h1:ra2OtmuW0AE5csawV4YXMNGNQQXvLRps3z2Z59OPO+I= github.com/ProtonMail/go-crypto v0.0.0-20221026131551-cf6655e29de4/go.mod h1:UBYPn8k0D56RtnR8RFQMjmh4KrZzWJ5o7Z9SYjossQ8= @@ -511,8 +502,6 @@ github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46t 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= -github.com/creack/pty v1.1.17 h1:QeVUsEDNrLBW4tMgZHvxy18sKtr6VI492kBhUfhDJNI= -github.com/creack/pty v1.1.17/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4= github.com/cyphar/filepath-securejoin v0.2.2/go.mod h1:FpkQEhXnPnOthhzymB7CGsFk2G9VLXONKD9G7QGMM+4= github.com/cyphar/filepath-securejoin v0.2.3/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4= github.com/d2g/dhcp4 v0.0.0-20170904100407-a1d1b6c41b1c/go.mod h1:Ct2BUK8SB0YC1SMSibvLzxjeJLnrYEVLULFNiHY9YfQ= @@ -538,7 +527,6 @@ github.com/djherbis/times v1.5.0 h1:79myA211VwPhFTqUk8xehWrsEO+zcIZj0zT8mXPVARU= github.com/djherbis/times v1.5.0/go.mod h1:5q7FDLvbNg1L/KaBmPcWlVR9NmoKo3+ucqUA3ijQhA0= github.com/dnaeon/go-vcr v1.0.1/go.mod h1:aBB1+wY4s93YsC3HHjMBMrwTj2R9FHDzUr9KyGc8n1E= github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= -github.com/dnaeon/go-vcr v1.2.0 h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI= github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ= github.com/docker/cli v0.0.0-20191017083524-a8ff7f821017/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= github.com/docker/distribution v0.0.0-20190905152932-14b96e55d84c/go.mod h1:0+TTO4EOBfRPhZXAeF1Vu+W3hHZ8eLp8PgKVZlcvtFY= @@ -560,8 +548,6 @@ github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96/go.mod h1:Qh8CwZ github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE= github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= -github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= -github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= @@ -751,7 +737,6 @@ github.com/gogo/protobuf v1.3.0/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXP github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= github.com/golang-jwt/jwt/v4 v4.0.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= github.com/golang-jwt/jwt/v4 v4.2.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= @@ -993,8 +978,8 @@ github.com/hashicorp/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+l github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= -github.com/hashicorp/hcl/v2 v2.16.2 h1:mpkHZh/Tv+xet3sy3F9Ld4FyI2tUpWe9x3XtPx9f1a0= -github.com/hashicorp/hcl/v2 v2.16.2/go.mod h1:JRmR89jycNkrrqnMmvPDMd56n1rQJ2Q6KocSLCMCXng= +github.com/hashicorp/hcl/v2 v2.17.0 h1:z1XvSUyXd1HP10U4lrLg5e0JMVz6CPaJvAgxM0KNZVY= +github.com/hashicorp/hcl/v2 v2.17.0/go.mod h1:gJyW2PTShkJqQBKpAmPO3yxMxIuoXkOF2TpqXzrQyx4= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= github.com/hashicorp/mdns v1.0.4/go.mod h1:mtBihi+LeNXGtG8L9dX59gAEa12BDtBQSp4v/YAJqrc= @@ -1016,9 +1001,6 @@ 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-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= github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg= github.com/iancoleman/strcase v0.2.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= @@ -1026,8 +1008,6 @@ github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1: github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20210905161508-09a460cdf81d/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= github.com/ianlancetaylor/demangle v0.0.0-20220319035150-800ac71e25c2/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= -github.com/ijc/Gotty v0.0.0-20170406111628-a8b993ba6abd h1:anPrsicrIi2ColgWTVPk+TrN42hJIWlfPHSBP9S0ZkM= -github.com/ijc/Gotty v0.0.0-20170406111628-a8b993ba6abd/go.mod h1:3LVOLeyx9XVvwPgrt2be44XgSqndprz1G18rSk8KD84= github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= github.com/imdario/mergo v0.3.8/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= github.com/imdario/mergo v0.3.10/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= @@ -1115,8 +1095,6 @@ github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7V github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= github.com/karrick/godirwalk v1.8.0/go.mod h1:H5KPZjojv4lE+QYImBI8xVtrBRgYrIVsaRPx4tDPEn4= github.com/karrick/godirwalk v1.10.3/go.mod h1:RoGL9dQei4vP9ilrpETWE8CLOZ1kiN0LhBygSwrAsHA= -github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= -github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4= github.com/kevinburke/ssh_config v1.2.0/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= @@ -1137,9 +1115,8 @@ github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFB github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= -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.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA= github.com/kr/pty v1.1.8/go.mod h1:O1sed60cT9XZ5uDucP5qwvh+TE3NnUj51EiZO/lmSfw= @@ -1147,7 +1124,6 @@ github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348/go.mod h1:B69LEHPfb2qLo0BaaOLcbitczOKLWTsrBG9LczfCD4k= -github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= @@ -1179,7 +1155,6 @@ github.com/matryer/is v1.2.0 h1:92UTHpy8CDwaJ08GqLDzhhuixiBUUD1p3AU6PHddz4A= github.com/matryer/is v1.2.0/go.mod h1:2fLPjFQM9rhQ15aVEtbuwhJinnOqrmgXPNdZsdwlWXA= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ= -github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= 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= @@ -1210,8 +1185,6 @@ github.com/mattn/go-shellwords v1.0.12/go.mod h1:EZzvwXDESEeg03EKmM+RmDnNOPKG4lL github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= github.com/maxbrunsfeld/counterfeiter/v6 v6.2.2/go.mod h1:eD9eIE7cdwcMi9rYluz88Jz2VyhSmden33/aXg4oVIY= -github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b h1:j7+1HpAFS1zy5+Q4qx1fWh90gTKwiN4QCGoY9TWyyO4= -github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= github.com/microsoft/ApplicationInsights-Go v0.4.4/go.mod h1:fKRUseBqkw6bDiXTs3ESTiU/4YTIHsQS4W3fP2ieF4U= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso= @@ -1390,7 +1363,6 @@ github.com/pierrec/lz4 v2.6.1+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi github.com/pjbgf/sha1cd v0.3.0 h1:4D5XXmUUBUl/xQ6IjCkEAbqXskkq/4O7LmGn0AqMDs4= github.com/pjbgf/sha1cd v0.3.0/go.mod h1:nZ1rrWOcGJ5uZgEEVL1VUM9iRQiZvWdbZjkKyFzPPsI= github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4/go.mod h1:4OwLy04Bl9Ef3GJJCoec+30X3LQs/0/m4HFRt/2LUSA= -github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 h1:Qj1ukM4GlMWXNdMBuXcXfz/Kw9s1qm0CLY32QxuSImI= github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4/go.mod h1:N6UoU20jOqggOuDwUaBQpluzLNDqif3kq9z2wpdYEfQ= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1-0.20171018195549-f15c970de5b7/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= @@ -1462,10 +1434,12 @@ 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.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/esc v0.5.6 h1:4WV3X7OEVcChIwbSG+JxhZDdmq/q7lFPaSjHRYlPwmI= +github.com/pulumi/esc v0.5.6/go.mod h1:wpwNfVS5fV7Kd51j4dJ6FWYlKfxdqyppgp0gtkzqH04= +github.com/pulumi/pulumi/pkg/v3 v3.90.1 h1:RFC/eqTbDfIvfeVQL8WaPmyQr1KzZhAGIIDGr9jj9y8= +github.com/pulumi/pulumi/pkg/v3 v3.90.1/go.mod h1:J+WbfN30g3FfQifpLjQPI0UhPsC9ASEePLK8Nix06A8= +github.com/pulumi/pulumi/sdk/v3 v3.90.1 h1:iT4t57N92WGhEQtg+KVDEmYzgfEyri39eihQzcNmtrM= +github.com/pulumi/pulumi/sdk/v3 v3.90.1/go.mod h1:zYaQQibB2pYKy/uG4c4YkX7lQIBpZ0KsuMaq/3HsIBQ= 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= @@ -1478,8 +1452,8 @@ github.com/rogpeppe/go-internal v1.1.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFR github.com/rogpeppe/go-internal v1.2.2/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= -github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= -github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= +github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= +github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= github.com/rs/cors v1.8.2/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= github.com/rs/zerolog v1.13.0/go.mod h1:YbFCdg8HfsridGWAh22vktObvhZbQsZXe4/zB0OKkWU= @@ -1579,8 +1553,8 @@ github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1F github.com/stretchr/testify v1.7.5/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/stretchr/testify v1.8.3 h1:RP3t2pwF7cMEbC1dqtB6poj3niw/9gnV4Cjg5oW5gtY= -github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= github.com/syndtr/gocapability v0.0.0-20170704070218-db04d3cc01c8/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww= github.com/syndtr/gocapability v0.0.0-20180916011248-d98352740cb2/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww= @@ -1786,8 +1760,8 @@ golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0 golang.org/x/crypto v0.0.0-20220826181053-bd7e27e6170d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw= golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= -golang.org/x/crypto v0.9.0 h1:LF6fAI+IutBocDJ2OT0Q1g8plpYljMZ4+lty+dsqw3g= -golang.org/x/crypto v0.9.0/go.mod h1:yrmDGqONDYtNj3tH8X9dzUun2m2lzPa9ngI6/RUPGR0= +golang.org/x/crypto v0.14.0 h1:wBqGXzWJW6m1XrIKlAH0Hs1JJ7+9KBwnIO8v66Q9cHc= +golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= 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= @@ -1798,6 +1772,8 @@ golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u0 golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= +golang.org/x/exp v0.0.0-20231006140011-7918f672742d h1:jtJma62tbqLibJ5sFQz8bKtEM8rJBtfilJ2qTU199MI= +golang.org/x/exp v0.0.0-20231006140011-7918f672742d/go.mod h1:ldy0pHrwJyGW56pPQzzkH36rKxoZW1tw7ZJpeKx+hdo= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= @@ -1828,8 +1804,8 @@ golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.6.0/go.mod h1:4mET923SAdbXp2ki8ey+zGs1SLqsuM2Y0uvdZR/fUNI= -golang.org/x/mod v0.10.0 h1:lFO9qtOdlre5W1jxS3r/4szv2/6iXxScdzjoBMXNhYk= -golang.org/x/mod v0.10.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.13.0 h1:I/DsJXRlw/8l/0c24sM9yb0T4z9liZTduXvdAWYiysY= +golang.org/x/mod v0.13.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20180530234432-1e491301e022/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -1912,8 +1888,8 @@ golang.org/x/net v0.0.0-20220802222814-0bcc04d9c69b/go.mod h1:YDH+HFinaLZZlnHAfS golang.org/x/net v0.0.0-20220826154423-83b083e8dc8b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= -golang.org/x/net v0.10.0 h1:X2//UzNDwYmtCLn7To6G58Wr6f5ahEAQgKNzv9Y951M= -golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= +golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= +golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= 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,8 +2080,8 @@ 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.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.9.0 h1:KS/R3tvhPqvJvwcKfnBHJwwthS11LRhmM5D59eEXa0s= -golang.org/x/sys v0.9.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE= +golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 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= @@ -2114,8 +2090,8 @@ golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuX golang.org/x/term v0.0.0-20220722155259-a9ba230a4035/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= -golang.org/x/term v0.8.0 h1:n5xxQn2i3PC0yLAbjTpNT85q/Kgzcr2gIoX9OrJUols= -golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= +golang.org/x/term v0.13.0 h1:bb+I9cTfFazGW51MZqBVmZy7+JEJMouUHTUSKVQLBek= +golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U= 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= @@ -2127,8 +2103,8 @@ golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE= -golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= +golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= diff --git a/provider/go.mod b/provider/go.mod index 1e598e30..cbadf043 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -3,9 +3,9 @@ module github.com/pulumi/pulumi-gitlab/provider/v6 go 1.21 require ( - github.com/pulumi/pulumi-terraform-bridge/pf v0.17.0 - github.com/pulumi/pulumi-terraform-bridge/v3 v3.61.0 - github.com/pulumi/pulumi/sdk/v3 v3.86.0 + github.com/pulumi/pulumi-terraform-bridge/pf v0.18.2 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.63.0 + github.com/pulumi/pulumi/sdk/v3 v3.90.1 gitlab.com/gitlab-org/terraform-provider-gitlab v0.0.0 ) @@ -28,12 +28,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.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 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect - github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.4.1 // indirect github.com/Azure/go-autorest v14.2.0+incompatible // indirect github.com/Azure/go-autorest/autorest v0.11.28 // indirect github.com/Azure/go-autorest/autorest/adal v0.9.21 // indirect @@ -44,7 +39,6 @@ require ( github.com/Azure/go-autorest/autorest/validation v0.3.1 // indirect github.com/Azure/go-autorest/logger v0.2.1 // indirect github.com/Azure/go-autorest/tracing v0.6.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect github.com/BurntSushi/toml v1.2.1 // indirect github.com/Masterminds/goutils v1.1.1 // indirect github.com/Masterminds/semver v1.5.0 // indirect @@ -62,21 +56,14 @@ require ( github.com/atotto/clipboard v0.1.4 // indirect github.com/aws/aws-sdk-go v1.44.298 // indirect github.com/aws/aws-sdk-go-v2 v1.17.3 // indirect - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.3 // indirect github.com/aws/aws-sdk-go-v2/config v1.15.15 // indirect github.com/aws/aws-sdk-go-v2/credentials v1.12.10 // indirect github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.12.9 // indirect - github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.21 // indirect github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.27 // indirect github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.21 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.3.16 // indirect - github.com/aws/aws-sdk-go-v2/internal/v4a v1.0.6 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.9.3 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.1.10 // indirect github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.9 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.13.9 // indirect github.com/aws/aws-sdk-go-v2/service/kms v1.18.1 // indirect - github.com/aws/aws-sdk-go-v2/service/s3 v1.27.2 // indirect github.com/aws/aws-sdk-go-v2/service/sso v1.11.13 // indirect github.com/aws/aws-sdk-go-v2/service/sts v1.16.10 // indirect github.com/aws/smithy-go v1.13.5 // indirect @@ -95,7 +82,6 @@ require ( github.com/dcarbone/terraform-plugin-framework-utils/v3 v3.4.0 // indirect github.com/dimchansky/utfbom v1.1.1 // indirect github.com/djherbis/times v1.5.0 // indirect - github.com/dustin/go-humanize v1.0.1 // indirect github.com/edsrzf/mmap-go v1.1.0 // indirect github.com/emirpasic/gods v1.18.1 // indirect github.com/ettle/strcase v0.1.1 // indirect @@ -106,13 +92,12 @@ require ( github.com/go-git/go-git/v5 v5.8.1 // indirect github.com/gofrs/uuid v4.2.0+incompatible // indirect github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect github.com/golang-jwt/jwt/v4 v4.4.2 // indirect github.com/golang/glog v1.1.0 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/protobuf v1.5.3 // indirect github.com/golang/snappy v0.0.4 // indirect - github.com/google/go-cmp v0.5.9 // indirect + github.com/google/go-cmp v0.6.0 // indirect github.com/google/go-querystring v1.1.0 // indirect github.com/google/s2a-go v0.1.4 // indirect github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect @@ -144,7 +129,7 @@ require ( github.com/hashicorp/hcl/v2 v2.18.0 // indirect github.com/hashicorp/hil v0.0.0-20190212132231-97b3a9cdfa93 // indirect github.com/hashicorp/logutils v1.0.0 // indirect - github.com/hashicorp/terraform-plugin-framework v1.4.1 // indirect + github.com/hashicorp/terraform-plugin-framework v1.4.2 // indirect github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 // indirect github.com/hashicorp/terraform-plugin-go v0.19.0 // indirect github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect @@ -157,22 +142,18 @@ require ( github.com/hashicorp/yamux v0.1.1 // indirect github.com/huandu/xstrings v1.3.2 // indirect github.com/iancoleman/strcase v0.2.0 // indirect - github.com/ijc/Gotty v0.0.0-20170406111628-a8b993ba6abd // indirect github.com/imdario/mergo v0.3.15 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/json-iterator/go v1.1.12 // indirect - github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect github.com/kevinburke/ssh_config v1.2.0 // indirect github.com/klauspost/compress v1.16.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-isatty v0.0.18 // indirect github.com/mattn/go-localereader v0.0.1 // indirect github.com/mattn/go-runewidth v0.0.14 // indirect - github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b // indirect github.com/mitchellh/cli v1.1.5 // indirect github.com/mitchellh/copystructure v1.2.0 // indirect github.com/mitchellh/go-homedir v1.1.0 // indirect @@ -196,19 +177,19 @@ require ( github.com/pgavlin/goldmark v1.1.33-0.20200616210433-b5eb04559386 // indirect github.com/pierrec/lz4 v2.6.1+incompatible // indirect github.com/pjbgf/sha1cd v0.3.0 // indirect - github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect 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/posener/complete v1.2.3 // indirect - github.com/pulumi/pulumi-java/pkg v0.9.6 // indirect + github.com/pulumi/esc v0.5.6 // indirect + github.com/pulumi/pulumi-java/pkg v0.9.8 // indirect github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.6 // indirect github.com/pulumi/pulumi-yaml v1.2.2 // indirect - github.com/pulumi/pulumi/pkg/v3 v3.86.0 // indirect + github.com/pulumi/pulumi/pkg/v3 v3.90.1 // 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 - github.com/rogpeppe/go-internal v1.9.0 // indirect + github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/ryanuber/go-glob v1.0.0 // indirect github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect @@ -241,16 +222,17 @@ require ( go.uber.org/atomic v1.9.0 // indirect gocloud.dev v0.27.0 // indirect gocloud.dev/secrets/hashivault v0.27.0 // indirect - golang.org/x/crypto v0.13.0 // indirect - golang.org/x/mod v0.12.0 // indirect - golang.org/x/net v0.13.0 // indirect + golang.org/x/crypto v0.14.0 // indirect + golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect + golang.org/x/mod v0.13.0 // indirect + golang.org/x/net v0.17.0 // indirect golang.org/x/oauth2 v0.8.0 // indirect - golang.org/x/sync v0.2.0 // indirect - golang.org/x/sys v0.12.0 // indirect - golang.org/x/term v0.12.0 // indirect + golang.org/x/sync v0.4.0 // indirect + golang.org/x/sys v0.13.0 // indirect + golang.org/x/term v0.13.0 // indirect golang.org/x/text v0.13.0 // indirect golang.org/x/time v0.3.0 // indirect - golang.org/x/tools v0.9.3 // indirect + golang.org/x/tools v0.14.0 // indirect golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect google.golang.org/api v0.126.0 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/provider/go.sum b/provider/go.sum index f133e4e5..87e77de0 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -629,8 +629,6 @@ 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.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= @@ -639,16 +637,12 @@ github.com/Azure/azure-sdk-for-go v66.0.0+incompatible h1:bmmC38SlE8/E81nNADlgmV github.com/Azure/azure-sdk-for-go v66.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= github.com/Azure/azure-sdk-for-go/sdk/azcore v0.19.0/go.mod h1:h6H6c8enJmmocHUbLiiGY6sx7f9i+X3m1CHdd5c6Rdw= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0/go.mod h1:uGG2W01BaETf0Ozp+QxxKJdMBNRWPdstHG0Fmdwn1/U= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.1 h1:tz19qLF65vuu2ibfTqGVJxG/zZAI27NEIIbvAOQwYbw= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.1/go.mod h1:uGG2W01BaETf0Ozp+QxxKJdMBNRWPdstHG0Fmdwn1/U= github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.11.0/go.mod h1:HcM1YX14R7CJcghJGOYCgdezslRSVzqwLf/q+4Y2r/0= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 h1:Yoicul8bnVdQrhDMTHxdEckRGX01XvwXDHUT9zYZ3k0= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0/go.mod h1:+6sju8gk8FRmSajX3Oz4G5Gm7P+mbqE9FVaXXFYTkCM= github.com/Azure/azure-sdk-for-go/sdk/internal v0.7.0/go.mod h1:yqy467j36fJxcRV2TzfVZ1pCb5vxm4BtZPUdYWe/Xo8= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 h1:jp0dGvZ7ZK0mgqnTSClMxa5xuRL7NZgHameVYF6BurY= github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus v1.0.2/go.mod h1:LH9XQnMr2ZYxQdVdCrzLO9mxeDyrDFa6wbSI3x5zCZk= -github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.4.1 h1:QSdcrd/UFJv6Bp/CfoVf2SrENpFn9P6Yh8yb+xNhYMM= github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.4.1/go.mod h1:eZ4g6GUvXiGulfIbbhh1Xr4XwUYaYaWMqzGD/284wCA= github.com/Azure/go-amqp v0.17.0/go.mod h1:9YJ3RhxRT1gquYnzpZO1vcYMMpAdJT+QEg6fwmw9Zlg= github.com/Azure/go-amqp v0.17.5/go.mod h1:9YJ3RhxRT1gquYnzpZO1vcYMMpAdJT+QEg6fwmw9Zlg= @@ -692,7 +686,6 @@ github.com/Azure/go-autorest/logger v0.2.1 h1:IG7i4p/mDa2Ce4TRyAO8IHnVhAVF3RFU+Z github.com/Azure/go-autorest/logger v0.2.1/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= github.com/Azure/go-autorest/tracing v0.6.0 h1:TYi4+3m5t6K48TGI9AUdb+IzbnSxvnvUMfuitfgcfuo= github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU= -github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 h1:WVsrXCnHlDDX8ls+tootqRE87/hL9S/g4ewig9RsD/c= github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/toml v1.2.1 h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak= @@ -740,8 +733,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-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= github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7/go.mod h1:z4/9nQmJSSwwds7ejkxaJwO37dru3geImFUdJlaLzQo= github.com/ProtonMail/go-crypto v0.0.0-20230717121422-5aa5874ade95 h1:KLq8BE0KwCL+mmXnjLWEAOYO+2l2AE4YMmqG1ZpZHBs= @@ -1097,8 +1088,6 @@ github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46t 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= -github.com/creack/pty v1.1.17 h1:QeVUsEDNrLBW4tMgZHvxy18sKtr6VI492kBhUfhDJNI= -github.com/creack/pty v1.1.17/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4= github.com/cyphar/filepath-securejoin v0.2.2/go.mod h1:FpkQEhXnPnOthhzymB7CGsFk2G9VLXONKD9G7QGMM+4= github.com/cyphar/filepath-securejoin v0.2.3/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4= github.com/d2g/dhcp4 v0.0.0-20170904100407-a1d1b6c41b1c/go.mod h1:Ct2BUK8SB0YC1SMSibvLzxjeJLnrYEVLULFNiHY9YfQ= @@ -1126,7 +1115,6 @@ github.com/djherbis/times v1.5.0 h1:79myA211VwPhFTqUk8xehWrsEO+zcIZj0zT8mXPVARU= github.com/djherbis/times v1.5.0/go.mod h1:5q7FDLvbNg1L/KaBmPcWlVR9NmoKo3+ucqUA3ijQhA0= github.com/dnaeon/go-vcr v1.0.1/go.mod h1:aBB1+wY4s93YsC3HHjMBMrwTj2R9FHDzUr9KyGc8n1E= github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= -github.com/dnaeon/go-vcr v1.2.0 h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI= github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ= github.com/docker/cli v0.0.0-20191017083524-a8ff7f821017/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= github.com/docker/distribution v0.0.0-20190905152932-14b96e55d84c/go.mod h1:0+TTO4EOBfRPhZXAeF1Vu+W3hHZ8eLp8PgKVZlcvtFY= @@ -1148,8 +1136,6 @@ github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96/go.mod h1:Qh8CwZ github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE= github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= -github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= -github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= @@ -1369,7 +1355,6 @@ github.com/gogo/protobuf v1.3.0/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXP github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= github.com/golang-jwt/jwt/v4 v4.0.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= github.com/golang-jwt/jwt/v4 v4.2.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= @@ -1442,8 +1427,9 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-containerregistry v0.5.1/go.mod h1:Ct15B4yir3PLOP5jsy0GNeYVaIZs/MK/Jz5any1wFW0= github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= @@ -1667,8 +1653,8 @@ github.com/hashicorp/terraform-json v0.4.0/go.mod h1:eAbqb4w0pSlRmdvl8fOyHAi/+8j github.com/hashicorp/terraform-json v0.14.0/go.mod h1:5A9HIWPkk4e5aeeXIBbkcOvaZbIYnAIkEyqP2pNSckM= github.com/hashicorp/terraform-json v0.17.1 h1:eMfvh/uWggKmY7Pmb3T85u86E2EQg6EQHgyRwf3RkyA= github.com/hashicorp/terraform-json v0.17.1/go.mod h1:Huy6zt6euxaY9knPAFKjUITn8QxUFIe9VuSzb4zn/0o= -github.com/hashicorp/terraform-plugin-framework v1.4.1 h1:ZC29MoB3Nbov6axHdgPbMz7799pT5H8kIrM8YAsaVrs= -github.com/hashicorp/terraform-plugin-framework v1.4.1/go.mod h1:XC0hPcQbBvlbxwmjxuV/8sn8SbZRg4XwGMs22f+kqV0= +github.com/hashicorp/terraform-plugin-framework v1.4.2 h1:P7a7VP1GZbjc4rv921Xy5OckzhoiO3ig6SGxwelD2sI= +github.com/hashicorp/terraform-plugin-framework v1.4.2/go.mod h1:GWl3InPFZi2wVQmdVnINPKys09s9mLmTZr95/ngLnbY= github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 h1:HOjBuMbOEzl7snOdOoUfE2Jgeto6JOjLVQ39Ls2nksc= github.com/hashicorp/terraform-plugin-framework-validators v0.12.0/go.mod h1:jfHGE/gzjxYz6XoUwi/aYiiKrJDeutQNUtGQXkaHklg= github.com/hashicorp/terraform-plugin-go v0.19.0 h1:BuZx/6Cp+lkmiG0cOBk6Zps0Cb2tmqQpDM3iAtnhDQU= @@ -1704,9 +1690,6 @@ 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-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= github.com/huandu/xstrings v1.3.1/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= github.com/huandu/xstrings v1.3.2 h1:L18LIDzqlW6xN2rEkpdV8+oL/IXWJ1APd+vsdYy4Wdw= @@ -1718,8 +1701,6 @@ github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1: github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20210905161508-09a460cdf81d/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= github.com/ianlancetaylor/demangle v0.0.0-20220319035150-800ac71e25c2/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= -github.com/ijc/Gotty v0.0.0-20170406111628-a8b993ba6abd h1:anPrsicrIi2ColgWTVPk+TrN42hJIWlfPHSBP9S0ZkM= -github.com/ijc/Gotty v0.0.0-20170406111628-a8b993ba6abd/go.mod h1:3LVOLeyx9XVvwPgrt2be44XgSqndprz1G18rSk8KD84= github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= github.com/imdario/mergo v0.3.8/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= github.com/imdario/mergo v0.3.10/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= @@ -1814,7 +1795,6 @@ github.com/jung-kurt/gofpdf v1.0.0/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+ github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes= github.com/karrick/godirwalk v1.8.0/go.mod h1:H5KPZjojv4lE+QYImBI8xVtrBRgYrIVsaRPx4tDPEn4= github.com/karrick/godirwalk v1.10.3/go.mod h1:RoGL9dQei4vP9ilrpETWE8CLOZ1kiN0LhBygSwrAsHA= -github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4= @@ -1888,7 +1868,6 @@ github.com/matryer/is v1.2.0 h1:92UTHpy8CDwaJ08GqLDzhhuixiBUUD1p3AU6PHddz4A= github.com/matryer/is v1.2.0/go.mod h1:2fLPjFQM9rhQ15aVEtbuwhJinnOqrmgXPNdZsdwlWXA= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ= -github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= 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= @@ -1921,8 +1900,6 @@ github.com/mattn/go-sqlite3 v1.14.14/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4 github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= github.com/maxbrunsfeld/counterfeiter/v6 v6.2.2/go.mod h1:eD9eIE7cdwcMi9rYluz88Jz2VyhSmden33/aXg4oVIY= -github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b h1:j7+1HpAFS1zy5+Q4qx1fWh90gTKwiN4QCGoY9TWyyO4= -github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= github.com/microsoft/ApplicationInsights-Go v0.4.4/go.mod h1:fKRUseBqkw6bDiXTs3ESTiU/4YTIHsQS4W3fP2ieF4U= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso= @@ -2121,7 +2098,6 @@ github.com/pierrec/lz4/v4 v4.1.15/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFu github.com/pjbgf/sha1cd v0.3.0 h1:4D5XXmUUBUl/xQ6IjCkEAbqXskkq/4O7LmGn0AqMDs4= github.com/pjbgf/sha1cd v0.3.0/go.mod h1:nZ1rrWOcGJ5uZgEEVL1VUM9iRQiZvWdbZjkKyFzPPsI= github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4/go.mod h1:4OwLy04Bl9Ef3GJJCoec+30X3LQs/0/m4HFRt/2LUSA= -github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 h1:Qj1ukM4GlMWXNdMBuXcXfz/Kw9s1qm0CLY32QxuSImI= github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4/go.mod h1:N6UoU20jOqggOuDwUaBQpluzLNDqif3kq9z2wpdYEfQ= github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= @@ -2198,22 +2174,24 @@ 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-java/pkg v0.9.6 h1:UJrOAsYHRchwb4QlfI9Q224qg1TOI3rIsI6DDTUnn30= -github.com/pulumi/pulumi-java/pkg v0.9.6/go.mod h1:c6rSw/+q4O0IImgJ9axxoC6QesbPYWBaG5gimbHouUQ= -github.com/pulumi/pulumi-terraform-bridge/pf v0.17.0 h1:ygYjaQmmCAdxlzHbueJeS5jtEyyQ3MMG+S0dNqL/g8Q= -github.com/pulumi/pulumi-terraform-bridge/pf v0.17.0/go.mod h1:h5+uTlLGVEGh6W4RTIbqVIhL3FSAi0VpImxUTYFM7tU= +github.com/pulumi/esc v0.5.6 h1:4WV3X7OEVcChIwbSG+JxhZDdmq/q7lFPaSjHRYlPwmI= +github.com/pulumi/esc v0.5.6/go.mod h1:wpwNfVS5fV7Kd51j4dJ6FWYlKfxdqyppgp0gtkzqH04= +github.com/pulumi/pulumi-java/pkg v0.9.8 h1:c8mYsalnRXA2Ibgvv6scefOn6mW1Vb0UT0mcDqjsivQ= +github.com/pulumi/pulumi-java/pkg v0.9.8/go.mod h1:c6rSw/+q4O0IImgJ9axxoC6QesbPYWBaG5gimbHouUQ= +github.com/pulumi/pulumi-terraform-bridge/pf v0.18.2 h1:lSm5nbZETkeVNJQTcGOmuHCSXPhDj72dFC2Wan08Wpg= +github.com/pulumi/pulumi-terraform-bridge/pf v0.18.2/go.mod h1:4ii0lFkIQMhCZg5du0xEtAB36Kk0WuLtDVO/ntTxRIs= 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.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/v3 v3.63.0 h1:otdmkNsMGyZ+proUZClznZo+cEchkSSkmaGcq+Gf+6s= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.63.0/go.mod h1:6YVbDo019OeHkQWo9MnUbBy6cCgCQeoXZDjmR9SYmUA= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.6 h1:uy8P3aaAbrOrGvytvCb2KsYqZMA9TJiY8IKeVQgNAJo= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.6/go.mod h1:uw1IN0Mlvi5SL0cmWzmKqZ+ZDNueRIXkr9aE+XQkrug= 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.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/pulumi/pkg/v3 v3.90.1 h1:RFC/eqTbDfIvfeVQL8WaPmyQr1KzZhAGIIDGr9jj9y8= +github.com/pulumi/pulumi/pkg/v3 v3.90.1/go.mod h1:J+WbfN30g3FfQifpLjQPI0UhPsC9ASEePLK8Nix06A8= +github.com/pulumi/pulumi/sdk/v3 v3.90.1 h1:iT4t57N92WGhEQtg+KVDEmYzgfEyri39eihQzcNmtrM= +github.com/pulumi/pulumi/sdk/v3 v3.90.1/go.mod h1:zYaQQibB2pYKy/uG4c4YkX7lQIBpZ0KsuMaq/3HsIBQ= 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= @@ -2234,8 +2212,9 @@ github.com/rogpeppe/go-internal v1.1.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFR github.com/rogpeppe/go-internal v1.2.2/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= -github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= +github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= +github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= github.com/rs/cors v1.8.2/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= github.com/rs/zerolog v1.13.0/go.mod h1:YbFCdg8HfsridGWAh22vktObvhZbQsZXe4/zB0OKkWU= @@ -2601,8 +2580,9 @@ golang.org/x/crypto v0.3.1-0.20221117191849-2c476679df9a/go.mod h1:hebNnKkNXi2Uz golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= golang.org/x/crypto v0.8.0/go.mod h1:mRqEX+O9/h5TFCrQhkgjo2yKi0yYA+9ecGkdQoHrywE= golang.org/x/crypto v0.11.0/go.mod h1:xgJhtzW8F9jGdVFWZESrid1U1bjeNy4zgy5cRr/CIio= -golang.org/x/crypto v0.13.0 h1:mvySKfSWJ+UKUii46M40LOvyWfN0s2U+46/jDd0e6Ck= golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc= +golang.org/x/crypto v0.14.0 h1:wBqGXzWJW6m1XrIKlAH0Hs1JJ7+9KBwnIO8v66Q9cHc= +golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= 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= @@ -2618,6 +2598,8 @@ golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u0 golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= golang.org/x/exp v0.0.0-20220827204233-334a2380cb91/go.mod h1:cyybsKvd6eL0RnXn6p/Grxp8F5bW7iYuBgsNCOHpMYE= +golang.org/x/exp v0.0.0-20231006140011-7918f672742d h1:jtJma62tbqLibJ5sFQz8bKtEM8rJBtfilJ2qTU199MI= +golang.org/x/exp v0.0.0-20231006140011-7918f672742d/go.mod h1:ldy0pHrwJyGW56pPQzzkH36rKxoZW1tw7ZJpeKx+hdo= golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= @@ -2662,8 +2644,9 @@ golang.org/x/mod v0.6.0/go.mod h1:4mET923SAdbXp2ki8ey+zGs1SLqsuM2Y0uvdZR/fUNI= golang.org/x/mod v0.7.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.12.0 h1:rmsUpXtvNzj340zd98LZ4KntptpfRHwpFOHG188oHXc= golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.13.0 h1:I/DsJXRlw/8l/0c24sM9yb0T4z9liZTduXvdAWYiysY= +golang.org/x/mod v0.13.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20180530234432-1e491301e022/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180811021610-c39426892332/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -2760,8 +2743,9 @@ golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns= golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= golang.org/x/net v0.12.0/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA= -golang.org/x/net v0.13.0 h1:Nvo8UFsZ8X3BhAC9699Z1j7XQ3rsZnUUm7jfBEk1ueY= golang.org/x/net v0.13.0/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA= +golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= +golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= 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= @@ -2815,8 +2799,8 @@ golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20220819030929-7fc1605a5dde/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.2.0 h1:PUR+T4wwASmuSTYdKjYHI5TD22Wy5ogLU5qZCOLxBrI= -golang.org/x/sync v0.2.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.4.0 h1:zxkM55ReGkDlKSM+Fu41A+zmbZuaPVbGMzvvdUPznYQ= +golang.org/x/sync v0.4.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -2977,8 +2961,9 @@ golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.12.0 h1:CM0HF96J0hcLAwsHPJZjfdNzs0gftsLfgKt57wWHJ0o= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE= +golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 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= @@ -2994,8 +2979,9 @@ golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= golang.org/x/term v0.7.0/go.mod h1:P32HKFT3hSsZrRxla30E9HqToFYAQPCMs/zFMBUFqPY= golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= golang.org/x/term v0.10.0/go.mod h1:lpqdcUyK/oCiQxvxVrppt5ggO2KCZ5QblwqPnfZ6d5o= -golang.org/x/term v0.12.0 h1:/ZfYdc3zq+q02Rv9vGqTeSItdzZTSNDmfTi0mBAuidU= golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU= +golang.org/x/term v0.13.0 h1:bb+I9cTfFazGW51MZqBVmZy7+JEJMouUHTUSKVQLBek= +golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U= 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= @@ -3123,8 +3109,8 @@ golang.org/x/tools v0.2.0/go.mod h1:y4OqIKeOV/fWJetJ8bXPU1sEVniLMIyDAZWeHdV+NTA= golang.org/x/tools v0.3.0/go.mod h1:/rWhSS2+zyEVwoJf8YAX6L2f0ntZ7Kn/mGgAWcipA5k= golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/tools v0.7.0/go.mod h1:4pg6aUX35JBAogB10C9AtvVL+qowtN4pT3CGSQex14s= -golang.org/x/tools v0.9.3 h1:Gn1I8+64MsuTb/HpH+LmQtNas23LhUVr3rYZ0eKuaMM= -golang.org/x/tools v0.9.3/go.mod h1:owI94Op576fPu3cIGQeHs3joujW/2Oc6MtlxbF5dfNc= +golang.org/x/tools v0.14.0 h1:jvNa2pY0M4r62jkRQ6RwEZZyPcymeL9XZMLBbV7U2nc= +golang.org/x/tools v0.14.0/go.mod h1:uYBEerGOWcJyEORxN+Ek8+TT266gXkNlHdJBwexUsBg= golang.org/x/xerrors v0.0.0-20190410155217-1f06c39b4373/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/sdk/dotnet/Application.cs b/sdk/dotnet/Application.cs index 7e491b5b..3c0b79d2 100644 --- a/sdk/dotnet/Application.cs +++ b/sdk/dotnet/Application.cs @@ -17,29 +17,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/applications.html) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var oidc = new GitLab.Application("oidc", new() - /// { - /// Confidential = true, - /// RedirectUrl = "https://mycompany.com", - /// Scopes = new[] - /// { - /// "openid", - /// }, - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// Gitlab applications can be imported with their id, e.g. diff --git a/sdk/dotnet/ApplicationSettings.cs b/sdk/dotnet/ApplicationSettings.cs index c0d597fe..b9a9f9f9 100644 --- a/sdk/dotnet/ApplicationSettings.cs +++ b/sdk/dotnet/ApplicationSettings.cs @@ -9,27 +9,6 @@ namespace Pulumi.GitLab { - /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// // Set the 2FA settings - /// var @this = new GitLab.ApplicationSettings("this", new() - /// { - /// RequireTwoFactorAuthentication = true, - /// TwoFactorGracePeriod = 24, - /// }); - /// - /// }); - /// ``` - /// [GitLabResourceType("gitlab:index/applicationSettings:ApplicationSettings")] public partial class ApplicationSettings : global::Pulumi.CustomResource { diff --git a/sdk/dotnet/Branch.cs b/sdk/dotnet/Branch.cs index 8ed3776f..9a425ea8 100644 --- a/sdk/dotnet/Branch.cs +++ b/sdk/dotnet/Branch.cs @@ -14,32 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/branches.html) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// // Create a project for the branch to use - /// var exampleProject = new GitLab.Project("exampleProject", new() - /// { - /// Description = "An example project", - /// NamespaceId = gitlab_group.Example.Id, - /// }); - /// - /// var exampleBranch = new GitLab.Branch("exampleBranch", new() - /// { - /// Ref = "main", - /// Project = exampleProject.Id, - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// Gitlab branches can be imported with a key composed of `<project_id>:<branch_name>`, e.g. diff --git a/sdk/dotnet/ClusterAgent.cs b/sdk/dotnet/ClusterAgent.cs index c1cac1af..c566e442 100644 --- a/sdk/dotnet/ClusterAgent.cs +++ b/sdk/dotnet/ClusterAgent.cs @@ -23,39 +23,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = new GitLab.ClusterAgent("example", new() - /// { - /// Project = "12345", - /// }); - /// - /// // Optionally, configure the agent as described in - /// // https://docs.gitlab.com/ee/user/clusters/agent/install/index.html#create-an-agent-configuration-file - /// var exampleAgentConfig = new GitLab.RepositoryFile("exampleAgentConfig", new() - /// { - /// Project = example.Project, - /// Branch = "main", - /// FilePath = example.Name.Apply(name => $".gitlab/agents/{name}"), - /// Content = @" gitops: - /// ... - /// ", - /// AuthorEmail = "terraform@example.com", - /// AuthorName = "Terraform", - /// CommitMessage = example.Name.Apply(name => $"feature: add agent config for {name}"), - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// GitLab Agent for Kubernetes can be imported with the following command and the id pattern `<project>:<agent-id>` diff --git a/sdk/dotnet/ClusterAgentToken.cs b/sdk/dotnet/ClusterAgentToken.cs index 335542a7..bb0c3524 100644 --- a/sdk/dotnet/ClusterAgentToken.cs +++ b/sdk/dotnet/ClusterAgentToken.cs @@ -18,63 +18,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html#create-an-agent-token) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// using Helm = Pulumi.Helm; - /// - /// return await Deployment.RunAsync(() => - /// { - /// // Create token for an agent - /// var example = new GitLab.ClusterAgentToken("example", new() - /// { - /// Project = "12345", - /// AgentId = 42, - /// Description = "some token", - /// }); - /// - /// var thisProject = GitLab.GetProject.Invoke(new() - /// { - /// PathWithNamespace = "my-org/example", - /// }); - /// - /// var thisClusterAgent = new GitLab.ClusterAgent("thisClusterAgent", new() - /// { - /// Project = thisProject.Apply(getProjectResult => getProjectResult.Id), - /// }); - /// - /// var thisClusterAgentToken = new GitLab.ClusterAgentToken("thisClusterAgentToken", new() - /// { - /// Project = thisProject.Apply(getProjectResult => getProjectResult.Id), - /// AgentId = thisClusterAgent.AgentId, - /// Description = "Token for the my-agent used with `gitlab-agent` Helm Chart", - /// }); - /// - /// var gitlabAgent = new Helm.Index.Helm_release("gitlabAgent", new() - /// { - /// Name = "gitlab-agent", - /// Namespace = "gitlab-agent", - /// CreateNamespace = true, - /// Repository = "https://charts.gitlab.io", - /// Chart = "gitlab-agent", - /// Version = "1.2.0", - /// Set = new[] - /// { - /// - /// { - /// { "name", "config.token" }, - /// { "value", thisClusterAgentToken.Token }, - /// }, - /// }, - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// A token for a GitLab Agent for Kubernetes can be imported with the following command and the id pattern `<project>:<agent-id>:<token-id>` diff --git a/sdk/dotnet/ComplianceFramework.cs b/sdk/dotnet/ComplianceFramework.cs index c3c7f95d..225fe0b8 100644 --- a/sdk/dotnet/ComplianceFramework.cs +++ b/sdk/dotnet/ComplianceFramework.cs @@ -20,28 +20,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab GraphQL API docs](https://docs.gitlab.com/ee/api/graphql/reference/#mutationcreatecomplianceframework) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var sample = new GitLab.ComplianceFramework("sample", new() - /// { - /// Color = "#87BEEF", - /// Default = false, - /// Description = "A HIPAA Compliance Framework", - /// NamespacePath = "top-level-group", - /// PipelineConfigurationFullPath = ".hipaa.yml@top-level-group/compliance-frameworks", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// Gitlab compliance frameworks can be imported with a key composed of `<namespace_path>:<framework_id>`, e.g. diff --git a/sdk/dotnet/DeployKey.cs b/sdk/dotnet/DeployKey.cs index c2a86435..f1d71f26 100644 --- a/sdk/dotnet/DeployKey.cs +++ b/sdk/dotnet/DeployKey.cs @@ -16,26 +16,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/deploy_keys.html) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = new GitLab.DeployKey("example", new() - /// { - /// Key = "ssh-ed25519 AAAA...", - /// Project = "example/deploying", - /// Title = "Example deploy key", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// GitLab deploy keys can be imported using an id made up of `{project_id}:{deploy_key_id}`, e.g. `project_id` can be whatever the [get single project api][get_single_project] takes for its `:id` value, so for example diff --git a/sdk/dotnet/DeployKeyEnable.cs b/sdk/dotnet/DeployKeyEnable.cs index 8b74749f..725a4a45 100644 --- a/sdk/dotnet/DeployKeyEnable.cs +++ b/sdk/dotnet/DeployKeyEnable.cs @@ -14,40 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/deploy_keys.html#enable-a-deploy-key) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// // A repo to host the deployment key - /// var parentProject = new GitLab.Project("parentProject"); - /// - /// // A second repo to use the deployment key from the parent project - /// var fooProject = new GitLab.Project("fooProject"); - /// - /// // Upload a deployment key for the parent repo - /// var parentDeployKey = new GitLab.DeployKey("parentDeployKey", new() - /// { - /// Project = parentProject.Id, - /// Title = "Example deploy key", - /// Key = "ssh-ed25519 AAAA...", - /// }); - /// - /// // Enable the deployment key on the second repo - /// var fooDeployKeyEnable = new GitLab.DeployKeyEnable("fooDeployKeyEnable", new() - /// { - /// Project = fooProject.Id, - /// KeyId = parentDeployKey.DeployKeyId, - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// GitLab enabled deploy keys can be imported using an id made up of `{project_id}:{deploy_key_id}`, e.g. `project_id` can be whatever the [get single project api][get_single_project] takes for its `:id` value, so for example diff --git a/sdk/dotnet/GetBranch.cs b/sdk/dotnet/GetBranch.cs index 23c85783..c9d08b7a 100644 --- a/sdk/dotnet/GetBranch.cs +++ b/sdk/dotnet/GetBranch.cs @@ -15,29 +15,6 @@ public static class GetBranch /// The `gitlab.Branch` data source allows details of a repository branch to be retrieved by its name and project. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/branches.html#get-single-repository-branch) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var foo = GitLab.GetBranch.Invoke(new() - /// { - /// Name = "example", - /// Project = "foo/bar", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetBranchArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getBranch:getBranch", args ?? new GetBranchArgs(), options.WithDefaults()); @@ -46,29 +23,6 @@ public static Task InvokeAsync(GetBranchArgs args, InvokeOption /// The `gitlab.Branch` data source allows details of a repository branch to be retrieved by its name and project. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/branches.html#get-single-repository-branch) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var foo = GitLab.GetBranch.Invoke(new() - /// { - /// Name = "example", - /// Project = "foo/bar", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetBranchInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getBranch:getBranch", args ?? new GetBranchInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetClusterAgent.cs b/sdk/dotnet/GetClusterAgent.cs index 571cad21..dcbec931 100644 --- a/sdk/dotnet/GetClusterAgent.cs +++ b/sdk/dotnet/GetClusterAgent.cs @@ -17,29 +17,6 @@ public static class GetClusterAgent /// > Requires at least GitLab 14.10 /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetClusterAgent.Invoke(new() - /// { - /// AgentId = 1, - /// Project = "12345", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetClusterAgentArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getClusterAgent:getClusterAgent", args ?? new GetClusterAgentArgs(), options.WithDefaults()); @@ -50,29 +27,6 @@ public static Task InvokeAsync(GetClusterAgentArgs args, /// > Requires at least GitLab 14.10 /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetClusterAgent.Invoke(new() - /// { - /// AgentId = 1, - /// Project = "12345", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetClusterAgentInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getClusterAgent:getClusterAgent", args ?? new GetClusterAgentInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetClusterAgents.cs b/sdk/dotnet/GetClusterAgents.cs index 193a78f8..f40b86e2 100644 --- a/sdk/dotnet/GetClusterAgents.cs +++ b/sdk/dotnet/GetClusterAgents.cs @@ -17,28 +17,6 @@ public static class GetClusterAgents /// > Requires at least GitLab 14.10 /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var agents = GitLab.GetClusterAgents.Invoke(new() - /// { - /// Project = "12345", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetClusterAgentsArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getClusterAgents:getClusterAgents", args ?? new GetClusterAgentsArgs(), options.WithDefaults()); @@ -49,28 +27,6 @@ public static Task InvokeAsync(GetClusterAgentsArgs args /// > Requires at least GitLab 14.10 /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var agents = GitLab.GetClusterAgents.Invoke(new() - /// { - /// Project = "12345", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetClusterAgentsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getClusterAgents:getClusterAgents", args ?? new GetClusterAgentsInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetCurrentUser.cs b/sdk/dotnet/GetCurrentUser.cs index be571d62..8ef5f821 100644 --- a/sdk/dotnet/GetCurrentUser.cs +++ b/sdk/dotnet/GetCurrentUser.cs @@ -15,25 +15,6 @@ public static class GetCurrentUser /// The `gitlab.getCurrentUser` data source allows details of the current user (determined by `token` provider attribute) to be retrieved. /// /// **Upstream API**: [GitLab GraphQL API docs](https://docs.gitlab.com/ee/api/graphql/reference/index.html#querycurrentuser) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetCurrentUser.Invoke(); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getCurrentUser:getCurrentUser", InvokeArgs.Empty, options.WithDefaults()); @@ -42,25 +23,6 @@ public static Task InvokeAsync(InvokeOptions? options = nu /// The `gitlab.getCurrentUser` data source allows details of the current user (determined by `token` provider attribute) to be retrieved. /// /// **Upstream API**: [GitLab GraphQL API docs](https://docs.gitlab.com/ee/api/graphql/reference/index.html#querycurrentuser) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetCurrentUser.Invoke(); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getCurrentUser:getCurrentUser", InvokeArgs.Empty, options.WithDefaults()); diff --git a/sdk/dotnet/GetGroup.cs b/sdk/dotnet/GetGroup.cs index 6e8f9123..2fb268b4 100644 --- a/sdk/dotnet/GetGroup.cs +++ b/sdk/dotnet/GetGroup.cs @@ -15,28 +15,6 @@ public static class GetGroup /// The `gitlab.Group` data source allows details of a group to be retrieved by its id or full path. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#details-of-a-group) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var foo = GitLab.GetGroup.Invoke(new() - /// { - /// FullPath = "foo/bar", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetGroupArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getGroup:getGroup", args ?? new GetGroupArgs(), options.WithDefaults()); @@ -45,28 +23,6 @@ public static Task InvokeAsync(GetGroupArgs? args = null, Invoke /// The `gitlab.Group` data source allows details of a group to be retrieved by its id or full path. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#details-of-a-group) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var foo = GitLab.GetGroup.Invoke(new() - /// { - /// FullPath = "foo/bar", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetGroupInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getGroup:getGroup", args ?? new GetGroupInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetGroupMembership.cs b/sdk/dotnet/GetGroupMembership.cs index cf0c24ed..4236e0c7 100644 --- a/sdk/dotnet/GetGroupMembership.cs +++ b/sdk/dotnet/GetGroupMembership.cs @@ -15,28 +15,6 @@ public static class GetGroupMembership /// The `gitlab.GroupMembership` data source allows to list and filter all members of a group specified by either its id or full path. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/members.html#list-all-members-of-a-group-or-project) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetGroupMembership.Invoke(new() - /// { - /// FullPath = "foo/bar", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetGroupMembershipArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getGroupMembership:getGroupMembership", args ?? new GetGroupMembershipArgs(), options.WithDefaults()); @@ -45,28 +23,6 @@ public static Task InvokeAsync(GetGroupMembershipArgs? /// The `gitlab.GroupMembership` data source allows to list and filter all members of a group specified by either its id or full path. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/members.html#list-all-members-of-a-group-or-project) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetGroupMembership.Invoke(new() - /// { - /// FullPath = "foo/bar", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetGroupMembershipInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getGroupMembership:getGroupMembership", args ?? new GetGroupMembershipInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetGroupSubgroups.cs b/sdk/dotnet/GetGroupSubgroups.cs index 91705335..6b495cc4 100644 --- a/sdk/dotnet/GetGroupSubgroups.cs +++ b/sdk/dotnet/GetGroupSubgroups.cs @@ -15,32 +15,6 @@ public static class GetGroupSubgroups /// The `gitlab.getGroupSubgroups` data source allows to get subgroups of a group. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#list-a-groups-subgroups) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var subgroupsGroupSubgroups = GitLab.GetGroupSubgroups.Invoke(new() - /// { - /// GroupId = 123456, - /// }); - /// - /// return new Dictionary<string, object?> - /// { - /// ["subgroups"] = subgroupsGroupSubgroups, - /// }; - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetGroupSubgroupsArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getGroupSubgroups:getGroupSubgroups", args ?? new GetGroupSubgroupsArgs(), options.WithDefaults()); @@ -49,32 +23,6 @@ public static Task InvokeAsync(GetGroupSubgroupsArgs ar /// The `gitlab.getGroupSubgroups` data source allows to get subgroups of a group. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#list-a-groups-subgroups) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var subgroupsGroupSubgroups = GitLab.GetGroupSubgroups.Invoke(new() - /// { - /// GroupId = 123456, - /// }); - /// - /// return new Dictionary<string, object?> - /// { - /// ["subgroups"] = subgroupsGroupSubgroups, - /// }; - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetGroupSubgroupsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getGroupSubgroups:getGroupSubgroups", args ?? new GetGroupSubgroupsInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetGroupVariable.cs b/sdk/dotnet/GetGroupVariable.cs index 4b90cbc5..4b4c046f 100644 --- a/sdk/dotnet/GetGroupVariable.cs +++ b/sdk/dotnet/GetGroupVariable.cs @@ -15,36 +15,6 @@ public static class GetGroupVariable /// The `gitlab.GroupVariable` data source allows to retrieve details about a group-level CI/CD variable. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_level_variables.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var foo = GitLab.GetGroupVariable.Invoke(new() - /// { - /// Group = "my/example/group", - /// Key = "foo", - /// }); - /// - /// var bar = GitLab.GetGroupVariable.Invoke(new() - /// { - /// EnvironmentScope = "staging/*", - /// Group = "my/example/group", - /// Key = "bar", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetGroupVariableArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getGroupVariable:getGroupVariable", args ?? new GetGroupVariableArgs(), options.WithDefaults()); @@ -53,36 +23,6 @@ public static Task InvokeAsync(GetGroupVariableArgs args /// The `gitlab.GroupVariable` data source allows to retrieve details about a group-level CI/CD variable. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_level_variables.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var foo = GitLab.GetGroupVariable.Invoke(new() - /// { - /// Group = "my/example/group", - /// Key = "foo", - /// }); - /// - /// var bar = GitLab.GetGroupVariable.Invoke(new() - /// { - /// EnvironmentScope = "staging/*", - /// Group = "my/example/group", - /// Key = "bar", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetGroupVariableInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getGroupVariable:getGroupVariable", args ?? new GetGroupVariableInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetGroupVariables.cs b/sdk/dotnet/GetGroupVariables.cs index 068fb038..8244635b 100644 --- a/sdk/dotnet/GetGroupVariables.cs +++ b/sdk/dotnet/GetGroupVariables.cs @@ -15,34 +15,6 @@ public static class GetGroupVariables /// The `gitlab.getGroupVariables` data source allows to retrieve all group-level CI/CD variables. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_level_variables.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var vars = GitLab.GetGroupVariables.Invoke(new() - /// { - /// Group = "my/example/group", - /// }); - /// - /// var stagingVars = GitLab.GetGroupVariables.Invoke(new() - /// { - /// EnvironmentScope = "staging/*", - /// Group = "my/example/group", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetGroupVariablesArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getGroupVariables:getGroupVariables", args ?? new GetGroupVariablesArgs(), options.WithDefaults()); @@ -51,34 +23,6 @@ public static Task InvokeAsync(GetGroupVariablesArgs ar /// The `gitlab.getGroupVariables` data source allows to retrieve all group-level CI/CD variables. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_level_variables.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var vars = GitLab.GetGroupVariables.Invoke(new() - /// { - /// Group = "my/example/group", - /// }); - /// - /// var stagingVars = GitLab.GetGroupVariables.Invoke(new() - /// { - /// EnvironmentScope = "staging/*", - /// Group = "my/example/group", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetGroupVariablesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getGroupVariables:getGroupVariables", args ?? new GetGroupVariablesInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetGroups.cs b/sdk/dotnet/GetGroups.cs index 2c93e2af..f6bbd326 100644 --- a/sdk/dotnet/GetGroups.cs +++ b/sdk/dotnet/GetGroups.cs @@ -19,34 +19,6 @@ public static class GetGroups /// > Some available options require administrator privileges. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#list-groups) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetGroups.Invoke(new() - /// { - /// OrderBy = "name", - /// Sort = "desc", - /// }); - /// - /// var example_two = GitLab.GetGroups.Invoke(new() - /// { - /// Search = "GitLab", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetGroupsArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getGroups:getGroups", args ?? new GetGroupsArgs(), options.WithDefaults()); @@ -59,34 +31,6 @@ public static Task InvokeAsync(GetGroupsArgs? args = null, Invo /// > Some available options require administrator privileges. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#list-groups) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetGroups.Invoke(new() - /// { - /// OrderBy = "name", - /// Sort = "desc", - /// }); - /// - /// var example_two = GitLab.GetGroups.Invoke(new() - /// { - /// Search = "GitLab", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getGroups:getGroups", args ?? new GetGroupsInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetInstanceDeployKeys.cs b/sdk/dotnet/GetInstanceDeployKeys.cs index 29f3ca74..07dce810 100644 --- a/sdk/dotnet/GetInstanceDeployKeys.cs +++ b/sdk/dotnet/GetInstanceDeployKeys.cs @@ -17,28 +17,6 @@ public static class GetInstanceDeployKeys /// > This data source requires administration privileges. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/deploy_keys.html#list-all-deploy-keys) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetInstanceDeployKeys.Invoke(new() - /// { - /// Public = true, - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetInstanceDeployKeysArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getInstanceDeployKeys:getInstanceDeployKeys", args ?? new GetInstanceDeployKeysArgs(), options.WithDefaults()); @@ -49,28 +27,6 @@ public static Task InvokeAsync(GetInstanceDeployKey /// > This data source requires administration privileges. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/deploy_keys.html#list-all-deploy-keys) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetInstanceDeployKeys.Invoke(new() - /// { - /// Public = true, - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetInstanceDeployKeysInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getInstanceDeployKeys:getInstanceDeployKeys", args ?? new GetInstanceDeployKeysInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetInstanceVariable.cs b/sdk/dotnet/GetInstanceVariable.cs index f8afa5df..060e9c27 100644 --- a/sdk/dotnet/GetInstanceVariable.cs +++ b/sdk/dotnet/GetInstanceVariable.cs @@ -15,28 +15,6 @@ public static class GetInstanceVariable /// The `gitlab.InstanceVariable` data source allows to retrieve details about an instance-level CI/CD variable. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/instance_level_ci_variables.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var foo = GitLab.GetInstanceVariable.Invoke(new() - /// { - /// Key = "foo", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetInstanceVariableArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getInstanceVariable:getInstanceVariable", args ?? new GetInstanceVariableArgs(), options.WithDefaults()); @@ -45,28 +23,6 @@ public static Task InvokeAsync(GetInstanceVariableArg /// The `gitlab.InstanceVariable` data source allows to retrieve details about an instance-level CI/CD variable. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/instance_level_ci_variables.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var foo = GitLab.GetInstanceVariable.Invoke(new() - /// { - /// Key = "foo", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetInstanceVariableInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getInstanceVariable:getInstanceVariable", args ?? new GetInstanceVariableInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetInstanceVariables.cs b/sdk/dotnet/GetInstanceVariables.cs index 6c82eaf7..3f1d80a1 100644 --- a/sdk/dotnet/GetInstanceVariables.cs +++ b/sdk/dotnet/GetInstanceVariables.cs @@ -15,25 +15,6 @@ public static class GetInstanceVariables /// The `gitlab.getInstanceVariables` data source allows to retrieve all instance-level CI/CD variables. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/instance_level_ci_variables.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var vars = GitLab.GetInstanceVariables.Invoke(); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getInstanceVariables:getInstanceVariables", InvokeArgs.Empty, options.WithDefaults()); @@ -42,25 +23,6 @@ public static Task InvokeAsync(InvokeOptions? option /// The `gitlab.getInstanceVariables` data source allows to retrieve all instance-level CI/CD variables. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/instance_level_ci_variables.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var vars = GitLab.GetInstanceVariables.Invoke(); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getInstanceVariables:getInstanceVariables", InvokeArgs.Empty, options.WithDefaults()); diff --git a/sdk/dotnet/GetMetadata.cs b/sdk/dotnet/GetMetadata.cs index e69836e9..cff57d7f 100644 --- a/sdk/dotnet/GetMetadata.cs +++ b/sdk/dotnet/GetMetadata.cs @@ -15,25 +15,6 @@ public static class GetMetadata /// The `gitlab.getMetadata` data source retrieves the metadata of the GitLab instance. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/metadata.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var @this = GitLab.GetMetadata.Invoke(); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getMetadata:getMetadata", InvokeArgs.Empty, options.WithDefaults()); @@ -42,25 +23,6 @@ public static Task InvokeAsync(InvokeOptions? options = null) /// The `gitlab.getMetadata` data source retrieves the metadata of the GitLab instance. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/metadata.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var @this = GitLab.GetMetadata.Invoke(); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getMetadata:getMetadata", InvokeArgs.Empty, options.WithDefaults()); diff --git a/sdk/dotnet/GetProject.cs b/sdk/dotnet/GetProject.cs index 2eb18c89..5f97019a 100644 --- a/sdk/dotnet/GetProject.cs +++ b/sdk/dotnet/GetProject.cs @@ -15,28 +15,6 @@ public static class GetProject /// The `gitlab.Project` data source allows details of a project to be retrieved by either its ID or its path with namespace. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#get-single-project) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetProject.Invoke(new() - /// { - /// PathWithNamespace = "foo/bar/baz", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetProjectArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getProject:getProject", args ?? new GetProjectArgs(), options.WithDefaults()); @@ -45,28 +23,6 @@ public static Task InvokeAsync(GetProjectArgs? args = null, In /// The `gitlab.Project` data source allows details of a project to be retrieved by either its ID or its path with namespace. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#get-single-project) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetProject.Invoke(new() - /// { - /// PathWithNamespace = "foo/bar/baz", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetProjectInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getProject:getProject", args ?? new GetProjectInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetProjectBranches.cs b/sdk/dotnet/GetProjectBranches.cs index 92099e87..157262af 100644 --- a/sdk/dotnet/GetProjectBranches.cs +++ b/sdk/dotnet/GetProjectBranches.cs @@ -15,28 +15,6 @@ public static class GetProjectBranches /// The `gitlab.getProjectBranches` data source allows details of the branches of a given project to be retrieved. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/branches.html#list-repository-branches) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetProjectBranches.Invoke(new() - /// { - /// Project = "foo/bar/baz", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetProjectBranchesArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getProjectBranches:getProjectBranches", args ?? new GetProjectBranchesArgs(), options.WithDefaults()); @@ -45,28 +23,6 @@ public static Task InvokeAsync(GetProjectBranchesArgs /// The `gitlab.getProjectBranches` data source allows details of the branches of a given project to be retrieved. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/branches.html#list-repository-branches) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetProjectBranches.Invoke(new() - /// { - /// Project = "foo/bar/baz", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetProjectBranchesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getProjectBranches:getProjectBranches", args ?? new GetProjectBranchesInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetProjectHook.cs b/sdk/dotnet/GetProjectHook.cs index e4370851..11fdfd9d 100644 --- a/sdk/dotnet/GetProjectHook.cs +++ b/sdk/dotnet/GetProjectHook.cs @@ -15,34 +15,6 @@ public static class GetProjectHook /// The `gitlab.ProjectHook` data source allows to retrieve details about a hook in a project. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#get-project-hook) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var exampleProject = GitLab.GetProject.Invoke(new() - /// { - /// Id = "foo/bar/baz", - /// }); - /// - /// var exampleProjectHook = GitLab.GetProjectHook.Invoke(new() - /// { - /// Project = exampleProject.Apply(getProjectResult => getProjectResult.Id), - /// HookId = 1, - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetProjectHookArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getProjectHook:getProjectHook", args ?? new GetProjectHookArgs(), options.WithDefaults()); @@ -51,34 +23,6 @@ public static Task InvokeAsync(GetProjectHookArgs args, In /// The `gitlab.ProjectHook` data source allows to retrieve details about a hook in a project. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#get-project-hook) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var exampleProject = GitLab.GetProject.Invoke(new() - /// { - /// Id = "foo/bar/baz", - /// }); - /// - /// var exampleProjectHook = GitLab.GetProjectHook.Invoke(new() - /// { - /// Project = exampleProject.Apply(getProjectResult => getProjectResult.Id), - /// HookId = 1, - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetProjectHookInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getProjectHook:getProjectHook", args ?? new GetProjectHookInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetProjectHooks.cs b/sdk/dotnet/GetProjectHooks.cs index 2e311b1a..66595822 100644 --- a/sdk/dotnet/GetProjectHooks.cs +++ b/sdk/dotnet/GetProjectHooks.cs @@ -15,33 +15,6 @@ public static class GetProjectHooks /// The `gitlab.getProjectHooks` data source allows to retrieve details about hooks in a project. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#list-project-hooks) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetProject.Invoke(new() - /// { - /// Id = "foo/bar/baz", - /// }); - /// - /// var examples = GitLab.GetProjectHooks.Invoke(new() - /// { - /// Project = example.Apply(getProjectResult => getProjectResult.Id), - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetProjectHooksArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getProjectHooks:getProjectHooks", args ?? new GetProjectHooksArgs(), options.WithDefaults()); @@ -50,33 +23,6 @@ public static Task InvokeAsync(GetProjectHooksArgs args, /// The `gitlab.getProjectHooks` data source allows to retrieve details about hooks in a project. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#list-project-hooks) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetProject.Invoke(new() - /// { - /// Id = "foo/bar/baz", - /// }); - /// - /// var examples = GitLab.GetProjectHooks.Invoke(new() - /// { - /// Project = example.Apply(getProjectResult => getProjectResult.Id), - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetProjectHooksInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getProjectHooks:getProjectHooks", args ?? new GetProjectHooksInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetProjectIssue.cs b/sdk/dotnet/GetProjectIssue.cs index 0481e064..412e9b0f 100644 --- a/sdk/dotnet/GetProjectIssue.cs +++ b/sdk/dotnet/GetProjectIssue.cs @@ -15,38 +15,6 @@ public static class GetProjectIssue /// The `gitlab.ProjectIssue` data source allows to retrieve details about an issue in a project. /// /// **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/issues.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var foo = GitLab.GetProject.Invoke(new() - /// { - /// PathWithNamespace = "foo/bar/baz", - /// }); - /// - /// var welcomeIssue = GitLab.GetProjectIssue.Invoke(new() - /// { - /// Project = foo.Apply(getProjectResult => getProjectResult.Id), - /// Iid = 1, - /// }); - /// - /// return new Dictionary<string, object?> - /// { - /// ["welcomeIssueWebUrl"] = data.Gitlab_project_issue.Web_url, - /// }; - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetProjectIssueArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getProjectIssue:getProjectIssue", args ?? new GetProjectIssueArgs(), options.WithDefaults()); @@ -55,38 +23,6 @@ public static Task InvokeAsync(GetProjectIssueArgs args, /// The `gitlab.ProjectIssue` data source allows to retrieve details about an issue in a project. /// /// **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/issues.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var foo = GitLab.GetProject.Invoke(new() - /// { - /// PathWithNamespace = "foo/bar/baz", - /// }); - /// - /// var welcomeIssue = GitLab.GetProjectIssue.Invoke(new() - /// { - /// Project = foo.Apply(getProjectResult => getProjectResult.Id), - /// Iid = 1, - /// }); - /// - /// return new Dictionary<string, object?> - /// { - /// ["welcomeIssueWebUrl"] = data.Gitlab_project_issue.Web_url, - /// }; - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetProjectIssueInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getProjectIssue:getProjectIssue", args ?? new GetProjectIssueInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetProjectIssues.cs b/sdk/dotnet/GetProjectIssues.cs index 97ec4d80..05a48ab0 100644 --- a/sdk/dotnet/GetProjectIssues.cs +++ b/sdk/dotnet/GetProjectIssues.cs @@ -15,34 +15,6 @@ public static class GetProjectIssues /// The `gitlab.getProjectIssues` data source allows to retrieve details about issues in a project. /// /// **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/issues.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var foo = GitLab.GetProject.Invoke(new() - /// { - /// Id = "foo/bar/baz", - /// }); - /// - /// var allWithFoo = GitLab.GetProjectIssues.Invoke(new() - /// { - /// Project = foo.Apply(getProjectResult => getProjectResult.Id), - /// Search = "foo", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetProjectIssuesArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getProjectIssues:getProjectIssues", args ?? new GetProjectIssuesArgs(), options.WithDefaults()); @@ -51,34 +23,6 @@ public static Task InvokeAsync(GetProjectIssuesArgs args /// The `gitlab.getProjectIssues` data source allows to retrieve details about issues in a project. /// /// **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/issues.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var foo = GitLab.GetProject.Invoke(new() - /// { - /// Id = "foo/bar/baz", - /// }); - /// - /// var allWithFoo = GitLab.GetProjectIssues.Invoke(new() - /// { - /// Project = foo.Apply(getProjectResult => getProjectResult.Id), - /// Search = "foo", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetProjectIssuesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getProjectIssues:getProjectIssues", args ?? new GetProjectIssuesInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetProjectMembership.cs b/sdk/dotnet/GetProjectMembership.cs index 0eda11b6..9d1cb392 100644 --- a/sdk/dotnet/GetProjectMembership.cs +++ b/sdk/dotnet/GetProjectMembership.cs @@ -17,29 +17,6 @@ public static class GetProjectMembership /// > **Note** exactly one of project_id or full_path must be provided. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/members.html#list-all-members-of-a-group-or-project) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetProjectMembership.Invoke(new() - /// { - /// Inherited = true, - /// ProjectId = 123, - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetProjectMembershipArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getProjectMembership:getProjectMembership", args ?? new GetProjectMembershipArgs(), options.WithDefaults()); @@ -50,29 +27,6 @@ public static Task InvokeAsync(GetProjectMembershipA /// > **Note** exactly one of project_id or full_path must be provided. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/members.html#list-all-members-of-a-group-or-project) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetProjectMembership.Invoke(new() - /// { - /// Inherited = true, - /// ProjectId = 123, - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetProjectMembershipInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getProjectMembership:getProjectMembership", args ?? new GetProjectMembershipInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetProjectMilestone.cs b/sdk/dotnet/GetProjectMilestone.cs index 77b93d98..a368ddd6 100644 --- a/sdk/dotnet/GetProjectMilestone.cs +++ b/sdk/dotnet/GetProjectMilestone.cs @@ -15,29 +15,6 @@ public static class GetProjectMilestone /// The `gitlab.ProjectMilestone` data source allows get details of a project milestone. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/milestones.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetProjectMilestone.Invoke(new() - /// { - /// MilestoneId = 10, - /// Project = "foo/bar", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetProjectMilestoneArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getProjectMilestone:getProjectMilestone", args ?? new GetProjectMilestoneArgs(), options.WithDefaults()); @@ -46,29 +23,6 @@ public static Task InvokeAsync(GetProjectMilestoneArg /// The `gitlab.ProjectMilestone` data source allows get details of a project milestone. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/milestones.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetProjectMilestone.Invoke(new() - /// { - /// MilestoneId = 10, - /// Project = "foo/bar", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetProjectMilestoneInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getProjectMilestone:getProjectMilestone", args ?? new GetProjectMilestoneInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetProjectMilestones.cs b/sdk/dotnet/GetProjectMilestones.cs index 76d91183..1b7be2cb 100644 --- a/sdk/dotnet/GetProjectMilestones.cs +++ b/sdk/dotnet/GetProjectMilestones.cs @@ -15,28 +15,6 @@ public static class GetProjectMilestones /// The `gitlab.getProjectMilestones` data source allows get details of a project milestones. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/milestones.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetProjectMilestones.Invoke(new() - /// { - /// Project = "foo/bar", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetProjectMilestonesArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getProjectMilestones:getProjectMilestones", args ?? new GetProjectMilestonesArgs(), options.WithDefaults()); @@ -45,28 +23,6 @@ public static Task InvokeAsync(GetProjectMilestonesA /// The `gitlab.getProjectMilestones` data source allows get details of a project milestones. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/milestones.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetProjectMilestones.Invoke(new() - /// { - /// Project = "foo/bar", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetProjectMilestonesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getProjectMilestones:getProjectMilestones", args ?? new GetProjectMilestonesInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetProjectProtectedBranch.cs b/sdk/dotnet/GetProjectProtectedBranch.cs index 667ac104..7fb8d6cb 100644 --- a/sdk/dotnet/GetProjectProtectedBranch.cs +++ b/sdk/dotnet/GetProjectProtectedBranch.cs @@ -15,29 +15,6 @@ public static class GetProjectProtectedBranch /// The `gitlab_protected_branch` data source allows details of a protected branch to be retrieved by its name and the project it belongs to. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/protected_branches.html#get-a-single-protected-branch-or-wildcard-protected-branch) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetProjectProtectedBranch.Invoke(new() - /// { - /// Name = "main", - /// ProjectId = "foo/bar/baz", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetProjectProtectedBranchArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getProjectProtectedBranch:getProjectProtectedBranch", args ?? new GetProjectProtectedBranchArgs(), options.WithDefaults()); @@ -46,29 +23,6 @@ public static Task InvokeAsync(GetProjectProtec /// The `gitlab_protected_branch` data source allows details of a protected branch to be retrieved by its name and the project it belongs to. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/protected_branches.html#get-a-single-protected-branch-or-wildcard-protected-branch) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetProjectProtectedBranch.Invoke(new() - /// { - /// Name = "main", - /// ProjectId = "foo/bar/baz", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetProjectProtectedBranchInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getProjectProtectedBranch:getProjectProtectedBranch", args ?? new GetProjectProtectedBranchInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetProjectProtectedBranches.cs b/sdk/dotnet/GetProjectProtectedBranches.cs index d53002a6..0f58fe4f 100644 --- a/sdk/dotnet/GetProjectProtectedBranches.cs +++ b/sdk/dotnet/GetProjectProtectedBranches.cs @@ -15,28 +15,6 @@ public static class GetProjectProtectedBranches /// The `gitlab.getProjectProtectedBranches` data source allows details of the protected branches of a given project. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/protected_branches.html#list-protected-branches) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetProjectProtectedBranches.Invoke(new() - /// { - /// ProjectId = "foo/bar/baz", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetProjectProtectedBranchesArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getProjectProtectedBranches:getProjectProtectedBranches", args ?? new GetProjectProtectedBranchesArgs(), options.WithDefaults()); @@ -45,28 +23,6 @@ public static Task InvokeAsync(GetProjectProt /// The `gitlab.getProjectProtectedBranches` data source allows details of the protected branches of a given project. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/protected_branches.html#list-protected-branches) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetProjectProtectedBranches.Invoke(new() - /// { - /// ProjectId = "foo/bar/baz", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetProjectProtectedBranchesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getProjectProtectedBranches:getProjectProtectedBranches", args ?? new GetProjectProtectedBranchesInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetProjectTag.cs b/sdk/dotnet/GetProjectTag.cs index 923ff461..b35020f9 100644 --- a/sdk/dotnet/GetProjectTag.cs +++ b/sdk/dotnet/GetProjectTag.cs @@ -15,29 +15,6 @@ public static class GetProjectTag /// The `gitlab.ProjectTag` data source allows details of a project tag to be retrieved by its name. /// /// **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/tags.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var foo = GitLab.GetProjectTag.Invoke(new() - /// { - /// Name = "example", - /// Project = "foo/bar", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetProjectTagArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getProjectTag:getProjectTag", args ?? new GetProjectTagArgs(), options.WithDefaults()); @@ -46,29 +23,6 @@ public static Task InvokeAsync(GetProjectTagArgs args, Invo /// The `gitlab.ProjectTag` data source allows details of a project tag to be retrieved by its name. /// /// **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/tags.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var foo = GitLab.GetProjectTag.Invoke(new() - /// { - /// Name = "example", - /// Project = "foo/bar", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetProjectTagInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getProjectTag:getProjectTag", args ?? new GetProjectTagInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetProjectTags.cs b/sdk/dotnet/GetProjectTags.cs index bfb99682..ea551d1f 100644 --- a/sdk/dotnet/GetProjectTags.cs +++ b/sdk/dotnet/GetProjectTags.cs @@ -15,28 +15,6 @@ public static class GetProjectTags /// The `gitlab.getProjectTags` data source allows details of project tags to be retrieved by some search criteria. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/tags.html#list-project-repository-tags) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetProjectTags.Invoke(new() - /// { - /// Project = "foo/bar", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetProjectTagsArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getProjectTags:getProjectTags", args ?? new GetProjectTagsArgs(), options.WithDefaults()); @@ -45,28 +23,6 @@ public static Task InvokeAsync(GetProjectTagsArgs args, In /// The `gitlab.getProjectTags` data source allows details of project tags to be retrieved by some search criteria. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/tags.html#list-project-repository-tags) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetProjectTags.Invoke(new() - /// { - /// Project = "foo/bar", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetProjectTagsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getProjectTags:getProjectTags", args ?? new GetProjectTagsInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetProjectVariable.cs b/sdk/dotnet/GetProjectVariable.cs index a979de0d..93746e43 100644 --- a/sdk/dotnet/GetProjectVariable.cs +++ b/sdk/dotnet/GetProjectVariable.cs @@ -15,36 +15,6 @@ public static class GetProjectVariable /// The `gitlab.ProjectVariable` data source allows to retrieve details about a project-level CI/CD variable. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/project_level_variables.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var foo = GitLab.GetProjectVariable.Invoke(new() - /// { - /// Key = "foo", - /// Project = "my/example/project", - /// }); - /// - /// var bar = GitLab.GetProjectVariable.Invoke(new() - /// { - /// EnvironmentScope = "staging/*", - /// Key = "bar", - /// Project = "my/example/project", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetProjectVariableArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getProjectVariable:getProjectVariable", args ?? new GetProjectVariableArgs(), options.WithDefaults()); @@ -53,36 +23,6 @@ public static Task InvokeAsync(GetProjectVariableArgs /// The `gitlab.ProjectVariable` data source allows to retrieve details about a project-level CI/CD variable. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/project_level_variables.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var foo = GitLab.GetProjectVariable.Invoke(new() - /// { - /// Key = "foo", - /// Project = "my/example/project", - /// }); - /// - /// var bar = GitLab.GetProjectVariable.Invoke(new() - /// { - /// EnvironmentScope = "staging/*", - /// Key = "bar", - /// Project = "my/example/project", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetProjectVariableInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getProjectVariable:getProjectVariable", args ?? new GetProjectVariableInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetProjectVariables.cs b/sdk/dotnet/GetProjectVariables.cs index c1a4ce4a..e34fa964 100644 --- a/sdk/dotnet/GetProjectVariables.cs +++ b/sdk/dotnet/GetProjectVariables.cs @@ -15,34 +15,6 @@ public static class GetProjectVariables /// The `gitlab.getProjectVariables` data source allows to retrieve all project-level CI/CD variables. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/project_level_variables.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var vars = GitLab.GetProjectVariables.Invoke(new() - /// { - /// Project = "my/example/project", - /// }); - /// - /// var stagingVars = GitLab.GetProjectVariables.Invoke(new() - /// { - /// EnvironmentScope = "staging/*", - /// Project = "my/example/project", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetProjectVariablesArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getProjectVariables:getProjectVariables", args ?? new GetProjectVariablesArgs(), options.WithDefaults()); @@ -51,34 +23,6 @@ public static Task InvokeAsync(GetProjectVariablesArg /// The `gitlab.getProjectVariables` data source allows to retrieve all project-level CI/CD variables. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/project_level_variables.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var vars = GitLab.GetProjectVariables.Invoke(new() - /// { - /// Project = "my/example/project", - /// }); - /// - /// var stagingVars = GitLab.GetProjectVariables.Invoke(new() - /// { - /// EnvironmentScope = "staging/*", - /// Project = "my/example/project", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetProjectVariablesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getProjectVariables:getProjectVariables", args ?? new GetProjectVariablesInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetProjects.cs b/sdk/dotnet/GetProjects.cs index 2f7b5683..2b6a9d23 100644 --- a/sdk/dotnet/GetProjects.cs +++ b/sdk/dotnet/GetProjects.cs @@ -19,42 +19,6 @@ public static class GetProjects /// > The owner sub-attributes are only populated if the Gitlab token used has an administrator scope. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#list-all-projects) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var mygroup = GitLab.GetGroup.Invoke(new() - /// { - /// FullPath = "mygroup", - /// }); - /// - /// var groupProjects = GitLab.GetProjects.Invoke(new() - /// { - /// GroupId = mygroup.Apply(getGroupResult => getGroupResult.Id), - /// OrderBy = "name", - /// IncludeSubgroups = true, - /// WithShared = false, - /// }); - /// - /// var projects = GitLab.GetProjects.Invoke(new() - /// { - /// Search = "postgresql", - /// Visibility = "private", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetProjectsArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getProjects:getProjects", args ?? new GetProjectsArgs(), options.WithDefaults()); @@ -67,42 +31,6 @@ public static Task InvokeAsync(GetProjectsArgs? args = null, /// > The owner sub-attributes are only populated if the Gitlab token used has an administrator scope. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#list-all-projects) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var mygroup = GitLab.GetGroup.Invoke(new() - /// { - /// FullPath = "mygroup", - /// }); - /// - /// var groupProjects = GitLab.GetProjects.Invoke(new() - /// { - /// GroupId = mygroup.Apply(getGroupResult => getGroupResult.Id), - /// OrderBy = "name", - /// IncludeSubgroups = true, - /// WithShared = false, - /// }); - /// - /// var projects = GitLab.GetProjects.Invoke(new() - /// { - /// Search = "postgresql", - /// Visibility = "private", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetProjectsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getProjects:getProjects", args ?? new GetProjectsInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetReleaseLink.cs b/sdk/dotnet/GetReleaseLink.cs index 79169c0d..0a17a0e9 100644 --- a/sdk/dotnet/GetReleaseLink.cs +++ b/sdk/dotnet/GetReleaseLink.cs @@ -15,30 +15,6 @@ public static class GetReleaseLink /// The `gitlab.ReleaseLink` data source allows get details of a release link. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/releases/links.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetReleaseLink.Invoke(new() - /// { - /// LinkId = 11, - /// Project = "foo/bar", - /// TagName = "v1.0.1", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetReleaseLinkArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getReleaseLink:getReleaseLink", args ?? new GetReleaseLinkArgs(), options.WithDefaults()); @@ -47,30 +23,6 @@ public static Task InvokeAsync(GetReleaseLinkArgs args, In /// The `gitlab.ReleaseLink` data source allows get details of a release link. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/releases/links.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetReleaseLink.Invoke(new() - /// { - /// LinkId = 11, - /// Project = "foo/bar", - /// TagName = "v1.0.1", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetReleaseLinkInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getReleaseLink:getReleaseLink", args ?? new GetReleaseLinkInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetReleaseLinks.cs b/sdk/dotnet/GetReleaseLinks.cs index 3b43408a..b48b222a 100644 --- a/sdk/dotnet/GetReleaseLinks.cs +++ b/sdk/dotnet/GetReleaseLinks.cs @@ -15,29 +15,6 @@ public static class GetReleaseLinks /// The `gitlab.getReleaseLinks` data source allows get details of release links. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/releases/links.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetReleaseLinks.Invoke(new() - /// { - /// Project = "foo/bar", - /// TagName = "v1.0.1", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetReleaseLinksArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getReleaseLinks:getReleaseLinks", args ?? new GetReleaseLinksArgs(), options.WithDefaults()); @@ -46,29 +23,6 @@ public static Task InvokeAsync(GetReleaseLinksArgs args, /// The `gitlab.getReleaseLinks` data source allows get details of release links. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/releases/links.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetReleaseLinks.Invoke(new() - /// { - /// Project = "foo/bar", - /// TagName = "v1.0.1", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetReleaseLinksInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getReleaseLinks:getReleaseLinks", args ?? new GetReleaseLinksInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetRepositoryFile.cs b/sdk/dotnet/GetRepositoryFile.cs index 83871872..ac9565d3 100644 --- a/sdk/dotnet/GetRepositoryFile.cs +++ b/sdk/dotnet/GetRepositoryFile.cs @@ -15,30 +15,6 @@ public static class GetRepositoryFile /// The `gitlab.RepositoryFile` data source allows details of a file in a repository to be retrieved. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/repository_files.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetRepositoryFile.Invoke(new() - /// { - /// FilePath = "README.md", - /// Project = "example", - /// Ref = "main", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetRepositoryFileArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getRepositoryFile:getRepositoryFile", args ?? new GetRepositoryFileArgs(), options.WithDefaults()); @@ -47,30 +23,6 @@ public static Task InvokeAsync(GetRepositoryFileArgs ar /// The `gitlab.RepositoryFile` data source allows details of a file in a repository to be retrieved. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/repository_files.html) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetRepositoryFile.Invoke(new() - /// { - /// FilePath = "README.md", - /// Project = "example", - /// Ref = "main", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetRepositoryFileInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getRepositoryFile:getRepositoryFile", args ?? new GetRepositoryFileInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetRepositoryTree.cs b/sdk/dotnet/GetRepositoryTree.cs index cc587ed0..a08cfc05 100644 --- a/sdk/dotnet/GetRepositoryTree.cs +++ b/sdk/dotnet/GetRepositoryTree.cs @@ -15,31 +15,6 @@ public static class GetRepositoryTree /// The `gitlab.getRepositoryTree` data source allows details of directories and files in a repository to be retrieved. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/repositories.html#list-repository-tree) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var @this = GitLab.GetRepositoryTree.Invoke(new() - /// { - /// Path = "ExampleSubFolder", - /// Project = "example", - /// Recursive = true, - /// Ref = "main", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetRepositoryTreeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getRepositoryTree:getRepositoryTree", args ?? new GetRepositoryTreeArgs(), options.WithDefaults()); @@ -48,31 +23,6 @@ public static Task InvokeAsync(GetRepositoryTreeArgs ar /// The `gitlab.getRepositoryTree` data source allows details of directories and files in a repository to be retrieved. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/repositories.html#list-repository-tree) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var @this = GitLab.GetRepositoryTree.Invoke(new() - /// { - /// Path = "ExampleSubFolder", - /// Project = "example", - /// Recursive = true, - /// Ref = "main", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetRepositoryTreeInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getRepositoryTree:getRepositoryTree", args ?? new GetRepositoryTreeInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetUsers.cs b/sdk/dotnet/GetUsers.cs index 642f5c18..89f90948 100644 --- a/sdk/dotnet/GetUsers.cs +++ b/sdk/dotnet/GetUsers.cs @@ -19,35 +19,6 @@ public static class GetUsers /// > Some available options require administrator privileges. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ce/api/users.html#list-users) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetUsers.Invoke(new() - /// { - /// CreatedBefore = "2019-01-01", - /// OrderBy = "name", - /// Sort = "desc", - /// }); - /// - /// var example_two = GitLab.GetUsers.Invoke(new() - /// { - /// Search = "username", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetUsersArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("gitlab:index/getUsers:getUsers", args ?? new GetUsersArgs(), options.WithDefaults()); @@ -60,35 +31,6 @@ public static Task InvokeAsync(GetUsersArgs? args = null, Invoke /// > Some available options require administrator privileges. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ce/api/users.html#list-users) - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = GitLab.GetUsers.Invoke(new() - /// { - /// CreatedBefore = "2019-01-01", - /// OrderBy = "name", - /// Sort = "desc", - /// }); - /// - /// var example_two = GitLab.GetUsers.Invoke(new() - /// { - /// Search = "username", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetUsersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gitlab:index/getUsers:getUsers", args ?? new GetUsersInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/Group.cs b/sdk/dotnet/Group.cs index f478d8bd..61c5051c 100644 --- a/sdk/dotnet/Group.cs +++ b/sdk/dotnet/Group.cs @@ -16,32 +16,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var exampleGroup = new GitLab.Group("exampleGroup", new() - /// { - /// Path = "example", - /// Description = "An example group", - /// }); - /// - /// // Create a project in the example group - /// var exampleProject = new GitLab.Project("exampleProject", new() - /// { - /// Description = "An example project", - /// NamespaceId = exampleGroup.Id, - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// ```sh diff --git a/sdk/dotnet/GroupAccessToken.cs b/sdk/dotnet/GroupAccessToken.cs index 73c452fd..dbad7432 100644 --- a/sdk/dotnet/GroupAccessToken.cs +++ b/sdk/dotnet/GroupAccessToken.cs @@ -16,37 +16,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API](https://docs.gitlab.com/ee/api/group_access_tokens.html) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var exampleGroupAccessToken = new GitLab.GroupAccessToken("exampleGroupAccessToken", new() - /// { - /// Group = "25", - /// ExpiresAt = "2020-03-14", - /// AccessLevel = "developer", - /// Scopes = new[] - /// { - /// "api", - /// }, - /// }); - /// - /// var exampleGroupVariable = new GitLab.GroupVariable("exampleGroupVariable", new() - /// { - /// Group = "25", - /// Key = "gat", - /// Value = exampleGroupAccessToken.Token, - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// A GitLab Group Access Token can be imported using a key composed of `<group-id>:<token-id>`, e.g. diff --git a/sdk/dotnet/GroupBadge.cs b/sdk/dotnet/GroupBadge.cs index 8563ab9a..1c94d3ae 100644 --- a/sdk/dotnet/GroupBadge.cs +++ b/sdk/dotnet/GroupBadge.cs @@ -14,52 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/user/project/badges.html#group-badges) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var foo = new GitLab.Group("foo"); - /// - /// var example = new GitLab.GroupBadge("example", new() - /// { - /// Group = foo.Id, - /// LinkUrl = "https://example.com/badge-123", - /// ImageUrl = "https://example.com/badge-123.svg", - /// }); - /// - /// // Pipeline status badges with placeholders will be enabled for each project - /// var gitlabPipeline = new GitLab.GroupBadge("gitlabPipeline", new() - /// { - /// Group = foo.Id, - /// LinkUrl = "https://gitlab.example.com/%{project_path}/-/pipelines?ref=%{default_branch}", - /// ImageUrl = "https://gitlab.example.com/%{project_path}/badges/%{default_branch}/pipeline.svg", - /// }); - /// - /// // Test coverage report badges with placeholders will be enabled for each project - /// var gitlabCoverage = new GitLab.GroupBadge("gitlabCoverage", new() - /// { - /// Group = foo.Id, - /// LinkUrl = "https://gitlab.example.com/%{project_path}/-/jobs", - /// ImageUrl = "https://gitlab.example.com/%{project_path}/badges/%{default_branch}/coverage.svg", - /// }); - /// - /// // Latest release badges with placeholders will be enabled for each project - /// var gitlabRelease = new GitLab.GroupBadge("gitlabRelease", new() - /// { - /// Group = foo.Id, - /// LinkUrl = "https://gitlab.example.com/%{project_path}/-/releases", - /// ImageUrl = "https://gitlab.example.com/%{project_path}/-/badges/release.svg", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// GitLab group badges can be imported using an id made up of `{group_id}:{badge_id}`, e.g. diff --git a/sdk/dotnet/GroupCluster.cs b/sdk/dotnet/GroupCluster.cs index 637f3833..73908a21 100644 --- a/sdk/dotnet/GroupCluster.cs +++ b/sdk/dotnet/GroupCluster.cs @@ -16,37 +16,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_clusters.html) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var foo = new GitLab.Group("foo", new() - /// { - /// Path = "foo-path", - /// }); - /// - /// var bar = new GitLab.GroupCluster("bar", new() - /// { - /// Group = foo.Id, - /// Domain = "example.com", - /// Enabled = true, - /// KubernetesApiUrl = "https://124.124.124", - /// KubernetesToken = "some-token", - /// KubernetesCaCert = "some-cert", - /// KubernetesAuthorizationType = "rbac", - /// EnvironmentScope = "*", - /// ManagementProjectId = "123456", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// GitLab group clusters can be imported using an id made up of `groupid:clusterid`, e.g. diff --git a/sdk/dotnet/GroupCustomAttribute.cs b/sdk/dotnet/GroupCustomAttribute.cs index bf8eb2d8..ff979de1 100644 --- a/sdk/dotnet/GroupCustomAttribute.cs +++ b/sdk/dotnet/GroupCustomAttribute.cs @@ -14,26 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/custom_attributes.html) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var attr = new GitLab.GroupCustomAttribute("attr", new() - /// { - /// Group = 42, - /// Key = "location", - /// Value = "Greenland", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// You can import a group custom attribute using the an id made up of `{group-id}:{key}`, e.g. diff --git a/sdk/dotnet/GroupEpicBoard.cs b/sdk/dotnet/GroupEpicBoard.cs index ce01f147..8c638f46 100644 --- a/sdk/dotnet/GroupEpicBoard.cs +++ b/sdk/dotnet/GroupEpicBoard.cs @@ -16,49 +16,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_boards.html) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = new GitLab.Group("example", new() - /// { - /// Path = "test_group", - /// Description = "An example group", - /// }); - /// - /// var label1 = new GitLab.GroupLabel("label1", new() - /// { - /// Group = example.Id, - /// Color = "#FF0000", - /// }); - /// - /// var label3 = new GitLab.GroupLabel("label3", new() - /// { - /// Group = example.Id, - /// Color = "#003000", - /// }); - /// - /// var epicBoard = new GitLab.GroupEpicBoard("epicBoard", new() - /// { - /// Group = example.Path, - /// Lists = new[] - /// { - /// new GitLab.Inputs.GroupEpicBoardListArgs - /// { - /// LabelId = label1.LabelId, - /// }, - /// }, - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// You can import this resource with an id made up of `{group-id}:{epic-board-id}`, e.g. diff --git a/sdk/dotnet/GroupHook.cs b/sdk/dotnet/GroupHook.cs index 425b6244..8daaa221 100644 --- a/sdk/dotnet/GroupHook.cs +++ b/sdk/dotnet/GroupHook.cs @@ -14,49 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#hooks) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = new GitLab.GroupHook("example", new() - /// { - /// Group = "example/hooked", - /// MergeRequestsEvents = true, - /// Url = "https://example.com/hook/example", - /// }); - /// - /// // Setting all attributes - /// var allAttributes = new GitLab.GroupHook("allAttributes", new() - /// { - /// ConfidentialIssuesEvents = false, - /// ConfidentialNoteEvents = true, - /// DeploymentEvents = true, - /// EnableSslVerification = false, - /// Group = "1", - /// IssuesEvents = false, - /// JobEvents = true, - /// MergeRequestsEvents = true, - /// NoteEvents = true, - /// PipelineEvents = true, - /// PushEvents = true, - /// PushEventsBranchFilter = "devel", - /// ReleasesEvents = true, - /// SubgroupEvents = true, - /// TagPushEvents = true, - /// Token = "supersecret", - /// Url = "http://example.com", - /// WikiPageEvents = true, - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// A GitLab Group Hook can be imported using a key composed of `<group-id>:<hook-id>`, e.g. diff --git a/sdk/dotnet/GroupLabel.cs b/sdk/dotnet/GroupLabel.cs index 29cf2821..b182b377 100644 --- a/sdk/dotnet/GroupLabel.cs +++ b/sdk/dotnet/GroupLabel.cs @@ -14,26 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/user/project/labels.html#group-labels) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var fixme = new GitLab.GroupLabel("fixme", new() - /// { - /// Color = "#ffcc00", - /// Description = "issue with failing tests", - /// Group = "example", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// Gitlab group labels can be imported using an id made up of `{group_id}:{group_label_id}`, e.g. diff --git a/sdk/dotnet/GroupMembership.cs b/sdk/dotnet/GroupMembership.cs index d9b5a109..4af47441 100644 --- a/sdk/dotnet/GroupMembership.cs +++ b/sdk/dotnet/GroupMembership.cs @@ -16,27 +16,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/members.html) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var test = new GitLab.GroupMembership("test", new() - /// { - /// AccessLevel = "guest", - /// ExpiresAt = "2020-12-31", - /// GroupId = "12345", - /// UserId = 1337, - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// GitLab group membership can be imported using an id made up of `group_id:user_id`, e.g. diff --git a/sdk/dotnet/GroupProjectFileTemplate.cs b/sdk/dotnet/GroupProjectFileTemplate.cs index 9377b992..81d1ce15 100644 --- a/sdk/dotnet/GroupProjectFileTemplate.cs +++ b/sdk/dotnet/GroupProjectFileTemplate.cs @@ -19,38 +19,6 @@ namespace Pulumi.GitLab /// > This resource requires a GitLab Enterprise instance with a Premium license. /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#update-group) - /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var foo = new GitLab.Group("foo", new() - /// { - /// Path = "group", - /// Description = "An example group", - /// }); - /// - /// var bar = new GitLab.Project("bar", new() - /// { - /// Description = "contains file templates", - /// VisibilityLevel = "public", - /// NamespaceId = foo.Id, - /// }); - /// - /// var templateLink = new GitLab.GroupProjectFileTemplate("templateLink", new() - /// { - /// GroupId = foo.Id, - /// FileTemplateProjectId = bar.Id, - /// }); - /// - /// }); - /// ``` /// [GitLabResourceType("gitlab:index/groupProjectFileTemplate:GroupProjectFileTemplate")] public partial class GroupProjectFileTemplate : global::Pulumi.CustomResource diff --git a/sdk/dotnet/GroupSamlLink.cs b/sdk/dotnet/GroupSamlLink.cs index 50fc176b..86824cb7 100644 --- a/sdk/dotnet/GroupSamlLink.cs +++ b/sdk/dotnet/GroupSamlLink.cs @@ -14,26 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#saml-group-links) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var test = new GitLab.GroupSamlLink("test", new() - /// { - /// AccessLevel = "developer", - /// Group = "12345", - /// SamlGroupName = "samlgroupname1", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// GitLab group saml links can be imported using an id made up of `group_id:saml_group_name`, e.g. diff --git a/sdk/dotnet/GroupShareGroup.cs b/sdk/dotnet/GroupShareGroup.cs index 953ef09d..c0d91d92 100644 --- a/sdk/dotnet/GroupShareGroup.cs +++ b/sdk/dotnet/GroupShareGroup.cs @@ -14,27 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#share-groups-with-groups) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var test = new GitLab.GroupShareGroup("test", new() - /// { - /// GroupId = gitlab_group.Foo.Id, - /// ShareGroupId = gitlab_group.Bar.Id, - /// GroupAccess = "guest", - /// ExpiresAt = "2099-01-01", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// GitLab group shares can be imported using an id made up of `mainGroupId:shareGroupId`, e.g. diff --git a/sdk/dotnet/GroupVariable.cs b/sdk/dotnet/GroupVariable.cs index f1a0ede5..83ebc1e4 100644 --- a/sdk/dotnet/GroupVariable.cs +++ b/sdk/dotnet/GroupVariable.cs @@ -14,29 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_level_variables.html) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = new GitLab.GroupVariable("example", new() - /// { - /// EnvironmentScope = "*", - /// Group = "12345", - /// Key = "group_variable_key", - /// Masked = false, - /// Protected = false, - /// Value = "group_variable_value", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// GitLab group variables can be imported using an id made up of `groupid:variablename:scope`, e.g. diff --git a/sdk/dotnet/InstanceCluster.cs b/sdk/dotnet/InstanceCluster.cs index ef412c08..017234b8 100644 --- a/sdk/dotnet/InstanceCluster.cs +++ b/sdk/dotnet/InstanceCluster.cs @@ -16,32 +16,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/instance_clusters.html) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var bar = new GitLab.InstanceCluster("bar", new() - /// { - /// Domain = "example.com", - /// Enabled = true, - /// EnvironmentScope = "*", - /// KubernetesApiUrl = "https://124.124.124", - /// KubernetesAuthorizationType = "rbac", - /// KubernetesCaCert = "some-cert", - /// KubernetesNamespace = "namespace", - /// KubernetesToken = "some-token", - /// ManagementProjectId = "123456", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// GitLab instance clusters can be imported using a `clusterid`, e.g. diff --git a/sdk/dotnet/InstanceVariable.cs b/sdk/dotnet/InstanceVariable.cs index 2786ce79..981e899e 100644 --- a/sdk/dotnet/InstanceVariable.cs +++ b/sdk/dotnet/InstanceVariable.cs @@ -14,27 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/instance_level_ci_variables.html) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = new GitLab.InstanceVariable("example", new() - /// { - /// Key = "instance_variable_key", - /// Masked = false, - /// Protected = false, - /// Value = "instance_variable_value", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// GitLab instance variables can be imported using an id made up of `variablename`, e.g. diff --git a/sdk/dotnet/IntegrationCustomIssueTracker.cs b/sdk/dotnet/IntegrationCustomIssueTracker.cs index 9550c420..a19d5bbf 100644 --- a/sdk/dotnet/IntegrationCustomIssueTracker.cs +++ b/sdk/dotnet/IntegrationCustomIssueTracker.cs @@ -14,32 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#custom-issue-tracker) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var awesomeProject = new GitLab.Project("awesomeProject", new() - /// { - /// Description = "My awesome project.", - /// VisibilityLevel = "public", - /// }); - /// - /// var tracker = new GitLab.IntegrationCustomIssueTracker("tracker", new() - /// { - /// Project = awesomeProject.Id, - /// ProjectUrl = "https://customtracker.com/issues", - /// IssuesUrl = "https://customtracker.com/TEST-:id", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// You can import a gitlab_integration_custom_issue_tracker state using the project ID, e.g. diff --git a/sdk/dotnet/IntegrationEmailsOnPush.cs b/sdk/dotnet/IntegrationEmailsOnPush.cs index 5c441457..9b3dfccb 100644 --- a/sdk/dotnet/IntegrationEmailsOnPush.cs +++ b/sdk/dotnet/IntegrationEmailsOnPush.cs @@ -14,31 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#emails-on-push) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var awesomeProject = new GitLab.Project("awesomeProject", new() - /// { - /// Description = "My awesome project.", - /// VisibilityLevel = "public", - /// }); - /// - /// var emails = new GitLab.IntegrationEmailsOnPush("emails", new() - /// { - /// Project = awesomeProject.Id, - /// Recipients = "myrecipient@example.com myotherrecipient@example.com", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// You can import a gitlab_integration_emails_on_push state using the project ID, e.g. diff --git a/sdk/dotnet/IntegrationExternalWiki.cs b/sdk/dotnet/IntegrationExternalWiki.cs index 65f186a1..ee40feed 100644 --- a/sdk/dotnet/IntegrationExternalWiki.cs +++ b/sdk/dotnet/IntegrationExternalWiki.cs @@ -14,31 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#external-wiki) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var awesomeProject = new GitLab.Project("awesomeProject", new() - /// { - /// Description = "My awesome project.", - /// VisibilityLevel = "public", - /// }); - /// - /// var wiki = new GitLab.IntegrationExternalWiki("wiki", new() - /// { - /// Project = awesomeProject.Id, - /// ExternalWikiUrl = "https://MyAwesomeExternalWikiURL.com", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// You can import a gitlab_integration_external_wiki state using the project ID, e.g. diff --git a/sdk/dotnet/IntegrationGithub.cs b/sdk/dotnet/IntegrationGithub.cs index 3f6f8336..d42702f5 100644 --- a/sdk/dotnet/IntegrationGithub.cs +++ b/sdk/dotnet/IntegrationGithub.cs @@ -16,32 +16,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#github) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var awesomeProject = new GitLab.Project("awesomeProject", new() - /// { - /// Description = "My awesome project.", - /// VisibilityLevel = "public", - /// }); - /// - /// var github = new GitLab.IntegrationGithub("github", new() - /// { - /// Project = awesomeProject.Id, - /// Token = "REDACTED", - /// RepositoryUrl = "https://github.com/gitlabhq/terraform-provider-gitlab", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// ```sh diff --git a/sdk/dotnet/IntegrationJira.cs b/sdk/dotnet/IntegrationJira.cs index 0ece8b3a..ae16b0fb 100644 --- a/sdk/dotnet/IntegrationJira.cs +++ b/sdk/dotnet/IntegrationJira.cs @@ -14,33 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/services.html#jira) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var awesomeProject = new GitLab.Project("awesomeProject", new() - /// { - /// Description = "My awesome project.", - /// VisibilityLevel = "public", - /// }); - /// - /// var jira = new GitLab.IntegrationJira("jira", new() - /// { - /// Project = awesomeProject.Id, - /// Url = "https://jira.example.com", - /// Username = "user", - /// Password = "mypass", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// You can import a gitlab_integration_jira state using the project ID, e.g. diff --git a/sdk/dotnet/IntegrationMattermost.cs b/sdk/dotnet/IntegrationMattermost.cs index 05d96e4d..9efe59fd 100644 --- a/sdk/dotnet/IntegrationMattermost.cs +++ b/sdk/dotnet/IntegrationMattermost.cs @@ -14,34 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#mattermost-notifications) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var awesomeProject = new GitLab.Project("awesomeProject", new() - /// { - /// Description = "My awesome project.", - /// VisibilityLevel = "public", - /// }); - /// - /// var mattermost = new GitLab.IntegrationMattermost("mattermost", new() - /// { - /// Project = awesomeProject.Id, - /// Webhook = "https://webhook.com", - /// Username = "myuser", - /// PushEvents = true, - /// PushChannel = "push_chan", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// You can import a gitlab_integration_mattermost.mattermost state using the project ID, e.g. diff --git a/sdk/dotnet/IntegrationMicrosoftTeams.cs b/sdk/dotnet/IntegrationMicrosoftTeams.cs index 6702c761..427db0ae 100644 --- a/sdk/dotnet/IntegrationMicrosoftTeams.cs +++ b/sdk/dotnet/IntegrationMicrosoftTeams.cs @@ -14,32 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#microsoft-teams) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var awesomeProject = new GitLab.Project("awesomeProject", new() - /// { - /// Description = "My awesome project.", - /// VisibilityLevel = "public", - /// }); - /// - /// var teams = new GitLab.IntegrationMicrosoftTeams("teams", new() - /// { - /// Project = awesomeProject.Id, - /// Webhook = "https://testurl.com/?token=XYZ", - /// PushEvents = true, - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// You can import a gitlab_integration_microsoft_teams state using the project ID, e.g. diff --git a/sdk/dotnet/IntegrationPipelinesEmail.cs b/sdk/dotnet/IntegrationPipelinesEmail.cs index 37fa1bc5..5cd540a9 100644 --- a/sdk/dotnet/IntegrationPipelinesEmail.cs +++ b/sdk/dotnet/IntegrationPipelinesEmail.cs @@ -14,36 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#pipeline-emails) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var awesomeProject = new GitLab.Project("awesomeProject", new() - /// { - /// Description = "My awesome project.", - /// VisibilityLevel = "public", - /// }); - /// - /// var email = new GitLab.IntegrationPipelinesEmail("email", new() - /// { - /// Project = awesomeProject.Id, - /// Recipients = new[] - /// { - /// "gitlab@user.create", - /// }, - /// NotifyOnlyBrokenPipelines = true, - /// BranchesToBeNotified = "all", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// You can import a gitlab_integration_pipelines_email state using the project ID, e.g. diff --git a/sdk/dotnet/IntegrationSlack.cs b/sdk/dotnet/IntegrationSlack.cs index beb65f33..883efa01 100644 --- a/sdk/dotnet/IntegrationSlack.cs +++ b/sdk/dotnet/IntegrationSlack.cs @@ -14,34 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#slack-notifications) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var awesomeProject = new GitLab.Project("awesomeProject", new() - /// { - /// Description = "My awesome project.", - /// VisibilityLevel = "public", - /// }); - /// - /// var slack = new GitLab.IntegrationSlack("slack", new() - /// { - /// Project = awesomeProject.Id, - /// Webhook = "https://webhook.com", - /// Username = "myuser", - /// PushEvents = true, - /// PushChannel = "push_chan", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// You can import a gitlab_integration_slack.slack state using the project ID, e.g. diff --git a/sdk/dotnet/PagesDomain.cs b/sdk/dotnet/PagesDomain.cs index 6e6d0640..461af0aa 100644 --- a/sdk/dotnet/PagesDomain.cs +++ b/sdk/dotnet/PagesDomain.cs @@ -14,37 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/pages_domains.html) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.IO; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// // Example using auto_ssl_enabled, which uses lets encrypt to generate a certificate - /// var thisPagesDomain = new GitLab.PagesDomain("thisPagesDomain", new() - /// { - /// Project = "123", - /// Domain = "example.com", - /// AutoSslEnabled = true, - /// }); - /// - /// // Example using a manually generated certificate and key - /// var thisIndex_pagesDomainPagesDomain = new GitLab.PagesDomain("thisIndex/pagesDomainPagesDomain", new() - /// { - /// Project = "123", - /// Domain = "example.com", - /// Key = File.ReadAllText($"{path.Module}/key.pem"), - /// Certificate = File.ReadAllText($"{path.Module}/cert.pem"), - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// GitLab pages domain can be imported using an id made up of `projectId:domain` _without_ the http protocol, e.g. diff --git a/sdk/dotnet/PersonalAccessToken.cs b/sdk/dotnet/PersonalAccessToken.cs index 1a321cd8..a3dcf9d6 100644 --- a/sdk/dotnet/PersonalAccessToken.cs +++ b/sdk/dotnet/PersonalAccessToken.cs @@ -16,36 +16,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/personal_access_tokens.html) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var examplePersonalAccessToken = new GitLab.PersonalAccessToken("examplePersonalAccessToken", new() - /// { - /// UserId = 25, - /// ExpiresAt = "2020-03-14", - /// Scopes = new[] - /// { - /// "api", - /// }, - /// }); - /// - /// var exampleProjectVariable = new GitLab.ProjectVariable("exampleProjectVariable", new() - /// { - /// Project = gitlab_project.Example.Id, - /// Key = "pat", - /// Value = examplePersonalAccessToken.Token, - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// A GitLab Personal Access Token can be imported using a key composed of `<user-id>:<token-id>`, e.g. diff --git a/sdk/dotnet/PipelineSchedule.cs b/sdk/dotnet/PipelineSchedule.cs index 216e5fe2..563acc86 100644 --- a/sdk/dotnet/PipelineSchedule.cs +++ b/sdk/dotnet/PipelineSchedule.cs @@ -14,27 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/pipeline_schedules.html) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = new GitLab.PipelineSchedule("example", new() - /// { - /// Cron = "0 1 * * *", - /// Description = "Used to schedule builds", - /// Project = "12345", - /// Ref = "master", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// GitLab pipeline schedules can be imported using an id made up of `{project_id}:{pipeline_schedule_id}`, e.g. diff --git a/sdk/dotnet/PipelineScheduleVariable.cs b/sdk/dotnet/PipelineScheduleVariable.cs index c27fb900..22c22a53 100644 --- a/sdk/dotnet/PipelineScheduleVariable.cs +++ b/sdk/dotnet/PipelineScheduleVariable.cs @@ -14,35 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/pipeline_schedules.html#pipeline-schedule-variables) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var examplePipelineSchedule = new GitLab.PipelineSchedule("examplePipelineSchedule", new() - /// { - /// Project = "12345", - /// Description = "Used to schedule builds", - /// Ref = "master", - /// Cron = "0 1 * * *", - /// }); - /// - /// var examplePipelineScheduleVariable = new GitLab.PipelineScheduleVariable("examplePipelineScheduleVariable", new() - /// { - /// Project = examplePipelineSchedule.Project, - /// PipelineScheduleId = examplePipelineSchedule.PipelineScheduleId, - /// Key = "EXAMPLE_KEY", - /// Value = "example", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// Pipeline schedule variables can be imported using an id made up of `project_id:pipeline_schedule_id:key`, e.g. diff --git a/sdk/dotnet/PipelineTrigger.cs b/sdk/dotnet/PipelineTrigger.cs index 68f952eb..85c2447e 100644 --- a/sdk/dotnet/PipelineTrigger.cs +++ b/sdk/dotnet/PipelineTrigger.cs @@ -14,25 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/pipeline_triggers.html) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = new GitLab.PipelineTrigger("example", new() - /// { - /// Description = "Used to trigger builds", - /// Project = "12345", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// GitLab pipeline triggers can be imported using an id made up of `{project_id}:{pipeline_trigger_id}`, e.g. diff --git a/sdk/dotnet/Project.cs b/sdk/dotnet/Project.cs index 3000ab3d..eea4d41d 100644 --- a/sdk/dotnet/Project.cs +++ b/sdk/dotnet/Project.cs @@ -10,102 +10,6 @@ namespace Pulumi.GitLab { /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = new GitLab.Project("example", new() - /// { - /// Description = "My awesome codebase", - /// VisibilityLevel = "public", - /// }); - /// - /// // Project with custom push rules - /// var example_two = new GitLab.Project("example-two", new() - /// { - /// PushRules = new GitLab.Inputs.ProjectPushRulesArgs - /// { - /// AuthorEmailRegex = "@example\\.com$", - /// CommitCommitterCheck = true, - /// MemberCheck = true, - /// PreventSecrets = true, - /// }, - /// }); - /// - /// var peterParker = GitLab.GetUser.Invoke(new() - /// { - /// Username = "peter_parker", - /// }); - /// - /// var petersRepo = new GitLab.Project("petersRepo", new() - /// { - /// Description = "This is a description", - /// NamespaceId = peterParker.Apply(getUserResult => getUserResult.NamespaceId), - /// }); - /// - /// // Fork a project - /// var forkProject = new GitLab.Project("forkProject", new() - /// { - /// Description = "This is a fork", - /// ForkedFromProjectId = example.Id, - /// }); - /// - /// // Fork a project and setup a pull mirror - /// var forkIndex_projectProject = new GitLab.Project("forkIndex/projectProject", new() - /// { - /// Description = "This is a fork", - /// ForkedFromProjectId = example.Id, - /// ImportUrl = example.HttpUrlToRepo, - /// Mirror = true, - /// }); - /// - /// // Create a project by importing it from a public project - /// var importPublic = new GitLab.Project("importPublic", new() - /// { - /// ImportUrl = "https://gitlab.example.com/repo.git", - /// }); - /// - /// // Create a project by importing it from a public project and setup the pull mirror - /// var importPublicWithMirror = new GitLab.Project("importPublicWithMirror", new() - /// { - /// ImportUrl = "https://gitlab.example.com/repo.git", - /// Mirror = true, - /// }); - /// - /// // Create a project by importing it from a private project - /// var importPrivateProject = new GitLab.Project("importPrivateProject", new() - /// { - /// ImportUrl = "https://gitlab.example.com/repo.git", - /// ImportUrlUsername = "user", - /// ImportUrlPassword = "pass", - /// }); - /// - /// // Create a project by importing it from a private project and setup the pull mirror - /// var importPrivateWithMirror = new GitLab.Project("importPrivateWithMirror", new() - /// { - /// ImportUrl = "https://gitlab.example.com/repo.git", - /// ImportUrlUsername = "user", - /// ImportUrlPassword = "pass", - /// Mirror = true, - /// }); - /// - /// // Create a project by importing it from a private project and provide credentials in `import_url` - /// // NOTE: only use this if you really must, use `import_url_username` and `import_url_password` whenever possible - /// // GitLab API will always return the `import_url` without credentials, therefore you must ignore the `import_url` for changes: - /// var importPrivateIndex_projectProject = new GitLab.Project("importPrivateIndex/projectProject", new() - /// { - /// ImportUrl = "https://user:pass@gitlab.example.com/repo.git", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// ```sh diff --git a/sdk/dotnet/ProjectAccessToken.cs b/sdk/dotnet/ProjectAccessToken.cs index 95051a50..79c296e6 100644 --- a/sdk/dotnet/ProjectAccessToken.cs +++ b/sdk/dotnet/ProjectAccessToken.cs @@ -14,37 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/project_access_tokens.html) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var exampleProjectAccessToken = new GitLab.ProjectAccessToken("exampleProjectAccessToken", new() - /// { - /// Project = "25", - /// ExpiresAt = "2020-03-14", - /// AccessLevel = "reporter", - /// Scopes = new[] - /// { - /// "api", - /// }, - /// }); - /// - /// var exampleProjectVariable = new GitLab.ProjectVariable("exampleProjectVariable", new() - /// { - /// Project = gitlab_project.Example.Id, - /// Key = "pat", - /// Value = exampleProjectAccessToken.Token, - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// A GitLab Project Access Token can be imported using a key composed of `<project-id>:<token-id>`, e.g. diff --git a/sdk/dotnet/ProjectBadge.cs b/sdk/dotnet/ProjectBadge.cs index 25c680bf..676bc845 100644 --- a/sdk/dotnet/ProjectBadge.cs +++ b/sdk/dotnet/ProjectBadge.cs @@ -14,52 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/user/project/badges.html#project-badges) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var foo = new GitLab.Project("foo"); - /// - /// var example = new GitLab.ProjectBadge("example", new() - /// { - /// Project = foo.Id, - /// LinkUrl = "https://example.com/badge-123", - /// ImageUrl = "https://example.com/badge-123.svg", - /// }); - /// - /// // Pipeline status badges with placeholders will be enabled - /// var gitlabPipeline = new GitLab.ProjectBadge("gitlabPipeline", new() - /// { - /// Project = foo.Id, - /// LinkUrl = "https://gitlab.example.com/%{project_path}/-/pipelines?ref=%{default_branch}", - /// ImageUrl = "https://gitlab.example.com/%{project_path}/badges/%{default_branch}/pipeline.svg", - /// }); - /// - /// // Test coverage report badges with placeholders will be enabled - /// var gitlabCoverage = new GitLab.ProjectBadge("gitlabCoverage", new() - /// { - /// Project = foo.Id, - /// LinkUrl = "https://gitlab.example.com/%{project_path}/-/jobs", - /// ImageUrl = "https://gitlab.example.com/%{project_path}/badges/%{default_branch}/coverage.svg", - /// }); - /// - /// // Latest release badges with placeholders will be enabled - /// var gitlabRelease = new GitLab.ProjectBadge("gitlabRelease", new() - /// { - /// Project = foo.Id, - /// LinkUrl = "https://gitlab.example.com/%{project_path}/-/releases", - /// ImageUrl = "https://gitlab.example.com/%{project_path}/-/badges/release.svg", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// GitLab project badges can be imported using an id made up of `{project_id}:{badge_id}`, e.g. diff --git a/sdk/dotnet/ProjectCluster.cs b/sdk/dotnet/ProjectCluster.cs index b19a6035..d856cb51 100644 --- a/sdk/dotnet/ProjectCluster.cs +++ b/sdk/dotnet/ProjectCluster.cs @@ -16,35 +16,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/project_clusters.html) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var foo = new GitLab.Project("foo"); - /// - /// var bar = new GitLab.ProjectCluster("bar", new() - /// { - /// Project = foo.Id, - /// Domain = "example.com", - /// Enabled = true, - /// KubernetesApiUrl = "https://124.124.124", - /// KubernetesToken = "some-token", - /// KubernetesCaCert = "some-cert", - /// KubernetesNamespace = "namespace", - /// KubernetesAuthorizationType = "rbac", - /// EnvironmentScope = "*", - /// ManagementProjectId = "123456", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// GitLab project clusters can be imported using an id made up of `projectid:clusterid`, e.g. diff --git a/sdk/dotnet/ProjectComplianceFramework.cs b/sdk/dotnet/ProjectComplianceFramework.cs index 68dcad8a..551e77c1 100644 --- a/sdk/dotnet/ProjectComplianceFramework.cs +++ b/sdk/dotnet/ProjectComplianceFramework.cs @@ -16,34 +16,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab GraphQL API docs](https://docs.gitlab.com/ee/api/graphql/reference/#mutationprojectsetcomplianceframework) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var sampleComplianceFramework = new GitLab.ComplianceFramework("sampleComplianceFramework", new() - /// { - /// NamespacePath = "top-level-group", - /// Description = "A HIPAA Compliance Framework", - /// Color = "#87BEEF", - /// Default = false, - /// PipelineConfigurationFullPath = ".hipaa.yml@top-level-group/compliance-frameworks", - /// }); - /// - /// var sampleProjectComplianceFramework = new GitLab.ProjectComplianceFramework("sampleProjectComplianceFramework", new() - /// { - /// ComplianceFrameworkId = sampleComplianceFramework.FrameworkId, - /// Project = "12345678", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// Gitlab project compliance frameworks can be imported with a key composed of `<project_id>`, e.g. diff --git a/sdk/dotnet/ProjectCustomAttribute.cs b/sdk/dotnet/ProjectCustomAttribute.cs index 2ab8686a..ce5c49a3 100644 --- a/sdk/dotnet/ProjectCustomAttribute.cs +++ b/sdk/dotnet/ProjectCustomAttribute.cs @@ -14,26 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/custom_attributes.html) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var attr = new GitLab.ProjectCustomAttribute("attr", new() - /// { - /// Key = "location", - /// Project = 42, - /// Value = "Greenland", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// You can import a project custom attribute using an id made up of `{project-id}:{key}`, e.g. diff --git a/sdk/dotnet/ProjectEnvironment.cs b/sdk/dotnet/ProjectEnvironment.cs index c80b814b..a023a3e2 100644 --- a/sdk/dotnet/ProjectEnvironment.cs +++ b/sdk/dotnet/ProjectEnvironment.cs @@ -10,37 +10,6 @@ namespace Pulumi.GitLab { /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var thisGroup = new GitLab.Group("thisGroup", new() - /// { - /// Path = "example", - /// Description = "An example group", - /// }); - /// - /// var thisProject = new GitLab.Project("thisProject", new() - /// { - /// NamespaceId = thisGroup.Id, - /// InitializeWithReadme = true, - /// }); - /// - /// var thisProjectEnvironment = new GitLab.ProjectEnvironment("thisProjectEnvironment", new() - /// { - /// Project = thisProject.Id, - /// ExternalUrl = "www.example.com", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// GitLab project environments can be imported using an id made up of `projectId:environmenId`, e.g. diff --git a/sdk/dotnet/ProjectFreezePeriod.cs b/sdk/dotnet/ProjectFreezePeriod.cs index 9fbe6037..64e1332a 100644 --- a/sdk/dotnet/ProjectFreezePeriod.cs +++ b/sdk/dotnet/ProjectFreezePeriod.cs @@ -14,27 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/freeze_periods.html) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var schedule = new GitLab.ProjectFreezePeriod("schedule", new() - /// { - /// Project = gitlab_project.Foo.Id, - /// FreezeStart = "0 23 * * 5", - /// FreezeEnd = "0 7 * * 1", - /// CronTimezone = "UTC", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// GitLab project freeze periods can be imported using an id made up of `project_id:freeze_period_id`, e.g. diff --git a/sdk/dotnet/ProjectHook.cs b/sdk/dotnet/ProjectHook.cs index 08a6de3b..12ba7ae9 100644 --- a/sdk/dotnet/ProjectHook.cs +++ b/sdk/dotnet/ProjectHook.cs @@ -14,26 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#hooks) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = new GitLab.ProjectHook("example", new() - /// { - /// MergeRequestsEvents = true, - /// Project = "example/hooked", - /// Url = "https://example.com/hook/example", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// A GitLab Project Hook can be imported using a key composed of `<project-id>:<hook-id>`, e.g. diff --git a/sdk/dotnet/ProjectIssue.cs b/sdk/dotnet/ProjectIssue.cs index 25b46896..ef9af7e0 100644 --- a/sdk/dotnet/ProjectIssue.cs +++ b/sdk/dotnet/ProjectIssue.cs @@ -10,39 +10,6 @@ namespace Pulumi.GitLab { /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var foo = new GitLab.Project("foo", new() - /// { - /// Description = "Lorem Ipsum", - /// VisibilityLevel = "public", - /// }); - /// - /// var welcomeIssue = new GitLab.ProjectIssue("welcomeIssue", new() - /// { - /// Project = foo.Id, - /// Title = "Welcome!", - /// Description = foo.Name.Apply(name => @$" Welcome to the {name} project! - /// - /// "), - /// DiscussionLocked = true, - /// }); - /// - /// return new Dictionary<string, object?> - /// { - /// ["welcomeIssueWebUrl"] = data.Gitlab_project_issue.Web_url, - /// }; - /// }); - /// ``` - /// /// ## Import /// /// You can import this resource with an id made up of `{project-id}:{issue-id}`, e.g. diff --git a/sdk/dotnet/ProjectLabel.cs b/sdk/dotnet/ProjectLabel.cs index e333be6f..b47aab25 100644 --- a/sdk/dotnet/ProjectLabel.cs +++ b/sdk/dotnet/ProjectLabel.cs @@ -14,34 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/labels.html#project-labels) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var fixme = new GitLab.ProjectLabel("fixme", new() - /// { - /// Project = "example", - /// Description = "issue with failing tests", - /// Color = "#ffcc00", - /// }); - /// - /// // Scoped label - /// var devopsCreate = new GitLab.ProjectLabel("devopsCreate", new() - /// { - /// Project = gitlab_project.Example.Id, - /// Description = "issue for creating infrastructure resources", - /// Color = "#ffa500", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// Gitlab Project labels can be imported using an id made up of `{project_id}:{group_label_id}`, e.g. diff --git a/sdk/dotnet/ProjectLevelMrApprovals.cs b/sdk/dotnet/ProjectLevelMrApprovals.cs index 997733b5..131ffe3a 100644 --- a/sdk/dotnet/ProjectLevelMrApprovals.cs +++ b/sdk/dotnet/ProjectLevelMrApprovals.cs @@ -16,33 +16,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/merge_request_approvals.html#merge-request-level-mr-approvals) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var fooProject = new GitLab.Project("fooProject", new() - /// { - /// Description = "My example project", - /// }); - /// - /// var fooProjectLevelMrApprovals = new GitLab.ProjectLevelMrApprovals("fooProjectLevelMrApprovals", new() - /// { - /// Project = fooProject.Id, - /// ResetApprovalsOnPush = true, - /// DisableOverridingApproversPerMergeRequest = false, - /// MergeRequestsAuthorApproval = false, - /// MergeRequestsDisableCommittersApproval = true, - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// ```sh diff --git a/sdk/dotnet/ProjectMembership.cs b/sdk/dotnet/ProjectMembership.cs index 6c26b6f3..87e681e0 100644 --- a/sdk/dotnet/ProjectMembership.cs +++ b/sdk/dotnet/ProjectMembership.cs @@ -16,34 +16,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/members.html) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var test = new GitLab.ProjectMembership("test", new() - /// { - /// AccessLevel = "guest", - /// Project = "12345", - /// UserId = 1337, - /// }); - /// - /// var example = new GitLab.ProjectMembership("example", new() - /// { - /// AccessLevel = "guest", - /// ExpiresAt = "2022-12-31", - /// Project = "67890", - /// UserId = 1234, - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// GitLab project membership can be imported using an id made up of `project_id:user_id`, e.g. diff --git a/sdk/dotnet/ProjectMilestone.cs b/sdk/dotnet/ProjectMilestone.cs index b91facbd..60ff9328 100644 --- a/sdk/dotnet/ProjectMilestone.cs +++ b/sdk/dotnet/ProjectMilestone.cs @@ -14,32 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/milestones.html) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// // Create a project for the milestone to use - /// var exampleProject = new GitLab.Project("exampleProject", new() - /// { - /// Description = "An example project", - /// NamespaceId = gitlab_group.Example.Id, - /// }); - /// - /// var exampleProjectMilestone = new GitLab.ProjectMilestone("exampleProjectMilestone", new() - /// { - /// Project = exampleProject.Id, - /// Title = "example", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// Gitlab project milestone can be imported with a key composed of `<project>:<milestone_id>`, e.g. diff --git a/sdk/dotnet/ProjectMirror.cs b/sdk/dotnet/ProjectMirror.cs index 059d7d57..26b808ab 100644 --- a/sdk/dotnet/ProjectMirror.cs +++ b/sdk/dotnet/ProjectMirror.cs @@ -25,25 +25,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/remote_mirrors.html) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var foo = new GitLab.ProjectMirror("foo", new() - /// { - /// Project = "1", - /// Url = "https://username:password@github.com/org/repository.git", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// GitLab project mirror can be imported using an id made up of `project_id:mirror_id`, e.g. diff --git a/sdk/dotnet/ProjectRunnerEnablement.cs b/sdk/dotnet/ProjectRunnerEnablement.cs index 24f32f41..b0827b07 100644 --- a/sdk/dotnet/ProjectRunnerEnablement.cs +++ b/sdk/dotnet/ProjectRunnerEnablement.cs @@ -14,25 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/runners.html#enable-a-runner-in-project) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var foo = new GitLab.ProjectRunnerEnablement("foo", new() - /// { - /// Project = "5", - /// RunnerId = 7, - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// GitLab project runners can be imported using an id made up of `project:runner_id`, e.g. diff --git a/sdk/dotnet/ProjectShareGroup.cs b/sdk/dotnet/ProjectShareGroup.cs index 6fd575f4..883481f6 100644 --- a/sdk/dotnet/ProjectShareGroup.cs +++ b/sdk/dotnet/ProjectShareGroup.cs @@ -14,26 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#share-project-with-group) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var test = new GitLab.ProjectShareGroup("test", new() - /// { - /// GroupAccess = "guest", - /// GroupId = 1337, - /// Project = "12345", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// GitLab project group shares can be imported using an id made up of `projectid:groupid`, e.g. diff --git a/sdk/dotnet/ProjectTag.cs b/sdk/dotnet/ProjectTag.cs index b355b4ae..eb60b06c 100644 --- a/sdk/dotnet/ProjectTag.cs +++ b/sdk/dotnet/ProjectTag.cs @@ -14,32 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/tags.html) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// // Create a project for the tag to use - /// var exampleProject = new GitLab.Project("exampleProject", new() - /// { - /// Description = "An example project", - /// NamespaceId = gitlab_group.Example.Id, - /// }); - /// - /// var exampleProjectTag = new GitLab.ProjectTag("exampleProjectTag", new() - /// { - /// Ref = "main", - /// Project = exampleProject.Id, - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// Gitlab project tags can be imported with a key composed of `<project_id>:<tag_name>`, e.g. diff --git a/sdk/dotnet/ProjectVariable.cs b/sdk/dotnet/ProjectVariable.cs index cba70fbf..2f6023f1 100644 --- a/sdk/dotnet/ProjectVariable.cs +++ b/sdk/dotnet/ProjectVariable.cs @@ -16,27 +16,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/project_level_variables.html) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = new GitLab.ProjectVariable("example", new() - /// { - /// Key = "project_variable_key", - /// Project = "12345", - /// Protected = false, - /// Value = "project_variable_value", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// GitLab project variables can be imported using an id made up of `project:key:environment_scope`, e.g. diff --git a/sdk/dotnet/ReleaseLink.cs b/sdk/dotnet/ReleaseLink.cs index 6311ecb6..1639c2ef 100644 --- a/sdk/dotnet/ReleaseLink.cs +++ b/sdk/dotnet/ReleaseLink.cs @@ -14,33 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/releases/links.html) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// // Create a project - /// var exampleProject = new GitLab.Project("exampleProject", new() - /// { - /// Description = "An example project", - /// }); - /// - /// // Can create release link only to a tag associated with a release - /// var exampleReleaseLink = new GitLab.ReleaseLink("exampleReleaseLink", new() - /// { - /// Project = exampleProject.Id, - /// TagName = "tag_name_associated_with_release", - /// Url = "https://test/", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// Gitlab release link can be imported with a key composed of `<project>:<tag_name>:<link_id>`, e.g. diff --git a/sdk/dotnet/Runner.cs b/sdk/dotnet/Runner.cs index 7431dc70..fc3d9261 100644 --- a/sdk/dotnet/Runner.cs +++ b/sdk/dotnet/Runner.cs @@ -20,82 +20,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/runners.html#register-a-new-runner) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// using Local = Pulumi.Local; - /// - /// return await Deployment.RunAsync(() => - /// { - /// // Basic GitLab Group Runner - /// var myGroup = new GitLab.Group("myGroup", new() - /// { - /// Description = "group that holds the runners", - /// }); - /// - /// var basicRunner = new GitLab.Runner("basicRunner", new() - /// { - /// RegistrationToken = myGroup.RunnersToken, - /// }); - /// - /// // GitLab Runner that runs only tagged jobs - /// var taggedOnly = new GitLab.Runner("taggedOnly", new() - /// { - /// RegistrationToken = myGroup.RunnersToken, - /// Description = "I only run tagged jobs", - /// RunUntagged = false, - /// TagLists = new[] - /// { - /// "tag_one", - /// "tag_two", - /// }, - /// }); - /// - /// // GitLab Runner that only runs on protected branches - /// var @protected = new GitLab.Runner("protected", new() - /// { - /// RegistrationToken = myGroup.RunnersToken, - /// Description = "I only run protected jobs", - /// AccessLevel = "ref_protected", - /// }); - /// - /// // Generate a `config.toml` file that you can use to create a runner - /// // This is the typical workflow for this resource, using it to create an authentication_token which can then be used - /// // to generate the `config.toml` file to prevent re-registering the runner every time new hardware is created. - /// var myCustomGroup = new GitLab.Group("myCustomGroup", new() - /// { - /// Description = "group that holds the custom runners", - /// }); - /// - /// var myRunner = new GitLab.Runner("myRunner", new() - /// { - /// RegistrationToken = myCustomGroup.RunnersToken, - /// }); - /// - /// // This creates a configuration for a local "shell" runner, but can be changed to generate whatever is needed. - /// // Place this configuration file on a server at `/etc/gitlab-runner/config.toml`, then run `gitlab-runner start`. - /// // See https://docs.gitlab.com/runner/configuration/advanced-configuration.html for more information. - /// var config = new Local.File("config", new() - /// { - /// Filename = $"{path.Module}/config.toml", - /// Content = myRunner.AuthenticationToken.Apply(authenticationToken => @$" concurrent = 1 - /// - /// [[runners]] - /// name = ""Hello Terraform"" - /// url = ""https://example.gitlab.com/"" - /// token = ""{authenticationToken}"" - /// executor = ""shell"" - /// - /// "), - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// A GitLab Runner can be imported using the runner's ID, eg diff --git a/sdk/dotnet/ServiceCustomIssueTracker.cs b/sdk/dotnet/ServiceCustomIssueTracker.cs index 30454584..e168d674 100644 --- a/sdk/dotnet/ServiceCustomIssueTracker.cs +++ b/sdk/dotnet/ServiceCustomIssueTracker.cs @@ -16,32 +16,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#custom-issue-tracker) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var awesomeProject = new GitLab.Project("awesomeProject", new() - /// { - /// Description = "My awesome project.", - /// VisibilityLevel = "public", - /// }); - /// - /// var tracker = new GitLab.ServiceCustomIssueTracker("tracker", new() - /// { - /// Project = awesomeProject.Id, - /// ProjectUrl = "https://customtracker.com/issues", - /// IssuesUrl = "https://customtracker.com/TEST-:id", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// You can import a gitlab_service_custom_issue_tracker state using the project ID, e.g. diff --git a/sdk/dotnet/ServiceEmailsOnPush.cs b/sdk/dotnet/ServiceEmailsOnPush.cs index f808aa99..33fc752d 100644 --- a/sdk/dotnet/ServiceEmailsOnPush.cs +++ b/sdk/dotnet/ServiceEmailsOnPush.cs @@ -16,31 +16,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#emails-on-push) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var awesomeProject = new GitLab.Project("awesomeProject", new() - /// { - /// Description = "My awesome project.", - /// VisibilityLevel = "public", - /// }); - /// - /// var emails = new GitLab.ServiceEmailsOnPush("emails", new() - /// { - /// Project = awesomeProject.Id, - /// Recipients = "myrecipient@example.com myotherrecipient@example.com", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// You can import a gitlab_service_emails_on_push state using the project ID, e.g. diff --git a/sdk/dotnet/ServiceExternalWiki.cs b/sdk/dotnet/ServiceExternalWiki.cs index 71203121..2b50a6ea 100644 --- a/sdk/dotnet/ServiceExternalWiki.cs +++ b/sdk/dotnet/ServiceExternalWiki.cs @@ -16,31 +16,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#external-wiki) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var awesomeProject = new GitLab.Project("awesomeProject", new() - /// { - /// Description = "My awesome project.", - /// VisibilityLevel = "public", - /// }); - /// - /// var wiki = new GitLab.ServiceExternalWiki("wiki", new() - /// { - /// Project = awesomeProject.Id, - /// ExternalWikiUrl = "https://MyAwesomeExternalWikiURL.com", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// You can import a gitlab_service_external_wiki state using the project ID, e.g. diff --git a/sdk/dotnet/ServiceGithub.cs b/sdk/dotnet/ServiceGithub.cs index 8e28117d..0299e64a 100644 --- a/sdk/dotnet/ServiceGithub.cs +++ b/sdk/dotnet/ServiceGithub.cs @@ -18,32 +18,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#github) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var awesomeProject = new GitLab.Project("awesomeProject", new() - /// { - /// Description = "My awesome project.", - /// VisibilityLevel = "public", - /// }); - /// - /// var github = new GitLab.ServiceGithub("github", new() - /// { - /// Project = awesomeProject.Id, - /// Token = "REDACTED", - /// RepositoryUrl = "https://github.com/gitlabhq/terraform-provider-gitlab", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// ```sh diff --git a/sdk/dotnet/ServiceJira.cs b/sdk/dotnet/ServiceJira.cs index a9a9669c..89306da4 100644 --- a/sdk/dotnet/ServiceJira.cs +++ b/sdk/dotnet/ServiceJira.cs @@ -16,33 +16,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/services.html#jira) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var awesomeProject = new GitLab.Project("awesomeProject", new() - /// { - /// Description = "My awesome project.", - /// VisibilityLevel = "public", - /// }); - /// - /// var jira = new GitLab.ServiceJira("jira", new() - /// { - /// Project = awesomeProject.Id, - /// Url = "https://jira.example.com", - /// Username = "user", - /// Password = "mypass", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// You can import a gitlab_service_jira state using the project ID, e.g. diff --git a/sdk/dotnet/ServiceMicrosoftTeams.cs b/sdk/dotnet/ServiceMicrosoftTeams.cs index 97a75c29..40454287 100644 --- a/sdk/dotnet/ServiceMicrosoftTeams.cs +++ b/sdk/dotnet/ServiceMicrosoftTeams.cs @@ -16,32 +16,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#microsoft-teams) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var awesomeProject = new GitLab.Project("awesomeProject", new() - /// { - /// Description = "My awesome project.", - /// VisibilityLevel = "public", - /// }); - /// - /// var teams = new GitLab.ServiceMicrosoftTeams("teams", new() - /// { - /// Project = awesomeProject.Id, - /// Webhook = "https://testurl.com/?token=XYZ", - /// PushEvents = true, - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// You can import a gitlab_service_microsoft_teams state using the project ID, e.g. diff --git a/sdk/dotnet/ServicePipelinesEmail.cs b/sdk/dotnet/ServicePipelinesEmail.cs index 76d3df8e..17dc597f 100644 --- a/sdk/dotnet/ServicePipelinesEmail.cs +++ b/sdk/dotnet/ServicePipelinesEmail.cs @@ -16,36 +16,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#pipeline-emails) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var awesomeProject = new GitLab.Project("awesomeProject", new() - /// { - /// Description = "My awesome project.", - /// VisibilityLevel = "public", - /// }); - /// - /// var email = new GitLab.ServicePipelinesEmail("email", new() - /// { - /// Project = awesomeProject.Id, - /// Recipients = new[] - /// { - /// "gitlab@user.create", - /// }, - /// NotifyOnlyBrokenPipelines = true, - /// BranchesToBeNotified = "all", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// You can import a gitlab_service_pipelines_email state using the project ID, e.g. diff --git a/sdk/dotnet/ServiceSlack.cs b/sdk/dotnet/ServiceSlack.cs index d2ea2075..7239ed1c 100644 --- a/sdk/dotnet/ServiceSlack.cs +++ b/sdk/dotnet/ServiceSlack.cs @@ -16,34 +16,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#slack-notifications) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var awesomeProject = new GitLab.Project("awesomeProject", new() - /// { - /// Description = "My awesome project.", - /// VisibilityLevel = "public", - /// }); - /// - /// var slack = new GitLab.ServiceSlack("slack", new() - /// { - /// Project = awesomeProject.Id, - /// Webhook = "https://webhook.com", - /// Username = "myuser", - /// PushEvents = true, - /// PushChannel = "push_chan", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// You can import a gitlab_service_slack.slack state using the project ID, e.g. diff --git a/sdk/dotnet/SystemHook.cs b/sdk/dotnet/SystemHook.cs index 1d59037d..f06d9d99 100644 --- a/sdk/dotnet/SystemHook.cs +++ b/sdk/dotnet/SystemHook.cs @@ -16,30 +16,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/system_hooks.html) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = new GitLab.SystemHook("example", new() - /// { - /// EnableSslVerification = true, - /// MergeRequestsEvents = true, - /// PushEvents = true, - /// RepositoryUpdateEvents = true, - /// TagPushEvents = true, - /// Token = "secret-token", - /// Url = "https://example.com/hook-%d", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// You can import a system hook using the hook id `{hook-id}`, e.g. diff --git a/sdk/dotnet/TagProtection.cs b/sdk/dotnet/TagProtection.cs index 69f19503..5ca915d6 100644 --- a/sdk/dotnet/TagProtection.cs +++ b/sdk/dotnet/TagProtection.cs @@ -10,37 +10,6 @@ namespace Pulumi.GitLab { /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var tagProtect = new GitLab.TagProtection("tagProtect", new() - /// { - /// AllowedToCreates = new[] - /// { - /// new GitLab.Inputs.TagProtectionAllowedToCreateArgs - /// { - /// UserId = 42, - /// }, - /// new GitLab.Inputs.TagProtectionAllowedToCreateArgs - /// { - /// GroupId = 43, - /// }, - /// }, - /// CreateAccessLevel = "developer", - /// Project = "12345", - /// Tag = "TagProtected", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// Tag protections can be imported using an id made up of `project_id:tag_name`, e.g. diff --git a/sdk/dotnet/User.cs b/sdk/dotnet/User.cs index 8d46ba08..b3a68ad7 100644 --- a/sdk/dotnet/User.cs +++ b/sdk/dotnet/User.cs @@ -18,31 +18,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/users.html) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var example = new GitLab.User("example", new() - /// { - /// CanCreateGroup = false, - /// Email = "gitlab@user.create", - /// IsAdmin = true, - /// IsExternal = true, - /// Password = "superPassword", - /// ProjectsLimit = 4, - /// ResetPassword = false, - /// Username = "example", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// ```sh diff --git a/sdk/dotnet/UserCustomAttribute.cs b/sdk/dotnet/UserCustomAttribute.cs index d0e8a748..2e4be085 100644 --- a/sdk/dotnet/UserCustomAttribute.cs +++ b/sdk/dotnet/UserCustomAttribute.cs @@ -14,26 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/custom_attributes.html) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var attr = new GitLab.UserCustomAttribute("attr", new() - /// { - /// Key = "location", - /// User = 42, - /// Value = "Greenland", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// You can import a user custom attribute using an id made up of `{user-id}:{key}`, e.g. diff --git a/sdk/dotnet/UserGpgKey.cs b/sdk/dotnet/UserGpgKey.cs index c1e28fff..0cd0cdb9 100644 --- a/sdk/dotnet/UserGpgKey.cs +++ b/sdk/dotnet/UserGpgKey.cs @@ -16,41 +16,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/users.html#get-a-specific-gpg-key) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var exampleUser = GitLab.GetUser.Invoke(new() - /// { - /// Username = "example-user", - /// }); - /// - /// // Manages a GPG key for the specified user. An admin token is required if `user_id` is specified. - /// var exampleUserGpgKey = new GitLab.UserGpgKey("exampleUserGpgKey", new() - /// { - /// UserId = exampleUser.Apply(getUserResult => getUserResult.Id), - /// Key = @"-----BEGIN PGP PUBLIC KEY BLOCK----- - /// ... - /// -----END PGP PUBLIC KEY BLOCK-----", - /// }); - /// - /// // Manages a GPG key for the current user - /// var exampleUserUserGpgKey = new GitLab.UserGpgKey("exampleUserUserGpgKey", new() - /// { - /// Key = @"-----BEGIN PGP PUBLIC KEY BLOCK----- - /// ... - /// -----END PGP PUBLIC KEY BLOCK-----", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// You can import a GPG key for a specific user using an id made up of `{user-id}:{key}`, e.g. diff --git a/sdk/dotnet/UserSshKey.cs b/sdk/dotnet/UserSshKey.cs index 301f614b..b14ef409 100644 --- a/sdk/dotnet/UserSshKey.cs +++ b/sdk/dotnet/UserSshKey.cs @@ -14,32 +14,6 @@ namespace Pulumi.GitLab /// /// **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/users.html#single-ssh-key) /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using GitLab = Pulumi.GitLab; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var exampleUser = GitLab.GetUser.Invoke(new() - /// { - /// Username = "example-user", - /// }); - /// - /// var exampleUserSshKey = new GitLab.UserSshKey("exampleUserSshKey", new() - /// { - /// UserId = exampleUser.Apply(getUserResult => getUserResult.Id), - /// Title = "example-key", - /// Key = "ssh-ed25519 AAAA...", - /// ExpiresAt = "2016-01-21T00:00:00.000Z", - /// }); - /// - /// }); - /// ``` - /// /// ## Import /// /// You can import a user ssh key using an id made up of `{user-id}:{key}`, e.g. diff --git a/sdk/go.mod b/sdk/go.mod index 282f889b..3d286179 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.86.0 + github.com/pulumi/pulumi/sdk/v3 v3.90.1 ) require ( @@ -12,7 +12,7 @@ require ( github.com/ProtonMail/go-crypto v0.0.0-20221026131551-cf6655e29de4 // indirect github.com/acomagu/bufpipe v1.0.3 // indirect github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect - github.com/agext/levenshtein v1.2.1 // indirect + github.com/agext/levenshtein v1.2.3 // indirect github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect github.com/atotto/clipboard v0.1.4 // indirect github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect @@ -33,9 +33,9 @@ require ( github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect - github.com/hashicorp/hcl/v2 v2.16.1 // indirect + github.com/hashicorp/hcl/v2 v2.17.0 // indirect github.com/imdario/mergo v0.3.13 // indirect - github.com/inconshreveable/mousetrap v1.0.1 // indirect + github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect github.com/kevinburke/ssh_config v1.2.0 // indirect github.com/lucasb-eyer/go-colorful v1.2.0 // indirect @@ -43,7 +43,7 @@ require ( github.com/mattn/go-localereader v0.0.1 // indirect github.com/mattn/go-runewidth v0.0.14 // indirect github.com/mitchellh/go-ps v1.0.0 // indirect - github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7 // indirect + github.com/mitchellh/go-wordwrap v1.0.1 // indirect github.com/muesli/ansi v0.0.0-20211018074035-2e021307bc4b // indirect github.com/muesli/cancelreader v0.2.2 // indirect github.com/muesli/reflow v0.3.0 // indirect @@ -53,14 +53,15 @@ require ( github.com/pjbgf/sha1cd v0.3.0 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pkg/term v1.1.0 // indirect + github.com/pulumi/esc v0.5.6 // indirect github.com/rivo/uniseg v0.4.4 // indirect - github.com/rogpeppe/go-internal v1.9.0 // indirect + github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 // indirect - github.com/sergi/go-diff v1.2.0 // indirect + github.com/sergi/go-diff v1.3.1 // indirect github.com/skeema/knownhosts v1.1.0 // indirect github.com/spf13/cast v1.4.1 // indirect - github.com/spf13/cobra v1.6.1 // indirect + github.com/spf13/cobra v1.7.0 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/stretchr/objx v0.5.0 // indirect github.com/texttheater/golang-levenshtein v1.0.1 // indirect @@ -68,14 +69,15 @@ require ( github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect github.com/uber/jaeger-lib v2.4.1+incompatible // indirect github.com/xanzy/ssh-agent v0.3.3 // indirect - github.com/zclconf/go-cty v1.12.1 // indirect + github.com/zclconf/go-cty v1.13.2 // indirect go.uber.org/atomic v1.9.0 // indirect - golang.org/x/crypto v0.7.0 // indirect - golang.org/x/net v0.10.0 // indirect - golang.org/x/sync v0.1.0 // indirect - golang.org/x/sys v0.8.0 // indirect - golang.org/x/term v0.8.0 // indirect - golang.org/x/text v0.9.0 // indirect + golang.org/x/crypto v0.14.0 // indirect + golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect + golang.org/x/net v0.17.0 // indirect + golang.org/x/sync v0.2.0 // indirect + golang.org/x/sys v0.13.0 // indirect + golang.org/x/term v0.13.0 // indirect + golang.org/x/text v0.13.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20230706204954-ccb25ca9f130 // indirect google.golang.org/grpc v1.57.0 // indirect google.golang.org/protobuf v1.31.0 // indirect diff --git a/sdk/go.sum b/sdk/go.sum index 3b27b671..0da5bb30 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -8,8 +8,8 @@ github.com/acomagu/bufpipe v1.0.3 h1:fxAGrHZTgQ9w5QqVItgzwj235/uYZYgbXitB+dLupOk github.com/acomagu/bufpipe v1.0.3/go.mod h1:mxdxdup/WdsKVreO5GpW4+M/1CE2sMG4jeGJ2sYmHc4= github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da h1:KjTM2ks9d14ZYCvmHS9iAKVt9AyzRSqNU1qabPih5BY= github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da/go.mod h1:eHEWzANqSiWQsof+nXEI9bUVUyV6F53Fp89EuCh2EAA= -github.com/agext/levenshtein v1.2.1 h1:QmvMAjj2aEICytGiWzmxoE0x2KZvE0fvmqMOfy2tjT8= -github.com/agext/levenshtein v1.2.1/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= +github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7lmo= +github.com/agext/levenshtein v1.2.3/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFIImctFaOjnTIavg87rW78vTPkQqLI8= github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be/go.mod h1:ySMOLuWl6zY27l47sB3qLNK6tF2fkHG55UZxx8oIVo4= github.com/apparentlymart/go-textseg/v13 v13.0.0 h1:Y+KvPE1NYz0xl601PVImeQfFyEy6iT90AvPUL1NNfNw= @@ -77,12 +77,12 @@ github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= -github.com/hashicorp/hcl/v2 v2.16.1 h1:BwuxEMD/tsYgbhIW7UuI3crjovf3MzuFWiVgiv57iHg= -github.com/hashicorp/hcl/v2 v2.16.1/go.mod h1:JRmR89jycNkrrqnMmvPDMd56n1rQJ2Q6KocSLCMCXng= +github.com/hashicorp/hcl/v2 v2.17.0 h1:z1XvSUyXd1HP10U4lrLg5e0JMVz6CPaJvAgxM0KNZVY= +github.com/hashicorp/hcl/v2 v2.17.0/go.mod h1:gJyW2PTShkJqQBKpAmPO3yxMxIuoXkOF2TpqXzrQyx4= github.com/imdario/mergo v0.3.13 h1:lFzP57bqS/wsqKssCGmtLAb8A0wKjLGrve2q3PPVcBk= github.com/imdario/mergo v0.3.13/go.mod h1:4lJ1jqUDcsbIECGy0RUJAXNIhg+6ocWgb1ALK2O4oXg= -github.com/inconshreveable/mousetrap v1.0.1 h1:U3uMjPSQEBMNp1lFxmllqCPM6P5u/Xq7Pgzkat/bFNc= -github.com/inconshreveable/mousetrap v1.0.1/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= +github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= +github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A= github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= github.com/jessevdk/go-flags v1.5.0/go.mod h1:Fw0T6WPc1dYxT4mKEZRfG5kJhaTDP9pj1c2EWnYs/m4= @@ -92,9 +92,8 @@ github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQL github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= -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/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= @@ -118,8 +117,8 @@ github.com/mattn/go-runewidth v0.0.14 h1:+xnbZSEeDbOIg5/mE6JF0w6n9duR1l3/WmbinWV github.com/mattn/go-runewidth v0.0.14/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= github.com/mitchellh/go-ps v1.0.0 h1:i6ampVEEF4wQFF+bkYfwYgY+F/uYJDktmvLPf7qIgjc= github.com/mitchellh/go-ps v1.0.0/go.mod h1:J4lOc8z8yJs6vUwklHw2XEIiT4z4C40KtWVN3nvg8Pg= -github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7 h1:DpOJ2HYzCv8LZP15IdmG+YdwD2luVPHITV96TkirNBM= -github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= +github.com/mitchellh/go-wordwrap v1.0.1 h1:TLuKupo69TCn6TQSyGxwI1EblZZEsQ0vMlAFQflz0v0= +github.com/mitchellh/go-wordwrap v1.0.1/go.mod h1:R62XHJLzvMFRBbcrT7m7WgmE1eOyTSsCt+hzestvNj0= github.com/mmcloughlin/avo v0.5.0/go.mod h1:ChHFdoV7ql95Wi7vuq2YT1bwCJqiWdZrQ1im3VujLYM= github.com/muesli/ansi v0.0.0-20211018074035-2e021307bc4b h1:1XF24mVaiu7u+CFywTdcDo2ie1pzzhwjt6RHqzpMU34= github.com/muesli/ansi v0.0.0-20211018074035-2e021307bc4b/go.mod h1:fQuZ0gauxyBcmsdE3ZT4NasjaRdxmbCS0jRHsrWu3Ho= @@ -143,29 +142,31 @@ 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.86.0 h1:Cxg0rGdvMt9GqGvesFTj8+WaO/ihmALYlQf4zm1GzFw= -github.com/pulumi/pulumi/sdk/v3 v3.86.0/go.mod h1:vexSGJ5L834l3T7Fo/KpdywjGAgZ2CvChuqGFl+ebS0= +github.com/pulumi/esc v0.5.6 h1:4WV3X7OEVcChIwbSG+JxhZDdmq/q7lFPaSjHRYlPwmI= +github.com/pulumi/esc v0.5.6/go.mod h1:wpwNfVS5fV7Kd51j4dJ6FWYlKfxdqyppgp0gtkzqH04= +github.com/pulumi/pulumi/sdk/v3 v3.90.1 h1:iT4t57N92WGhEQtg+KVDEmYzgfEyri39eihQzcNmtrM= +github.com/pulumi/pulumi/sdk/v3 v3.90.1/go.mod h1:zYaQQibB2pYKy/uG4c4YkX7lQIBpZ0KsuMaq/3HsIBQ= 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= github.com/rivo/uniseg v0.4.4/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= -github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= -github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= +github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= +github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs= github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 h1:TToq11gyfNlrMFZiYujSekIsPd9AmsA2Bj/iv+s4JHE= github.com/santhosh-tekuri/jsonschema/v5 v5.0.0/go.mod h1:FKdcjfQW6rpZSnxxUvEA5H/cDPdvJ/SZJQLWWXWGrZ0= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= -github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ= -github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= +github.com/sergi/go-diff v1.3.1 h1:xkr+Oxo4BOQKmkn/B9eMK0g5Kg/983T9DqqPHwYqD+8= +github.com/sergi/go-diff v1.3.1/go.mod h1:aMJSSKb2lpPvRNec0+w3fl7LP9IOFzdc9Pa4NFbPK1I= github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/skeema/knownhosts v1.1.0 h1:Wvr9V0MxhjRbl3f9nMnKnFfiWTJmtECJ9Njkea3ysW0= github.com/skeema/knownhosts v1.1.0/go.mod h1:sKFq3RD6/TKZkSWn8boUbDC7Qkgcv+8XXijpFO6roag= github.com/spf13/cast v1.4.1 h1:s0hze+J0196ZfEMTs80N7UlFt0BDuQ7Q+JDnHiMWKdA= github.com/spf13/cast v1.4.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cobra v1.6.1 h1:o94oiPyS4KD1mPy2fmcYYHHfCxLqYjJOhGsCHFZtEzA= -github.com/spf13/cobra v1.6.1/go.mod h1:IOw/AERYS7UzyrGinqmz6HLUo219MORXGxhbaJUqzrY= +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/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= @@ -180,8 +181,8 @@ github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= -github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/texttheater/golang-levenshtein v1.0.1 h1:+cRNoVrfiwufQPhoMzB6N0Yf/Mqajr6t1lOv8GyGE2U= github.com/texttheater/golang-levenshtein v1.0.1/go.mod h1:PYAKrbF5sAiq9wd+H82hs7gNaen0CplQ9uvm6+enD/8= github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 h1:X9dsIWPuuEJlPX//UmRKophhOKCGXc46RVIGuttks68= @@ -195,8 +196,8 @@ github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -github.com/zclconf/go-cty v1.12.1 h1:PcupnljUm9EIvbgSHQnHhUr3fO6oFmkOrvs2BAFNXXY= -github.com/zclconf/go-cty v1.12.1/go.mod h1:s9IfD1LK5ccNMSWCVFCE2rJfHiZgi7JijgeWIMfhLvA= +github.com/zclconf/go-cty v1.13.2 h1:4GvrUxe/QUDYuJKAav4EYqdM47/kZa672LwmXFmEKT0= +github.com/zclconf/go-cty v1.13.2/go.mod h1:YKQzy/7pZ7iq2jNFzy5go57xdxdWoLLpaEp4u238AE0= go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE= go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= golang.org/x/arch v0.1.0/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8= @@ -209,8 +210,10 @@ golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0 golang.org/x/crypto v0.0.0-20220826181053-bd7e27e6170d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw= golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= -golang.org/x/crypto v0.7.0 h1:AvwMYaRytfdeVt3u6mLaxYtErKYjxA2OXjJ1HHq6t3A= -golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= +golang.org/x/crypto v0.14.0 h1:wBqGXzWJW6m1XrIKlAH0Hs1JJ7+9KBwnIO8v66Q9cHc= +golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= +golang.org/x/exp v0.0.0-20231006140011-7918f672742d h1:jtJma62tbqLibJ5sFQz8bKtEM8rJBtfilJ2qTU199MI= +golang.org/x/exp v0.0.0-20231006140011-7918f672742d/go.mod h1:ldy0pHrwJyGW56pPQzzkH36rKxoZW1tw7ZJpeKx+hdo= golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= @@ -228,14 +231,14 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug golang.org/x/net v0.0.0-20220826154423-83b083e8dc8b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= -golang.org/x/net v0.10.0 h1:X2//UzNDwYmtCLn7To6G58Wr6f5ahEAQgKNzv9Y951M= -golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= +golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= +golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= 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= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o= -golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.2.0 h1:PUR+T4wwASmuSTYdKjYHI5TD22Wy5ogLU5qZCOLxBrI= +golang.org/x/sync v0.2.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -260,22 +263,22 @@ 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.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU= -golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE= +golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.0.0-20220722155259-a9ba230a4035/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= -golang.org/x/term v0.8.0 h1:n5xxQn2i3PC0yLAbjTpNT85q/Kgzcr2gIoX9OrJUols= -golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= +golang.org/x/term v0.13.0 h1:bb+I9cTfFazGW51MZqBVmZy7+JEJMouUHTUSKVQLBek= +golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U= 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= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE= -golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= +golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= diff --git a/sdk/go/gitlab/application.go b/sdk/go/gitlab/application.go index 8d9d2987..6df00953 100644 --- a/sdk/go/gitlab/application.go +++ b/sdk/go/gitlab/application.go @@ -20,36 +20,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/applications.html) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.NewApplication(ctx, "oidc", &gitlab.ApplicationArgs{ -// Confidential: pulumi.Bool(true), -// RedirectUrl: pulumi.String("https://mycompany.com"), -// Scopes: pulumi.StringArray{ -// pulumi.String("openid"), -// }, -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // Gitlab applications can be imported with their id, e.g. diff --git a/sdk/go/gitlab/applicationSettings.go b/sdk/go/gitlab/applicationSettings.go index 83291f34..a2bbee5e 100644 --- a/sdk/go/gitlab/applicationSettings.go +++ b/sdk/go/gitlab/applicationSettings.go @@ -12,32 +12,6 @@ import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumix" ) -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.NewApplicationSettings(ctx, "this", &gitlab.ApplicationSettingsArgs{ -// RequireTwoFactorAuthentication: pulumi.Bool(true), -// TwoFactorGracePeriod: pulumi.Int(24), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` type ApplicationSettings struct { pulumi.CustomResourceState diff --git a/sdk/go/gitlab/branch.go b/sdk/go/gitlab/branch.go index 45a7111b..5599a105 100644 --- a/sdk/go/gitlab/branch.go +++ b/sdk/go/gitlab/branch.go @@ -17,40 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/branches.html) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// exampleProject, err := gitlab.NewProject(ctx, "exampleProject", &gitlab.ProjectArgs{ -// Description: pulumi.String("An example project"), -// NamespaceId: pulumi.Any(gitlab_group.Example.Id), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewBranch(ctx, "exampleBranch", &gitlab.BranchArgs{ -// Ref: pulumi.String("main"), -// Project: exampleProject.ID(), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // Gitlab branches can be imported with a key composed of `:`, e.g. diff --git a/sdk/go/gitlab/clusterAgent.go b/sdk/go/gitlab/clusterAgent.go index d417ea16..a02e257d 100644 --- a/sdk/go/gitlab/clusterAgent.go +++ b/sdk/go/gitlab/clusterAgent.go @@ -27,50 +27,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "fmt" -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// example, err := gitlab.NewClusterAgent(ctx, "example", &gitlab.ClusterAgentArgs{ -// Project: pulumi.String("12345"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewRepositoryFile(ctx, "exampleAgentConfig", &gitlab.RepositoryFileArgs{ -// Project: example.Project, -// Branch: pulumi.String("main"), -// FilePath: example.Name.ApplyT(func(name string) (string, error) { -// return fmt.Sprintf(".gitlab/agents/%v", name), nil -// }).(pulumi.StringOutput), -// Content: pulumi.String(" gitops:\n ...\n"), -// AuthorEmail: pulumi.String("terraform@example.com"), -// AuthorName: pulumi.String("Terraform"), -// CommitMessage: example.Name.ApplyT(func(name string) (string, error) { -// return fmt.Sprintf("feature: add agent config for %v", name), nil -// }).(pulumi.StringOutput), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // GitLab Agent for Kubernetes can be imported with the following command and the id pattern `:` diff --git a/sdk/go/gitlab/clusterAgentToken.go b/sdk/go/gitlab/clusterAgentToken.go index 7b78d54b..79175f1c 100644 --- a/sdk/go/gitlab/clusterAgentToken.go +++ b/sdk/go/gitlab/clusterAgentToken.go @@ -21,72 +21,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html#create-an-agent-token) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi-helm/sdk/v1/go/helm" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.NewClusterAgentToken(ctx, "example", &gitlab.ClusterAgentTokenArgs{ -// Project: pulumi.String("12345"), -// AgentId: pulumi.Int(42), -// Description: pulumi.String("some token"), -// }) -// if err != nil { -// return err -// } -// thisProject, err := gitlab.LookupProject(ctx, &gitlab.LookupProjectArgs{ -// PathWithNamespace: pulumi.StringRef("my-org/example"), -// }, nil) -// if err != nil { -// return err -// } -// thisClusterAgent, err := gitlab.NewClusterAgent(ctx, "thisClusterAgent", &gitlab.ClusterAgentArgs{ -// Project: *pulumi.String(thisProject.Id), -// }) -// if err != nil { -// return err -// } -// thisClusterAgentToken, err := gitlab.NewClusterAgentToken(ctx, "thisClusterAgentToken", &gitlab.ClusterAgentTokenArgs{ -// Project: *pulumi.String(thisProject.Id), -// AgentId: thisClusterAgent.AgentId, -// Description: pulumi.String("Token for the my-agent used with `gitlab-agent` Helm Chart"), -// }) -// if err != nil { -// return err -// } -// _, err = index.NewHelm_release(ctx, "gitlabAgent", &index.Helm_releaseArgs{ -// Name: "gitlab-agent", -// Namespace: "gitlab-agent", -// CreateNamespace: true, -// Repository: "https://charts.gitlab.io", -// Chart: "gitlab-agent", -// Version: "1.2.0", -// Set: []map[string]interface{}{ -// map[string]interface{}{ -// "name": "config.token", -// "value": thisClusterAgentToken.Token, -// }, -// }, -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // A token for a GitLab Agent for Kubernetes can be imported with the following command and the id pattern `::` diff --git a/sdk/go/gitlab/complianceFramework.go b/sdk/go/gitlab/complianceFramework.go index 4236f208..be9a9159 100644 --- a/sdk/go/gitlab/complianceFramework.go +++ b/sdk/go/gitlab/complianceFramework.go @@ -23,36 +23,6 @@ import ( // // **Upstream API**: [GitLab GraphQL API docs](https://docs.gitlab.com/ee/api/graphql/reference/#mutationcreatecomplianceframework) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.NewComplianceFramework(ctx, "sample", &gitlab.ComplianceFrameworkArgs{ -// Color: pulumi.String("#87BEEF"), -// Default: pulumi.Bool(false), -// Description: pulumi.String("A HIPAA Compliance Framework"), -// NamespacePath: pulumi.String("top-level-group"), -// PipelineConfigurationFullPath: pulumi.String(".hipaa.yml@top-level-group/compliance-frameworks"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // Gitlab compliance frameworks can be imported with a key composed of `:`, e.g. diff --git a/sdk/go/gitlab/deployKey.go b/sdk/go/gitlab/deployKey.go index 9c37ecd9..4f5bf00f 100644 --- a/sdk/go/gitlab/deployKey.go +++ b/sdk/go/gitlab/deployKey.go @@ -19,34 +19,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/deploy_keys.html) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.NewDeployKey(ctx, "example", &gitlab.DeployKeyArgs{ -// Key: pulumi.String("ssh-ed25519 AAAA..."), -// Project: pulumi.String("example/deploying"), -// Title: pulumi.String("Example deploy key"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // GitLab deploy keys can be imported using an id made up of `{project_id}:{deploy_key_id}`, e.g. `project_id` can be whatever the [get single project api][get_single_project] takes for its `:id` value, so for example diff --git a/sdk/go/gitlab/deployKeyEnable.go b/sdk/go/gitlab/deployKeyEnable.go index 26305783..4d41647b 100644 --- a/sdk/go/gitlab/deployKeyEnable.go +++ b/sdk/go/gitlab/deployKeyEnable.go @@ -17,49 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/deploy_keys.html#enable-a-deploy-key) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// parentProject, err := gitlab.NewProject(ctx, "parentProject", nil) -// if err != nil { -// return err -// } -// fooProject, err := gitlab.NewProject(ctx, "fooProject", nil) -// if err != nil { -// return err -// } -// parentDeployKey, err := gitlab.NewDeployKey(ctx, "parentDeployKey", &gitlab.DeployKeyArgs{ -// Project: parentProject.ID(), -// Title: pulumi.String("Example deploy key"), -// Key: pulumi.String("ssh-ed25519 AAAA..."), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewDeployKeyEnable(ctx, "fooDeployKeyEnable", &gitlab.DeployKeyEnableArgs{ -// Project: fooProject.ID(), -// KeyId: parentDeployKey.DeployKeyId, -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // GitLab enabled deploy keys can be imported using an id made up of `{project_id}:{deploy_key_id}`, e.g. `project_id` can be whatever the [get single project api][get_single_project] takes for its `:id` value, so for example diff --git a/sdk/go/gitlab/getBranch.go b/sdk/go/gitlab/getBranch.go index 43372df8..6bf0af9a 100644 --- a/sdk/go/gitlab/getBranch.go +++ b/sdk/go/gitlab/getBranch.go @@ -15,33 +15,6 @@ import ( // The `Branch` data source allows details of a repository branch to be retrieved by its name and project. // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/branches.html#get-single-repository-branch) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.LookupBranch(ctx, &gitlab.LookupBranchArgs{ -// Name: "example", -// Project: "foo/bar", -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func LookupBranch(ctx *pulumi.Context, args *LookupBranchArgs, opts ...pulumi.InvokeOption) (*LookupBranchResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupBranchResult diff --git a/sdk/go/gitlab/getClusterAgent.go b/sdk/go/gitlab/getClusterAgent.go index 63ced83f..44cc4986 100644 --- a/sdk/go/gitlab/getClusterAgent.go +++ b/sdk/go/gitlab/getClusterAgent.go @@ -17,33 +17,6 @@ import ( // > Requires at least GitLab 14.10 // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.LookupClusterAgent(ctx, &gitlab.LookupClusterAgentArgs{ -// AgentId: 1, -// Project: "12345", -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func LookupClusterAgent(ctx *pulumi.Context, args *LookupClusterAgentArgs, opts ...pulumi.InvokeOption) (*LookupClusterAgentResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupClusterAgentResult diff --git a/sdk/go/gitlab/getClusterAgents.go b/sdk/go/gitlab/getClusterAgents.go index 324ed7c6..d43f214d 100644 --- a/sdk/go/gitlab/getClusterAgents.go +++ b/sdk/go/gitlab/getClusterAgents.go @@ -17,32 +17,6 @@ import ( // > Requires at least GitLab 14.10 // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.GetClusterAgents(ctx, &gitlab.GetClusterAgentsArgs{ -// Project: "12345", -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func GetClusterAgents(ctx *pulumi.Context, args *GetClusterAgentsArgs, opts ...pulumi.InvokeOption) (*GetClusterAgentsResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetClusterAgentsResult diff --git a/sdk/go/gitlab/getCurrentUser.go b/sdk/go/gitlab/getCurrentUser.go index d47c0474..a48598ce 100644 --- a/sdk/go/gitlab/getCurrentUser.go +++ b/sdk/go/gitlab/getCurrentUser.go @@ -4,37 +4,17 @@ package gitlab import ( + "context" + "reflect" + "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumi/pulumi/sdk/v3/go/pulumix" ) // The `getCurrentUser` data source allows details of the current user (determined by `token` provider attribute) to be retrieved. // // **Upstream API**: [GitLab GraphQL API docs](https://docs.gitlab.com/ee/api/graphql/reference/index.html#querycurrentuser) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.GetCurrentUser(ctx, nil, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func GetCurrentUser(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetCurrentUserResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetCurrentUserResult @@ -66,3 +46,84 @@ type GetCurrentUserResult struct { // Username of the user. Unique within this instance of GitLab. Username string `pulumi:"username"` } + +func GetCurrentUserOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetCurrentUserResultOutput { + return pulumi.ToOutput(0).ApplyT(func(int) (GetCurrentUserResult, error) { + r, err := GetCurrentUser(ctx, opts...) + var s GetCurrentUserResult + if r != nil { + s = *r + } + return s, err + }).(GetCurrentUserResultOutput) +} + +// A collection of values returned by getCurrentUser. +type GetCurrentUserResultOutput struct{ *pulumi.OutputState } + +func (GetCurrentUserResultOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetCurrentUserResult)(nil)).Elem() +} + +func (o GetCurrentUserResultOutput) ToGetCurrentUserResultOutput() GetCurrentUserResultOutput { + return o +} + +func (o GetCurrentUserResultOutput) ToGetCurrentUserResultOutputWithContext(ctx context.Context) GetCurrentUserResultOutput { + return o +} + +func (o GetCurrentUserResultOutput) ToOutput(ctx context.Context) pulumix.Output[GetCurrentUserResult] { + return pulumix.Output[GetCurrentUserResult]{ + OutputState: o.OutputState, + } +} + +// Indicates if the user is a bot. +func (o GetCurrentUserResultOutput) Bot() pulumi.BoolOutput { + return o.ApplyT(func(v GetCurrentUserResult) bool { return v.Bot }).(pulumi.BoolOutput) +} + +// Global ID of the user. This is in the form of a GraphQL globally unique ID. +func (o GetCurrentUserResultOutput) GlobalId() pulumi.StringOutput { + return o.ApplyT(func(v GetCurrentUserResult) string { return v.GlobalId }).(pulumi.StringOutput) +} + +// Personal namespace of the user. This is in the form of a GraphQL globally unique ID. +func (o GetCurrentUserResultOutput) GlobalNamespaceId() pulumi.StringOutput { + return o.ApplyT(func(v GetCurrentUserResult) string { return v.GlobalNamespaceId }).(pulumi.StringOutput) +} + +// Group count for the user. +func (o GetCurrentUserResultOutput) GroupCount() pulumi.IntOutput { + return o.ApplyT(func(v GetCurrentUserResult) int { return v.GroupCount }).(pulumi.IntOutput) +} + +// ID of the user. +func (o GetCurrentUserResultOutput) Id() pulumi.StringOutput { + return o.ApplyT(func(v GetCurrentUserResult) string { return v.Id }).(pulumi.StringOutput) +} + +// Human-readable name of the user. Returns **** if the user is a project bot and the requester does not have permission to view the project. +func (o GetCurrentUserResultOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v GetCurrentUserResult) string { return v.Name }).(pulumi.StringOutput) +} + +// Personal namespace of the user. +func (o GetCurrentUserResultOutput) NamespaceId() pulumi.StringOutput { + return o.ApplyT(func(v GetCurrentUserResult) string { return v.NamespaceId }).(pulumi.StringOutput) +} + +// User’s public email. +func (o GetCurrentUserResultOutput) PublicEmail() pulumi.StringOutput { + return o.ApplyT(func(v GetCurrentUserResult) string { return v.PublicEmail }).(pulumi.StringOutput) +} + +// Username of the user. Unique within this instance of GitLab. +func (o GetCurrentUserResultOutput) Username() pulumi.StringOutput { + return o.ApplyT(func(v GetCurrentUserResult) string { return v.Username }).(pulumi.StringOutput) +} + +func init() { + pulumi.RegisterOutputType(GetCurrentUserResultOutput{}) +} diff --git a/sdk/go/gitlab/getGroup.go b/sdk/go/gitlab/getGroup.go index 8be0aff1..c5dc4b4a 100644 --- a/sdk/go/gitlab/getGroup.go +++ b/sdk/go/gitlab/getGroup.go @@ -15,32 +15,6 @@ import ( // The `Group` data source allows details of a group to be retrieved by its id or full path. // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#details-of-a-group) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.LookupGroup(ctx, &gitlab.LookupGroupArgs{ -// FullPath: pulumi.StringRef("foo/bar"), -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func LookupGroup(ctx *pulumi.Context, args *LookupGroupArgs, opts ...pulumi.InvokeOption) (*LookupGroupResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupGroupResult diff --git a/sdk/go/gitlab/getGroupMembership.go b/sdk/go/gitlab/getGroupMembership.go index a4912cd1..31762287 100644 --- a/sdk/go/gitlab/getGroupMembership.go +++ b/sdk/go/gitlab/getGroupMembership.go @@ -15,32 +15,6 @@ import ( // The `GroupMembership` data source allows to list and filter all members of a group specified by either its id or full path. // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/members.html#list-all-members-of-a-group-or-project) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.LookupGroupMembership(ctx, &gitlab.LookupGroupMembershipArgs{ -// FullPath: pulumi.StringRef("foo/bar"), -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func LookupGroupMembership(ctx *pulumi.Context, args *LookupGroupMembershipArgs, opts ...pulumi.InvokeOption) (*LookupGroupMembershipResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupGroupMembershipResult diff --git a/sdk/go/gitlab/getGroupSubgroups.go b/sdk/go/gitlab/getGroupSubgroups.go index dccc5e66..1ad9d4c7 100644 --- a/sdk/go/gitlab/getGroupSubgroups.go +++ b/sdk/go/gitlab/getGroupSubgroups.go @@ -15,33 +15,6 @@ import ( // The `getGroupSubgroups` data source allows to get subgroups of a group. // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#list-a-groups-subgroups) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// subgroupsGroupSubgroups, err := gitlab.GetGroupSubgroups(ctx, &gitlab.GetGroupSubgroupsArgs{ -// GroupId: 123456, -// }, nil) -// if err != nil { -// return err -// } -// ctx.Export("subgroups", subgroupsGroupSubgroups) -// return nil -// }) -// } -// -// ``` func GetGroupSubgroups(ctx *pulumi.Context, args *GetGroupSubgroupsArgs, opts ...pulumi.InvokeOption) (*GetGroupSubgroupsResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetGroupSubgroupsResult diff --git a/sdk/go/gitlab/getGroupVariable.go b/sdk/go/gitlab/getGroupVariable.go index b5b84eae..16537ff5 100644 --- a/sdk/go/gitlab/getGroupVariable.go +++ b/sdk/go/gitlab/getGroupVariable.go @@ -15,41 +15,6 @@ import ( // The `GroupVariable` data source allows to retrieve details about a group-level CI/CD variable. // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_level_variables.html) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.LookupGroupVariable(ctx, &gitlab.LookupGroupVariableArgs{ -// Group: "my/example/group", -// Key: "foo", -// }, nil) -// if err != nil { -// return err -// } -// _, err = gitlab.LookupGroupVariable(ctx, &gitlab.LookupGroupVariableArgs{ -// EnvironmentScope: pulumi.StringRef("staging/*"), -// Group: "my/example/group", -// Key: "bar", -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func LookupGroupVariable(ctx *pulumi.Context, args *LookupGroupVariableArgs, opts ...pulumi.InvokeOption) (*LookupGroupVariableResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupGroupVariableResult diff --git a/sdk/go/gitlab/getGroupVariables.go b/sdk/go/gitlab/getGroupVariables.go index 63a0a77d..14d2e554 100644 --- a/sdk/go/gitlab/getGroupVariables.go +++ b/sdk/go/gitlab/getGroupVariables.go @@ -15,39 +15,6 @@ import ( // The `getGroupVariables` data source allows to retrieve all group-level CI/CD variables. // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_level_variables.html) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.GetGroupVariables(ctx, &gitlab.GetGroupVariablesArgs{ -// Group: "my/example/group", -// }, nil) -// if err != nil { -// return err -// } -// _, err = gitlab.GetGroupVariables(ctx, &gitlab.GetGroupVariablesArgs{ -// EnvironmentScope: pulumi.StringRef("staging/*"), -// Group: "my/example/group", -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func GetGroupVariables(ctx *pulumi.Context, args *GetGroupVariablesArgs, opts ...pulumi.InvokeOption) (*GetGroupVariablesResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetGroupVariablesResult diff --git a/sdk/go/gitlab/getGroups.go b/sdk/go/gitlab/getGroups.go index 8e9cd163..d35a210b 100644 --- a/sdk/go/gitlab/getGroups.go +++ b/sdk/go/gitlab/getGroups.go @@ -19,39 +19,6 @@ import ( // > Some available options require administrator privileges. // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#list-groups) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.GetGroups(ctx, &gitlab.GetGroupsArgs{ -// OrderBy: pulumi.StringRef("name"), -// Sort: pulumi.StringRef("desc"), -// }, nil) -// if err != nil { -// return err -// } -// _, err = gitlab.GetGroups(ctx, &gitlab.GetGroupsArgs{ -// Search: pulumi.StringRef("GitLab"), -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func GetGroups(ctx *pulumi.Context, args *GetGroupsArgs, opts ...pulumi.InvokeOption) (*GetGroupsResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetGroupsResult diff --git a/sdk/go/gitlab/getInstanceDeployKeys.go b/sdk/go/gitlab/getInstanceDeployKeys.go index 48ba4cea..13d2ac7b 100644 --- a/sdk/go/gitlab/getInstanceDeployKeys.go +++ b/sdk/go/gitlab/getInstanceDeployKeys.go @@ -17,32 +17,6 @@ import ( // > This data source requires administration privileges. // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/deploy_keys.html#list-all-deploy-keys) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.GetInstanceDeployKeys(ctx, &gitlab.GetInstanceDeployKeysArgs{ -// Public: pulumi.BoolRef(true), -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func GetInstanceDeployKeys(ctx *pulumi.Context, args *GetInstanceDeployKeysArgs, opts ...pulumi.InvokeOption) (*GetInstanceDeployKeysResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetInstanceDeployKeysResult diff --git a/sdk/go/gitlab/getInstanceVariable.go b/sdk/go/gitlab/getInstanceVariable.go index c1867df5..8d42311e 100644 --- a/sdk/go/gitlab/getInstanceVariable.go +++ b/sdk/go/gitlab/getInstanceVariable.go @@ -15,32 +15,6 @@ import ( // The `InstanceVariable` data source allows to retrieve details about an instance-level CI/CD variable. // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/instance_level_ci_variables.html) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.LookupInstanceVariable(ctx, &gitlab.LookupInstanceVariableArgs{ -// Key: "foo", -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func LookupInstanceVariable(ctx *pulumi.Context, args *LookupInstanceVariableArgs, opts ...pulumi.InvokeOption) (*LookupInstanceVariableResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupInstanceVariableResult diff --git a/sdk/go/gitlab/getInstanceVariables.go b/sdk/go/gitlab/getInstanceVariables.go index e817c119..71b62e6a 100644 --- a/sdk/go/gitlab/getInstanceVariables.go +++ b/sdk/go/gitlab/getInstanceVariables.go @@ -4,37 +4,17 @@ package gitlab import ( + "context" + "reflect" + "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumi/pulumi/sdk/v3/go/pulumix" ) // The `getInstanceVariables` data source allows to retrieve all instance-level CI/CD variables. // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/instance_level_ci_variables.html) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.GetInstanceVariables(ctx, nil, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func GetInstanceVariables(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetInstanceVariablesResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetInstanceVariablesResult @@ -52,3 +32,49 @@ type GetInstanceVariablesResult struct { // The list of variables returned by the search Variables []GetInstanceVariablesVariable `pulumi:"variables"` } + +func GetInstanceVariablesOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetInstanceVariablesResultOutput { + return pulumi.ToOutput(0).ApplyT(func(int) (GetInstanceVariablesResult, error) { + r, err := GetInstanceVariables(ctx, opts...) + var s GetInstanceVariablesResult + if r != nil { + s = *r + } + return s, err + }).(GetInstanceVariablesResultOutput) +} + +// A collection of values returned by getInstanceVariables. +type GetInstanceVariablesResultOutput struct{ *pulumi.OutputState } + +func (GetInstanceVariablesResultOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetInstanceVariablesResult)(nil)).Elem() +} + +func (o GetInstanceVariablesResultOutput) ToGetInstanceVariablesResultOutput() GetInstanceVariablesResultOutput { + return o +} + +func (o GetInstanceVariablesResultOutput) ToGetInstanceVariablesResultOutputWithContext(ctx context.Context) GetInstanceVariablesResultOutput { + return o +} + +func (o GetInstanceVariablesResultOutput) ToOutput(ctx context.Context) pulumix.Output[GetInstanceVariablesResult] { + return pulumix.Output[GetInstanceVariablesResult]{ + OutputState: o.OutputState, + } +} + +// The provider-assigned unique ID for this managed resource. +func (o GetInstanceVariablesResultOutput) Id() pulumi.StringOutput { + return o.ApplyT(func(v GetInstanceVariablesResult) string { return v.Id }).(pulumi.StringOutput) +} + +// The list of variables returned by the search +func (o GetInstanceVariablesResultOutput) Variables() GetInstanceVariablesVariableArrayOutput { + return o.ApplyT(func(v GetInstanceVariablesResult) []GetInstanceVariablesVariable { return v.Variables }).(GetInstanceVariablesVariableArrayOutput) +} + +func init() { + pulumi.RegisterOutputType(GetInstanceVariablesResultOutput{}) +} diff --git a/sdk/go/gitlab/getMetadata.go b/sdk/go/gitlab/getMetadata.go index c12a6979..813ce353 100644 --- a/sdk/go/gitlab/getMetadata.go +++ b/sdk/go/gitlab/getMetadata.go @@ -4,37 +4,17 @@ package gitlab import ( + "context" + "reflect" + "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumi/pulumi/sdk/v3/go/pulumix" ) // The `getMetadata` data source retrieves the metadata of the GitLab instance. // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/metadata.html) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.GetMetadata(ctx, nil, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func GetMetadata(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetMetadataResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetMetadataResult @@ -58,3 +38,64 @@ type GetMetadataResult struct { // Version of the GitLab instance. Version string `pulumi:"version"` } + +func GetMetadataOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetMetadataResultOutput { + return pulumi.ToOutput(0).ApplyT(func(int) (GetMetadataResult, error) { + r, err := GetMetadata(ctx, opts...) + var s GetMetadataResult + if r != nil { + s = *r + } + return s, err + }).(GetMetadataResultOutput) +} + +// A collection of values returned by getMetadata. +type GetMetadataResultOutput struct{ *pulumi.OutputState } + +func (GetMetadataResultOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetMetadataResult)(nil)).Elem() +} + +func (o GetMetadataResultOutput) ToGetMetadataResultOutput() GetMetadataResultOutput { + return o +} + +func (o GetMetadataResultOutput) ToGetMetadataResultOutputWithContext(ctx context.Context) GetMetadataResultOutput { + return o +} + +func (o GetMetadataResultOutput) ToOutput(ctx context.Context) pulumix.Output[GetMetadataResult] { + return pulumix.Output[GetMetadataResult]{ + OutputState: o.OutputState, + } +} + +// If the GitLab instance is an enterprise instance or not. Supported for GitLab 15.6 onwards. +func (o GetMetadataResultOutput) Enterprise() pulumi.BoolOutput { + return o.ApplyT(func(v GetMetadataResult) bool { return v.Enterprise }).(pulumi.BoolOutput) +} + +// The id of the data source. It will always be `1` +func (o GetMetadataResultOutput) Id() pulumi.StringOutput { + return o.ApplyT(func(v GetMetadataResult) string { return v.Id }).(pulumi.StringOutput) +} + +// Metadata about the GitLab agent server for Kubernetes (KAS). +func (o GetMetadataResultOutput) Kas() GetMetadataKasOutput { + return o.ApplyT(func(v GetMetadataResult) GetMetadataKas { return v.Kas }).(GetMetadataKasOutput) +} + +// Revision of the GitLab instance. +func (o GetMetadataResultOutput) Revision() pulumi.StringOutput { + return o.ApplyT(func(v GetMetadataResult) string { return v.Revision }).(pulumi.StringOutput) +} + +// Version of the GitLab instance. +func (o GetMetadataResultOutput) Version() pulumi.StringOutput { + return o.ApplyT(func(v GetMetadataResult) string { return v.Version }).(pulumi.StringOutput) +} + +func init() { + pulumi.RegisterOutputType(GetMetadataResultOutput{}) +} diff --git a/sdk/go/gitlab/getProject.go b/sdk/go/gitlab/getProject.go index c7b50562..ca17e8f6 100644 --- a/sdk/go/gitlab/getProject.go +++ b/sdk/go/gitlab/getProject.go @@ -15,32 +15,6 @@ import ( // The `Project` data source allows details of a project to be retrieved by either its ID or its path with namespace. // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#get-single-project) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.LookupProject(ctx, &gitlab.LookupProjectArgs{ -// PathWithNamespace: pulumi.StringRef("foo/bar/baz"), -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func LookupProject(ctx *pulumi.Context, args *LookupProjectArgs, opts ...pulumi.InvokeOption) (*LookupProjectResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupProjectResult diff --git a/sdk/go/gitlab/getProjectBranches.go b/sdk/go/gitlab/getProjectBranches.go index 996880d7..9a5356ef 100644 --- a/sdk/go/gitlab/getProjectBranches.go +++ b/sdk/go/gitlab/getProjectBranches.go @@ -15,32 +15,6 @@ import ( // The `getProjectBranches` data source allows details of the branches of a given project to be retrieved. // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/branches.html#list-repository-branches) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.GetProjectBranches(ctx, &gitlab.GetProjectBranchesArgs{ -// Project: "foo/bar/baz", -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func GetProjectBranches(ctx *pulumi.Context, args *GetProjectBranchesArgs, opts ...pulumi.InvokeOption) (*GetProjectBranchesResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetProjectBranchesResult diff --git a/sdk/go/gitlab/getProjectHook.go b/sdk/go/gitlab/getProjectHook.go index 57f9fcaa..3cf4efb9 100644 --- a/sdk/go/gitlab/getProjectHook.go +++ b/sdk/go/gitlab/getProjectHook.go @@ -15,39 +15,6 @@ import ( // The `ProjectHook` data source allows to retrieve details about a hook in a project. // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#get-project-hook) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// exampleProject, err := gitlab.LookupProject(ctx, &gitlab.LookupProjectArgs{ -// Id: pulumi.StringRef("foo/bar/baz"), -// }, nil) -// if err != nil { -// return err -// } -// _, err = gitlab.LookupProjectHook(ctx, &gitlab.LookupProjectHookArgs{ -// Project: exampleProject.Id, -// HookId: 1, -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func LookupProjectHook(ctx *pulumi.Context, args *LookupProjectHookArgs, opts ...pulumi.InvokeOption) (*LookupProjectHookResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupProjectHookResult diff --git a/sdk/go/gitlab/getProjectHooks.go b/sdk/go/gitlab/getProjectHooks.go index e91ea042..41e84b0f 100644 --- a/sdk/go/gitlab/getProjectHooks.go +++ b/sdk/go/gitlab/getProjectHooks.go @@ -15,38 +15,6 @@ import ( // The `getProjectHooks` data source allows to retrieve details about hooks in a project. // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#list-project-hooks) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// example, err := gitlab.LookupProject(ctx, &gitlab.LookupProjectArgs{ -// Id: pulumi.StringRef("foo/bar/baz"), -// }, nil) -// if err != nil { -// return err -// } -// _, err = gitlab.GetProjectHooks(ctx, &gitlab.GetProjectHooksArgs{ -// Project: example.Id, -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func GetProjectHooks(ctx *pulumi.Context, args *GetProjectHooksArgs, opts ...pulumi.InvokeOption) (*GetProjectHooksResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetProjectHooksResult diff --git a/sdk/go/gitlab/getProjectIssue.go b/sdk/go/gitlab/getProjectIssue.go index fcdc6902..8e5935d6 100644 --- a/sdk/go/gitlab/getProjectIssue.go +++ b/sdk/go/gitlab/getProjectIssue.go @@ -15,40 +15,6 @@ import ( // The `ProjectIssue` data source allows to retrieve details about an issue in a project. // // **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/issues.html) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// foo, err := gitlab.LookupProject(ctx, &gitlab.LookupProjectArgs{ -// PathWithNamespace: pulumi.StringRef("foo/bar/baz"), -// }, nil) -// if err != nil { -// return err -// } -// _, err = gitlab.LookupProjectIssue(ctx, &gitlab.LookupProjectIssueArgs{ -// Project: foo.Id, -// Iid: 1, -// }, nil) -// if err != nil { -// return err -// } -// ctx.Export("welcomeIssueWebUrl", data.Gitlab_project_issue.Web_url) -// return nil -// }) -// } -// -// ``` func LookupProjectIssue(ctx *pulumi.Context, args *LookupProjectIssueArgs, opts ...pulumi.InvokeOption) (*LookupProjectIssueResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupProjectIssueResult diff --git a/sdk/go/gitlab/getProjectIssues.go b/sdk/go/gitlab/getProjectIssues.go index 66807671..2283f507 100644 --- a/sdk/go/gitlab/getProjectIssues.go +++ b/sdk/go/gitlab/getProjectIssues.go @@ -15,39 +15,6 @@ import ( // The `getProjectIssues` data source allows to retrieve details about issues in a project. // // **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/issues.html) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// foo, err := gitlab.LookupProject(ctx, &gitlab.LookupProjectArgs{ -// Id: pulumi.StringRef("foo/bar/baz"), -// }, nil) -// if err != nil { -// return err -// } -// _, err = gitlab.GetProjectIssues(ctx, &gitlab.GetProjectIssuesArgs{ -// Project: foo.Id, -// Search: pulumi.StringRef("foo"), -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func GetProjectIssues(ctx *pulumi.Context, args *GetProjectIssuesArgs, opts ...pulumi.InvokeOption) (*GetProjectIssuesResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetProjectIssuesResult diff --git a/sdk/go/gitlab/getProjectMembership.go b/sdk/go/gitlab/getProjectMembership.go index 20e1fb0c..3a85ff9e 100644 --- a/sdk/go/gitlab/getProjectMembership.go +++ b/sdk/go/gitlab/getProjectMembership.go @@ -17,33 +17,6 @@ import ( // > **Note** exactly one of projectId or fullPath must be provided. // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/members.html#list-all-members-of-a-group-or-project) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.LookupProjectMembership(ctx, &gitlab.LookupProjectMembershipArgs{ -// Inherited: pulumi.BoolRef(true), -// ProjectId: pulumi.IntRef(123), -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func LookupProjectMembership(ctx *pulumi.Context, args *LookupProjectMembershipArgs, opts ...pulumi.InvokeOption) (*LookupProjectMembershipResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupProjectMembershipResult diff --git a/sdk/go/gitlab/getProjectMilestone.go b/sdk/go/gitlab/getProjectMilestone.go index d8c232f0..32a4d326 100644 --- a/sdk/go/gitlab/getProjectMilestone.go +++ b/sdk/go/gitlab/getProjectMilestone.go @@ -15,33 +15,6 @@ import ( // The `ProjectMilestone` data source allows get details of a project milestone. // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/milestones.html) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.LookupProjectMilestone(ctx, &gitlab.LookupProjectMilestoneArgs{ -// MilestoneId: 10, -// Project: "foo/bar", -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func LookupProjectMilestone(ctx *pulumi.Context, args *LookupProjectMilestoneArgs, opts ...pulumi.InvokeOption) (*LookupProjectMilestoneResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupProjectMilestoneResult diff --git a/sdk/go/gitlab/getProjectMilestones.go b/sdk/go/gitlab/getProjectMilestones.go index d9d6092b..b6c1a522 100644 --- a/sdk/go/gitlab/getProjectMilestones.go +++ b/sdk/go/gitlab/getProjectMilestones.go @@ -15,32 +15,6 @@ import ( // The `getProjectMilestones` data source allows get details of a project milestones. // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/milestones.html) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.GetProjectMilestones(ctx, &gitlab.GetProjectMilestonesArgs{ -// Project: "foo/bar", -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func GetProjectMilestones(ctx *pulumi.Context, args *GetProjectMilestonesArgs, opts ...pulumi.InvokeOption) (*GetProjectMilestonesResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetProjectMilestonesResult diff --git a/sdk/go/gitlab/getProjectProtectedBranch.go b/sdk/go/gitlab/getProjectProtectedBranch.go index 94bde601..c68deef8 100644 --- a/sdk/go/gitlab/getProjectProtectedBranch.go +++ b/sdk/go/gitlab/getProjectProtectedBranch.go @@ -15,33 +15,6 @@ import ( // The `gitlabProtectedBranch` data source allows details of a protected branch to be retrieved by its name and the project it belongs to. // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/protected_branches.html#get-a-single-protected-branch-or-wildcard-protected-branch) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.GetProjectProtectedBranch(ctx, &gitlab.GetProjectProtectedBranchArgs{ -// Name: "main", -// ProjectId: "foo/bar/baz", -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func GetProjectProtectedBranch(ctx *pulumi.Context, args *GetProjectProtectedBranchArgs, opts ...pulumi.InvokeOption) (*GetProjectProtectedBranchResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetProjectProtectedBranchResult diff --git a/sdk/go/gitlab/getProjectProtectedBranches.go b/sdk/go/gitlab/getProjectProtectedBranches.go index cbfcccd7..56b38d65 100644 --- a/sdk/go/gitlab/getProjectProtectedBranches.go +++ b/sdk/go/gitlab/getProjectProtectedBranches.go @@ -15,32 +15,6 @@ import ( // The `getProjectProtectedBranches` data source allows details of the protected branches of a given project. // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/protected_branches.html#list-protected-branches) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.GetProjectProtectedBranches(ctx, &gitlab.GetProjectProtectedBranchesArgs{ -// ProjectId: "foo/bar/baz", -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func GetProjectProtectedBranches(ctx *pulumi.Context, args *GetProjectProtectedBranchesArgs, opts ...pulumi.InvokeOption) (*GetProjectProtectedBranchesResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetProjectProtectedBranchesResult diff --git a/sdk/go/gitlab/getProjectTag.go b/sdk/go/gitlab/getProjectTag.go index c22bb57b..891bccc2 100644 --- a/sdk/go/gitlab/getProjectTag.go +++ b/sdk/go/gitlab/getProjectTag.go @@ -15,33 +15,6 @@ import ( // The `ProjectTag` data source allows details of a project tag to be retrieved by its name. // // **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/tags.html) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.LookupProjectTag(ctx, &gitlab.LookupProjectTagArgs{ -// Name: "example", -// Project: "foo/bar", -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func LookupProjectTag(ctx *pulumi.Context, args *LookupProjectTagArgs, opts ...pulumi.InvokeOption) (*LookupProjectTagResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupProjectTagResult diff --git a/sdk/go/gitlab/getProjectTags.go b/sdk/go/gitlab/getProjectTags.go index e5a8ef74..dd8d853b 100644 --- a/sdk/go/gitlab/getProjectTags.go +++ b/sdk/go/gitlab/getProjectTags.go @@ -15,32 +15,6 @@ import ( // The `getProjectTags` data source allows details of project tags to be retrieved by some search criteria. // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/tags.html#list-project-repository-tags) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.GetProjectTags(ctx, &gitlab.GetProjectTagsArgs{ -// Project: "foo/bar", -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func GetProjectTags(ctx *pulumi.Context, args *GetProjectTagsArgs, opts ...pulumi.InvokeOption) (*GetProjectTagsResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetProjectTagsResult diff --git a/sdk/go/gitlab/getProjectVariable.go b/sdk/go/gitlab/getProjectVariable.go index b318d97e..eb97af92 100644 --- a/sdk/go/gitlab/getProjectVariable.go +++ b/sdk/go/gitlab/getProjectVariable.go @@ -15,41 +15,6 @@ import ( // The `ProjectVariable` data source allows to retrieve details about a project-level CI/CD variable. // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/project_level_variables.html) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.LookupProjectVariable(ctx, &gitlab.LookupProjectVariableArgs{ -// Key: "foo", -// Project: "my/example/project", -// }, nil) -// if err != nil { -// return err -// } -// _, err = gitlab.LookupProjectVariable(ctx, &gitlab.LookupProjectVariableArgs{ -// EnvironmentScope: pulumi.StringRef("staging/*"), -// Key: "bar", -// Project: "my/example/project", -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func LookupProjectVariable(ctx *pulumi.Context, args *LookupProjectVariableArgs, opts ...pulumi.InvokeOption) (*LookupProjectVariableResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupProjectVariableResult diff --git a/sdk/go/gitlab/getProjectVariables.go b/sdk/go/gitlab/getProjectVariables.go index 708ad9d6..2cca5edf 100644 --- a/sdk/go/gitlab/getProjectVariables.go +++ b/sdk/go/gitlab/getProjectVariables.go @@ -15,39 +15,6 @@ import ( // The `getProjectVariables` data source allows to retrieve all project-level CI/CD variables. // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/project_level_variables.html) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.GetProjectVariables(ctx, &gitlab.GetProjectVariablesArgs{ -// Project: "my/example/project", -// }, nil) -// if err != nil { -// return err -// } -// _, err = gitlab.GetProjectVariables(ctx, &gitlab.GetProjectVariablesArgs{ -// EnvironmentScope: pulumi.StringRef("staging/*"), -// Project: "my/example/project", -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func GetProjectVariables(ctx *pulumi.Context, args *GetProjectVariablesArgs, opts ...pulumi.InvokeOption) (*GetProjectVariablesResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetProjectVariablesResult diff --git a/sdk/go/gitlab/getProjects.go b/sdk/go/gitlab/getProjects.go index 66b52896..f692d67d 100644 --- a/sdk/go/gitlab/getProjects.go +++ b/sdk/go/gitlab/getProjects.go @@ -19,48 +19,6 @@ import ( // > The owner sub-attributes are only populated if the Gitlab token used has an administrator scope. // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#list-all-projects) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// mygroup, err := gitlab.LookupGroup(ctx, &gitlab.LookupGroupArgs{ -// FullPath: pulumi.StringRef("mygroup"), -// }, nil) -// if err != nil { -// return err -// } -// _, err = gitlab.GetProjects(ctx, &gitlab.GetProjectsArgs{ -// GroupId: pulumi.IntRef(mygroup.Id), -// OrderBy: pulumi.StringRef("name"), -// IncludeSubgroups: pulumi.BoolRef(true), -// WithShared: pulumi.BoolRef(false), -// }, nil) -// if err != nil { -// return err -// } -// _, err = gitlab.GetProjects(ctx, &gitlab.GetProjectsArgs{ -// Search: pulumi.StringRef("postgresql"), -// Visibility: pulumi.StringRef("private"), -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func GetProjects(ctx *pulumi.Context, args *GetProjectsArgs, opts ...pulumi.InvokeOption) (*GetProjectsResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetProjectsResult diff --git a/sdk/go/gitlab/getReleaseLink.go b/sdk/go/gitlab/getReleaseLink.go index 672b262c..f6dc89c8 100644 --- a/sdk/go/gitlab/getReleaseLink.go +++ b/sdk/go/gitlab/getReleaseLink.go @@ -15,34 +15,6 @@ import ( // The `ReleaseLink` data source allows get details of a release link. // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/releases/links.html) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.LookupReleaseLink(ctx, &gitlab.LookupReleaseLinkArgs{ -// LinkId: 11, -// Project: "foo/bar", -// TagName: "v1.0.1", -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func LookupReleaseLink(ctx *pulumi.Context, args *LookupReleaseLinkArgs, opts ...pulumi.InvokeOption) (*LookupReleaseLinkResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupReleaseLinkResult diff --git a/sdk/go/gitlab/getReleaseLinks.go b/sdk/go/gitlab/getReleaseLinks.go index de584466..597861a7 100644 --- a/sdk/go/gitlab/getReleaseLinks.go +++ b/sdk/go/gitlab/getReleaseLinks.go @@ -15,33 +15,6 @@ import ( // The `getReleaseLinks` data source allows get details of release links. // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/releases/links.html) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.GetReleaseLinks(ctx, &gitlab.GetReleaseLinksArgs{ -// Project: "foo/bar", -// TagName: "v1.0.1", -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func GetReleaseLinks(ctx *pulumi.Context, args *GetReleaseLinksArgs, opts ...pulumi.InvokeOption) (*GetReleaseLinksResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetReleaseLinksResult diff --git a/sdk/go/gitlab/getRepositoryFile.go b/sdk/go/gitlab/getRepositoryFile.go index 6f8dd41a..fe288278 100644 --- a/sdk/go/gitlab/getRepositoryFile.go +++ b/sdk/go/gitlab/getRepositoryFile.go @@ -15,34 +15,6 @@ import ( // The `RepositoryFile` data source allows details of a file in a repository to be retrieved. // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/repository_files.html) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.LookupRepositoryFile(ctx, &gitlab.LookupRepositoryFileArgs{ -// FilePath: "README.md", -// Project: "example", -// Ref: "main", -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func LookupRepositoryFile(ctx *pulumi.Context, args *LookupRepositoryFileArgs, opts ...pulumi.InvokeOption) (*LookupRepositoryFileResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupRepositoryFileResult diff --git a/sdk/go/gitlab/getRepositoryTree.go b/sdk/go/gitlab/getRepositoryTree.go index 98809586..fe40df41 100644 --- a/sdk/go/gitlab/getRepositoryTree.go +++ b/sdk/go/gitlab/getRepositoryTree.go @@ -15,35 +15,6 @@ import ( // The `getRepositoryTree` data source allows details of directories and files in a repository to be retrieved. // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/repositories.html#list-repository-tree) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.GetRepositoryTree(ctx, &gitlab.GetRepositoryTreeArgs{ -// Path: pulumi.StringRef("ExampleSubFolder"), -// Project: "example", -// Recursive: pulumi.BoolRef(true), -// Ref: "main", -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func GetRepositoryTree(ctx *pulumi.Context, args *GetRepositoryTreeArgs, opts ...pulumi.InvokeOption) (*GetRepositoryTreeResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetRepositoryTreeResult diff --git a/sdk/go/gitlab/getUsers.go b/sdk/go/gitlab/getUsers.go index 4f2d8d87..1f952f17 100644 --- a/sdk/go/gitlab/getUsers.go +++ b/sdk/go/gitlab/getUsers.go @@ -19,40 +19,6 @@ import ( // > Some available options require administrator privileges. // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ce/api/users.html#list-users) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.GetUsers(ctx, &gitlab.GetUsersArgs{ -// CreatedBefore: pulumi.StringRef("2019-01-01"), -// OrderBy: pulumi.StringRef("name"), -// Sort: pulumi.StringRef("desc"), -// }, nil) -// if err != nil { -// return err -// } -// _, err = gitlab.GetUsers(ctx, &gitlab.GetUsersArgs{ -// Search: pulumi.StringRef("username"), -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` func GetUsers(ctx *pulumi.Context, args *GetUsersArgs, opts ...pulumi.InvokeOption) (*GetUsersResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetUsersResult diff --git a/sdk/go/gitlab/group.go b/sdk/go/gitlab/group.go index c0776c07..bb6d15a0 100644 --- a/sdk/go/gitlab/group.go +++ b/sdk/go/gitlab/group.go @@ -19,40 +19,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// exampleGroup, err := gitlab.NewGroup(ctx, "exampleGroup", &gitlab.GroupArgs{ -// Path: pulumi.String("example"), -// Description: pulumi.String("An example group"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewProject(ctx, "exampleProject", &gitlab.ProjectArgs{ -// Description: pulumi.String("An example project"), -// NamespaceId: exampleGroup.ID(), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // ```sh diff --git a/sdk/go/gitlab/groupAccessToken.go b/sdk/go/gitlab/groupAccessToken.go index aa280caf..d712f5a9 100644 --- a/sdk/go/gitlab/groupAccessToken.go +++ b/sdk/go/gitlab/groupAccessToken.go @@ -19,45 +19,6 @@ import ( // // **Upstream API**: [GitLab REST API](https://docs.gitlab.com/ee/api/group_access_tokens.html) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// exampleGroupAccessToken, err := gitlab.NewGroupAccessToken(ctx, "exampleGroupAccessToken", &gitlab.GroupAccessTokenArgs{ -// Group: pulumi.String("25"), -// ExpiresAt: pulumi.String("2020-03-14"), -// AccessLevel: pulumi.String("developer"), -// Scopes: pulumi.StringArray{ -// pulumi.String("api"), -// }, -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewGroupVariable(ctx, "exampleGroupVariable", &gitlab.GroupVariableArgs{ -// Group: pulumi.String("25"), -// Key: pulumi.String("gat"), -// Value: exampleGroupAccessToken.Token, -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // A GitLab Group Access Token can be imported using a key composed of `:`, e.g. diff --git a/sdk/go/gitlab/groupBadge.go b/sdk/go/gitlab/groupBadge.go index 999be4bb..6464ba72 100644 --- a/sdk/go/gitlab/groupBadge.go +++ b/sdk/go/gitlab/groupBadge.go @@ -17,62 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/user/project/badges.html#group-badges) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// foo, err := gitlab.NewGroup(ctx, "foo", nil) -// if err != nil { -// return err -// } -// _, err = gitlab.NewGroupBadge(ctx, "example", &gitlab.GroupBadgeArgs{ -// Group: foo.ID(), -// LinkUrl: pulumi.String("https://example.com/badge-123"), -// ImageUrl: pulumi.String("https://example.com/badge-123.svg"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewGroupBadge(ctx, "gitlabPipeline", &gitlab.GroupBadgeArgs{ -// Group: foo.ID(), -// LinkUrl: pulumi.String("https://gitlab.example.com/%{project_path}/-/pipelines?ref=%{default_branch}"), -// ImageUrl: pulumi.String("https://gitlab.example.com/%{project_path}/badges/%{default_branch}/pipeline.svg"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewGroupBadge(ctx, "gitlabCoverage", &gitlab.GroupBadgeArgs{ -// Group: foo.ID(), -// LinkUrl: pulumi.String("https://gitlab.example.com/%{project_path}/-/jobs"), -// ImageUrl: pulumi.String("https://gitlab.example.com/%{project_path}/badges/%{default_branch}/coverage.svg"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewGroupBadge(ctx, "gitlabRelease", &gitlab.GroupBadgeArgs{ -// Group: foo.ID(), -// LinkUrl: pulumi.String("https://gitlab.example.com/%{project_path}/-/releases"), -// ImageUrl: pulumi.String("https://gitlab.example.com/%{project_path}/-/badges/release.svg"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // GitLab group badges can be imported using an id made up of `{group_id}:{badge_id}`, e.g. diff --git a/sdk/go/gitlab/groupCluster.go b/sdk/go/gitlab/groupCluster.go index a794bf99..4f7fd6c3 100644 --- a/sdk/go/gitlab/groupCluster.go +++ b/sdk/go/gitlab/groupCluster.go @@ -19,46 +19,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_clusters.html) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// foo, err := gitlab.NewGroup(ctx, "foo", &gitlab.GroupArgs{ -// Path: pulumi.String("foo-path"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewGroupCluster(ctx, "bar", &gitlab.GroupClusterArgs{ -// Group: foo.ID(), -// Domain: pulumi.String("example.com"), -// Enabled: pulumi.Bool(true), -// KubernetesApiUrl: pulumi.String("https://124.124.124"), -// KubernetesToken: pulumi.String("some-token"), -// KubernetesCaCert: pulumi.String("some-cert"), -// KubernetesAuthorizationType: pulumi.String("rbac"), -// EnvironmentScope: pulumi.String("*"), -// ManagementProjectId: pulumi.String("123456"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // GitLab group clusters can be imported using an id made up of `groupid:clusterid`, e.g. diff --git a/sdk/go/gitlab/groupCustomAttribute.go b/sdk/go/gitlab/groupCustomAttribute.go index 67fde74c..c4395b02 100644 --- a/sdk/go/gitlab/groupCustomAttribute.go +++ b/sdk/go/gitlab/groupCustomAttribute.go @@ -17,34 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/custom_attributes.html) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.NewGroupCustomAttribute(ctx, "attr", &gitlab.GroupCustomAttributeArgs{ -// Group: pulumi.Int(42), -// Key: pulumi.String("location"), -// Value: pulumi.String("Greenland"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // You can import a group custom attribute using the an id made up of `{group-id}:{key}`, e.g. diff --git a/sdk/go/gitlab/groupEpicBoard.go b/sdk/go/gitlab/groupEpicBoard.go index 875632b4..ecfe4ab7 100644 --- a/sdk/go/gitlab/groupEpicBoard.go +++ b/sdk/go/gitlab/groupEpicBoard.go @@ -19,58 +19,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_boards.html) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// example, err := gitlab.NewGroup(ctx, "example", &gitlab.GroupArgs{ -// Path: pulumi.String("test_group"), -// Description: pulumi.String("An example group"), -// }) -// if err != nil { -// return err -// } -// label1, err := gitlab.NewGroupLabel(ctx, "label1", &gitlab.GroupLabelArgs{ -// Group: example.ID(), -// Color: pulumi.String("#FF0000"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewGroupLabel(ctx, "label3", &gitlab.GroupLabelArgs{ -// Group: example.ID(), -// Color: pulumi.String("#003000"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewGroupEpicBoard(ctx, "epicBoard", &gitlab.GroupEpicBoardArgs{ -// Group: example.Path, -// Lists: gitlab.GroupEpicBoardListArray{ -// &gitlab.GroupEpicBoardListArgs{ -// LabelId: label1.LabelId, -// }, -// }, -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // You can import this resource with an id made up of `{group-id}:{epic-board-id}`, e.g. diff --git a/sdk/go/gitlab/groupHook.go b/sdk/go/gitlab/groupHook.go index 24c346da..8bdcd5e4 100644 --- a/sdk/go/gitlab/groupHook.go +++ b/sdk/go/gitlab/groupHook.go @@ -17,57 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#hooks) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.NewGroupHook(ctx, "example", &gitlab.GroupHookArgs{ -// Group: pulumi.String("example/hooked"), -// MergeRequestsEvents: pulumi.Bool(true), -// Url: pulumi.String("https://example.com/hook/example"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewGroupHook(ctx, "allAttributes", &gitlab.GroupHookArgs{ -// ConfidentialIssuesEvents: pulumi.Bool(false), -// ConfidentialNoteEvents: pulumi.Bool(true), -// DeploymentEvents: pulumi.Bool(true), -// EnableSslVerification: pulumi.Bool(false), -// Group: pulumi.String("1"), -// IssuesEvents: pulumi.Bool(false), -// JobEvents: pulumi.Bool(true), -// MergeRequestsEvents: pulumi.Bool(true), -// NoteEvents: pulumi.Bool(true), -// PipelineEvents: pulumi.Bool(true), -// PushEvents: pulumi.Bool(true), -// PushEventsBranchFilter: pulumi.String("devel"), -// ReleasesEvents: pulumi.Bool(true), -// SubgroupEvents: pulumi.Bool(true), -// TagPushEvents: pulumi.Bool(true), -// Token: pulumi.String("supersecret"), -// Url: pulumi.String("http://example.com"), -// WikiPageEvents: pulumi.Bool(true), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // A GitLab Group Hook can be imported using a key composed of `:`, e.g. diff --git a/sdk/go/gitlab/groupLabel.go b/sdk/go/gitlab/groupLabel.go index 56ef7f3b..4c3d73a0 100644 --- a/sdk/go/gitlab/groupLabel.go +++ b/sdk/go/gitlab/groupLabel.go @@ -17,34 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/user/project/labels.html#group-labels) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.NewGroupLabel(ctx, "fixme", &gitlab.GroupLabelArgs{ -// Color: pulumi.String("#ffcc00"), -// Description: pulumi.String("issue with failing tests"), -// Group: pulumi.String("example"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // Gitlab group labels can be imported using an id made up of `{group_id}:{group_label_id}`, e.g. diff --git a/sdk/go/gitlab/groupMembership.go b/sdk/go/gitlab/groupMembership.go index aca2f80c..81d63806 100644 --- a/sdk/go/gitlab/groupMembership.go +++ b/sdk/go/gitlab/groupMembership.go @@ -19,35 +19,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/members.html) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.NewGroupMembership(ctx, "test", &gitlab.GroupMembershipArgs{ -// AccessLevel: pulumi.String("guest"), -// ExpiresAt: pulumi.String("2020-12-31"), -// GroupId: pulumi.String("12345"), -// UserId: pulumi.Int(1337), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // GitLab group membership can be imported using an id made up of `group_id:user_id`, e.g. diff --git a/sdk/go/gitlab/groupProjectFileTemplate.go b/sdk/go/gitlab/groupProjectFileTemplate.go index 1a5405be..032a6ad3 100644 --- a/sdk/go/gitlab/groupProjectFileTemplate.go +++ b/sdk/go/gitlab/groupProjectFileTemplate.go @@ -22,48 +22,6 @@ import ( // > This resource requires a GitLab Enterprise instance with a Premium license. // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#update-group) -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// foo, err := gitlab.NewGroup(ctx, "foo", &gitlab.GroupArgs{ -// Path: pulumi.String("group"), -// Description: pulumi.String("An example group"), -// }) -// if err != nil { -// return err -// } -// bar, err := gitlab.NewProject(ctx, "bar", &gitlab.ProjectArgs{ -// Description: pulumi.String("contains file templates"), -// VisibilityLevel: pulumi.String("public"), -// NamespaceId: foo.ID(), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewGroupProjectFileTemplate(ctx, "templateLink", &gitlab.GroupProjectFileTemplateArgs{ -// GroupId: foo.ID(), -// FileTemplateProjectId: bar.ID(), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` type GroupProjectFileTemplate struct { pulumi.CustomResourceState diff --git a/sdk/go/gitlab/groupSamlLink.go b/sdk/go/gitlab/groupSamlLink.go index 5ff3ee44..af136d68 100644 --- a/sdk/go/gitlab/groupSamlLink.go +++ b/sdk/go/gitlab/groupSamlLink.go @@ -17,34 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#saml-group-links) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.NewGroupSamlLink(ctx, "test", &gitlab.GroupSamlLinkArgs{ -// AccessLevel: pulumi.String("developer"), -// Group: pulumi.String("12345"), -// SamlGroupName: pulumi.String("samlgroupname1"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // GitLab group saml links can be imported using an id made up of `group_id:saml_group_name`, e.g. diff --git a/sdk/go/gitlab/groupShareGroup.go b/sdk/go/gitlab/groupShareGroup.go index caa996d1..c7a46438 100644 --- a/sdk/go/gitlab/groupShareGroup.go +++ b/sdk/go/gitlab/groupShareGroup.go @@ -17,35 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#share-groups-with-groups) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.NewGroupShareGroup(ctx, "test", &gitlab.GroupShareGroupArgs{ -// GroupId: pulumi.Any(gitlab_group.Foo.Id), -// ShareGroupId: pulumi.Any(gitlab_group.Bar.Id), -// GroupAccess: pulumi.String("guest"), -// ExpiresAt: pulumi.String("2099-01-01"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // GitLab group shares can be imported using an id made up of `mainGroupId:shareGroupId`, e.g. diff --git a/sdk/go/gitlab/groupVariable.go b/sdk/go/gitlab/groupVariable.go index 72f49a2e..a08020c2 100644 --- a/sdk/go/gitlab/groupVariable.go +++ b/sdk/go/gitlab/groupVariable.go @@ -17,37 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_level_variables.html) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.NewGroupVariable(ctx, "example", &gitlab.GroupVariableArgs{ -// EnvironmentScope: pulumi.String("*"), -// Group: pulumi.String("12345"), -// Key: pulumi.String("group_variable_key"), -// Masked: pulumi.Bool(false), -// Protected: pulumi.Bool(false), -// Value: pulumi.String("group_variable_value"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // GitLab group variables can be imported using an id made up of `groupid:variablename:scope`, e.g. diff --git a/sdk/go/gitlab/instanceCluster.go b/sdk/go/gitlab/instanceCluster.go index 0a158132..b32517fb 100644 --- a/sdk/go/gitlab/instanceCluster.go +++ b/sdk/go/gitlab/instanceCluster.go @@ -19,40 +19,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/instance_clusters.html) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.NewInstanceCluster(ctx, "bar", &gitlab.InstanceClusterArgs{ -// Domain: pulumi.String("example.com"), -// Enabled: pulumi.Bool(true), -// EnvironmentScope: pulumi.String("*"), -// KubernetesApiUrl: pulumi.String("https://124.124.124"), -// KubernetesAuthorizationType: pulumi.String("rbac"), -// KubernetesCaCert: pulumi.String("some-cert"), -// KubernetesNamespace: pulumi.String("namespace"), -// KubernetesToken: pulumi.String("some-token"), -// ManagementProjectId: pulumi.String("123456"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // GitLab instance clusters can be imported using a `clusterid`, e.g. diff --git a/sdk/go/gitlab/instanceVariable.go b/sdk/go/gitlab/instanceVariable.go index 7d61df0b..7913932d 100644 --- a/sdk/go/gitlab/instanceVariable.go +++ b/sdk/go/gitlab/instanceVariable.go @@ -17,35 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/instance_level_ci_variables.html) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.NewInstanceVariable(ctx, "example", &gitlab.InstanceVariableArgs{ -// Key: pulumi.String("instance_variable_key"), -// Masked: pulumi.Bool(false), -// Protected: pulumi.Bool(false), -// Value: pulumi.String("instance_variable_value"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // GitLab instance variables can be imported using an id made up of `variablename`, e.g. diff --git a/sdk/go/gitlab/integrationCustomIssueTracker.go b/sdk/go/gitlab/integrationCustomIssueTracker.go index a1c15a90..491acf37 100644 --- a/sdk/go/gitlab/integrationCustomIssueTracker.go +++ b/sdk/go/gitlab/integrationCustomIssueTracker.go @@ -17,41 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#custom-issue-tracker) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// awesomeProject, err := gitlab.NewProject(ctx, "awesomeProject", &gitlab.ProjectArgs{ -// Description: pulumi.String("My awesome project."), -// VisibilityLevel: pulumi.String("public"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewIntegrationCustomIssueTracker(ctx, "tracker", &gitlab.IntegrationCustomIssueTrackerArgs{ -// Project: awesomeProject.ID(), -// ProjectUrl: pulumi.String("https://customtracker.com/issues"), -// IssuesUrl: pulumi.String("https://customtracker.com/TEST-:id"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // You can import a gitlab_integration_custom_issue_tracker state using the project ID, e.g. diff --git a/sdk/go/gitlab/integrationEmailsOnPush.go b/sdk/go/gitlab/integrationEmailsOnPush.go index b15805dd..63e7cf45 100644 --- a/sdk/go/gitlab/integrationEmailsOnPush.go +++ b/sdk/go/gitlab/integrationEmailsOnPush.go @@ -17,40 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#emails-on-push) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// awesomeProject, err := gitlab.NewProject(ctx, "awesomeProject", &gitlab.ProjectArgs{ -// Description: pulumi.String("My awesome project."), -// VisibilityLevel: pulumi.String("public"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewIntegrationEmailsOnPush(ctx, "emails", &gitlab.IntegrationEmailsOnPushArgs{ -// Project: awesomeProject.ID(), -// Recipients: pulumi.String("myrecipient@example.com myotherrecipient@example.com"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // You can import a gitlab_integration_emails_on_push state using the project ID, e.g. diff --git a/sdk/go/gitlab/integrationExternalWiki.go b/sdk/go/gitlab/integrationExternalWiki.go index 4bed946d..30168ccd 100644 --- a/sdk/go/gitlab/integrationExternalWiki.go +++ b/sdk/go/gitlab/integrationExternalWiki.go @@ -17,40 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#external-wiki) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// awesomeProject, err := gitlab.NewProject(ctx, "awesomeProject", &gitlab.ProjectArgs{ -// Description: pulumi.String("My awesome project."), -// VisibilityLevel: pulumi.String("public"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewIntegrationExternalWiki(ctx, "wiki", &gitlab.IntegrationExternalWikiArgs{ -// Project: awesomeProject.ID(), -// ExternalWikiUrl: pulumi.String("https://MyAwesomeExternalWikiURL.com"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // You can import a gitlab_integration_external_wiki state using the project ID, e.g. diff --git a/sdk/go/gitlab/integrationGithub.go b/sdk/go/gitlab/integrationGithub.go index 34ae7f46..ddc5044a 100644 --- a/sdk/go/gitlab/integrationGithub.go +++ b/sdk/go/gitlab/integrationGithub.go @@ -19,41 +19,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#github) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// awesomeProject, err := gitlab.NewProject(ctx, "awesomeProject", &gitlab.ProjectArgs{ -// Description: pulumi.String("My awesome project."), -// VisibilityLevel: pulumi.String("public"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewIntegrationGithub(ctx, "github", &gitlab.IntegrationGithubArgs{ -// Project: awesomeProject.ID(), -// Token: pulumi.String("REDACTED"), -// RepositoryUrl: pulumi.String("https://github.com/gitlabhq/terraform-provider-gitlab"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // ```sh diff --git a/sdk/go/gitlab/integrationJira.go b/sdk/go/gitlab/integrationJira.go index 5f5a935c..54da914e 100644 --- a/sdk/go/gitlab/integrationJira.go +++ b/sdk/go/gitlab/integrationJira.go @@ -17,42 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/services.html#jira) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// awesomeProject, err := gitlab.NewProject(ctx, "awesomeProject", &gitlab.ProjectArgs{ -// Description: pulumi.String("My awesome project."), -// VisibilityLevel: pulumi.String("public"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewIntegrationJira(ctx, "jira", &gitlab.IntegrationJiraArgs{ -// Project: awesomeProject.ID(), -// Url: pulumi.String("https://jira.example.com"), -// Username: pulumi.String("user"), -// Password: pulumi.String("mypass"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // You can import a gitlab_integration_jira state using the project ID, e.g. diff --git a/sdk/go/gitlab/integrationMattermost.go b/sdk/go/gitlab/integrationMattermost.go index b14f608b..e34578c4 100644 --- a/sdk/go/gitlab/integrationMattermost.go +++ b/sdk/go/gitlab/integrationMattermost.go @@ -17,43 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#mattermost-notifications) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// awesomeProject, err := gitlab.NewProject(ctx, "awesomeProject", &gitlab.ProjectArgs{ -// Description: pulumi.String("My awesome project."), -// VisibilityLevel: pulumi.String("public"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewIntegrationMattermost(ctx, "mattermost", &gitlab.IntegrationMattermostArgs{ -// Project: awesomeProject.ID(), -// Webhook: pulumi.String("https://webhook.com"), -// Username: pulumi.String("myuser"), -// PushEvents: pulumi.Bool(true), -// PushChannel: pulumi.String("push_chan"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // You can import a gitlab_integration_mattermost.mattermost state using the project ID, e.g. diff --git a/sdk/go/gitlab/integrationMicrosoftTeams.go b/sdk/go/gitlab/integrationMicrosoftTeams.go index 9d0325b4..61d19c91 100644 --- a/sdk/go/gitlab/integrationMicrosoftTeams.go +++ b/sdk/go/gitlab/integrationMicrosoftTeams.go @@ -17,41 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#microsoft-teams) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// awesomeProject, err := gitlab.NewProject(ctx, "awesomeProject", &gitlab.ProjectArgs{ -// Description: pulumi.String("My awesome project."), -// VisibilityLevel: pulumi.String("public"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewIntegrationMicrosoftTeams(ctx, "teams", &gitlab.IntegrationMicrosoftTeamsArgs{ -// Project: awesomeProject.ID(), -// Webhook: pulumi.String("https://testurl.com/?token=XYZ"), -// PushEvents: pulumi.Bool(true), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // You can import a gitlab_integration_microsoft_teams state using the project ID, e.g. diff --git a/sdk/go/gitlab/integrationPipelinesEmail.go b/sdk/go/gitlab/integrationPipelinesEmail.go index fba8ec83..d0e26e90 100644 --- a/sdk/go/gitlab/integrationPipelinesEmail.go +++ b/sdk/go/gitlab/integrationPipelinesEmail.go @@ -17,44 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#pipeline-emails) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// awesomeProject, err := gitlab.NewProject(ctx, "awesomeProject", &gitlab.ProjectArgs{ -// Description: pulumi.String("My awesome project."), -// VisibilityLevel: pulumi.String("public"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewIntegrationPipelinesEmail(ctx, "email", &gitlab.IntegrationPipelinesEmailArgs{ -// Project: awesomeProject.ID(), -// Recipients: pulumi.StringArray{ -// pulumi.String("gitlab@user.create"), -// }, -// NotifyOnlyBrokenPipelines: pulumi.Bool(true), -// BranchesToBeNotified: pulumi.String("all"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // You can import a gitlab_integration_pipelines_email state using the project ID, e.g. diff --git a/sdk/go/gitlab/integrationSlack.go b/sdk/go/gitlab/integrationSlack.go index dfbbedd4..c0db99a0 100644 --- a/sdk/go/gitlab/integrationSlack.go +++ b/sdk/go/gitlab/integrationSlack.go @@ -17,43 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#slack-notifications) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// awesomeProject, err := gitlab.NewProject(ctx, "awesomeProject", &gitlab.ProjectArgs{ -// Description: pulumi.String("My awesome project."), -// VisibilityLevel: pulumi.String("public"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewIntegrationSlack(ctx, "slack", &gitlab.IntegrationSlackArgs{ -// Project: awesomeProject.ID(), -// Webhook: pulumi.String("https://webhook.com"), -// Username: pulumi.String("myuser"), -// PushEvents: pulumi.Bool(true), -// PushChannel: pulumi.String("push_chan"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // You can import a gitlab_integration_slack.slack state using the project ID, e.g. diff --git a/sdk/go/gitlab/pagesDomain.go b/sdk/go/gitlab/pagesDomain.go index bb83c5ec..0ad0753e 100644 --- a/sdk/go/gitlab/pagesDomain.go +++ b/sdk/go/gitlab/pagesDomain.go @@ -17,54 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/pages_domains.html) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "fmt" -// "os" -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func readFileOrPanic(path string) pulumi.StringPtrInput { -// data, err := os.ReadFile(path) -// if err != nil { -// panic(err.Error()) -// } -// return pulumi.String(string(data)) -// } -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.NewPagesDomain(ctx, "thisPagesDomain", &gitlab.PagesDomainArgs{ -// Project: pulumi.String("123"), -// Domain: pulumi.String("example.com"), -// AutoSslEnabled: pulumi.Bool(true), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewPagesDomain(ctx, "thisIndex/pagesDomainPagesDomain", &gitlab.PagesDomainArgs{ -// Project: pulumi.String("123"), -// Domain: pulumi.String("example.com"), -// Key: readFileOrPanic(fmt.Sprintf("%v/key.pem", path.Module)), -// Certificate: readFileOrPanic(fmt.Sprintf("%v/cert.pem", path.Module)), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // GitLab pages domain can be imported using an id made up of `projectId:domain` _without_ the http protocol, e.g. diff --git a/sdk/go/gitlab/personalAccessToken.go b/sdk/go/gitlab/personalAccessToken.go index cfb0c3db..81a6db39 100644 --- a/sdk/go/gitlab/personalAccessToken.go +++ b/sdk/go/gitlab/personalAccessToken.go @@ -19,44 +19,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/personal_access_tokens.html) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// examplePersonalAccessToken, err := gitlab.NewPersonalAccessToken(ctx, "examplePersonalAccessToken", &gitlab.PersonalAccessTokenArgs{ -// UserId: pulumi.Int(25), -// ExpiresAt: pulumi.String("2020-03-14"), -// Scopes: pulumi.StringArray{ -// pulumi.String("api"), -// }, -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewProjectVariable(ctx, "exampleProjectVariable", &gitlab.ProjectVariableArgs{ -// Project: pulumi.Any(gitlab_project.Example.Id), -// Key: pulumi.String("pat"), -// Value: examplePersonalAccessToken.Token, -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // A GitLab Personal Access Token can be imported using a key composed of `:`, e.g. diff --git a/sdk/go/gitlab/pipelineSchedule.go b/sdk/go/gitlab/pipelineSchedule.go index efebc3cc..f81d6b1a 100644 --- a/sdk/go/gitlab/pipelineSchedule.go +++ b/sdk/go/gitlab/pipelineSchedule.go @@ -17,35 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/pipeline_schedules.html) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.NewPipelineSchedule(ctx, "example", &gitlab.PipelineScheduleArgs{ -// Cron: pulumi.String("0 1 * * *"), -// Description: pulumi.String("Used to schedule builds"), -// Project: pulumi.String("12345"), -// Ref: pulumi.String("master"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // GitLab pipeline schedules can be imported using an id made up of `{project_id}:{pipeline_schedule_id}`, e.g. diff --git a/sdk/go/gitlab/pipelineScheduleVariable.go b/sdk/go/gitlab/pipelineScheduleVariable.go index 40625f0c..4e688386 100644 --- a/sdk/go/gitlab/pipelineScheduleVariable.go +++ b/sdk/go/gitlab/pipelineScheduleVariable.go @@ -17,44 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/pipeline_schedules.html#pipeline-schedule-variables) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// examplePipelineSchedule, err := gitlab.NewPipelineSchedule(ctx, "examplePipelineSchedule", &gitlab.PipelineScheduleArgs{ -// Project: pulumi.String("12345"), -// Description: pulumi.String("Used to schedule builds"), -// Ref: pulumi.String("master"), -// Cron: pulumi.String("0 1 * * *"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewPipelineScheduleVariable(ctx, "examplePipelineScheduleVariable", &gitlab.PipelineScheduleVariableArgs{ -// Project: examplePipelineSchedule.Project, -// PipelineScheduleId: examplePipelineSchedule.PipelineScheduleId, -// Key: pulumi.String("EXAMPLE_KEY"), -// Value: pulumi.String("example"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // Pipeline schedule variables can be imported using an id made up of `project_id:pipeline_schedule_id:key`, e.g. diff --git a/sdk/go/gitlab/pipelineTrigger.go b/sdk/go/gitlab/pipelineTrigger.go index 82415bdd..fe20d5e3 100644 --- a/sdk/go/gitlab/pipelineTrigger.go +++ b/sdk/go/gitlab/pipelineTrigger.go @@ -17,33 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/pipeline_triggers.html) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.NewPipelineTrigger(ctx, "example", &gitlab.PipelineTriggerArgs{ -// Description: pulumi.String("Used to trigger builds"), -// Project: pulumi.String("12345"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // GitLab pipeline triggers can be imported using an id made up of `{project_id}:{pipeline_trigger_id}`, e.g. diff --git a/sdk/go/gitlab/project.go b/sdk/go/gitlab/project.go index 621e2f17..9780ac76 100644 --- a/sdk/go/gitlab/project.go +++ b/sdk/go/gitlab/project.go @@ -12,109 +12,6 @@ import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumix" ) -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// example, err := gitlab.NewProject(ctx, "example", &gitlab.ProjectArgs{ -// Description: pulumi.String("My awesome codebase"), -// VisibilityLevel: pulumi.String("public"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewProject(ctx, "example-two", &gitlab.ProjectArgs{ -// PushRules: &gitlab.ProjectPushRulesArgs{ -// AuthorEmailRegex: pulumi.String("@example\\.com$"), -// CommitCommitterCheck: pulumi.Bool(true), -// MemberCheck: pulumi.Bool(true), -// PreventSecrets: pulumi.Bool(true), -// }, -// }) -// if err != nil { -// return err -// } -// peterParker, err := gitlab.LookupUser(ctx, &gitlab.LookupUserArgs{ -// Username: pulumi.StringRef("peter_parker"), -// }, nil) -// if err != nil { -// return err -// } -// _, err = gitlab.NewProject(ctx, "petersRepo", &gitlab.ProjectArgs{ -// Description: pulumi.String("This is a description"), -// NamespaceId: *pulumi.Int(peterParker.NamespaceId), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewProject(ctx, "forkProject", &gitlab.ProjectArgs{ -// Description: pulumi.String("This is a fork"), -// ForkedFromProjectId: example.ID(), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewProject(ctx, "forkIndex/projectProject", &gitlab.ProjectArgs{ -// Description: pulumi.String("This is a fork"), -// ForkedFromProjectId: example.ID(), -// ImportUrl: example.HttpUrlToRepo, -// Mirror: pulumi.Bool(true), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewProject(ctx, "importPublic", &gitlab.ProjectArgs{ -// ImportUrl: pulumi.String("https://gitlab.example.com/repo.git"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewProject(ctx, "importPublicWithMirror", &gitlab.ProjectArgs{ -// ImportUrl: pulumi.String("https://gitlab.example.com/repo.git"), -// Mirror: pulumi.Bool(true), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewProject(ctx, "importPrivateProject", &gitlab.ProjectArgs{ -// ImportUrl: pulumi.String("https://gitlab.example.com/repo.git"), -// ImportUrlUsername: pulumi.String("user"), -// ImportUrlPassword: pulumi.String("pass"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewProject(ctx, "importPrivateWithMirror", &gitlab.ProjectArgs{ -// ImportUrl: pulumi.String("https://gitlab.example.com/repo.git"), -// ImportUrlUsername: pulumi.String("user"), -// ImportUrlPassword: pulumi.String("pass"), -// Mirror: pulumi.Bool(true), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewProject(ctx, "importPrivateIndex/projectProject", &gitlab.ProjectArgs{ -// ImportUrl: pulumi.String("https://user:pass@gitlab.example.com/repo.git"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // ```sh diff --git a/sdk/go/gitlab/projectAccessToken.go b/sdk/go/gitlab/projectAccessToken.go index da485937..1369a745 100644 --- a/sdk/go/gitlab/projectAccessToken.go +++ b/sdk/go/gitlab/projectAccessToken.go @@ -17,45 +17,6 @@ import ( // // **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/project_access_tokens.html) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// exampleProjectAccessToken, err := gitlab.NewProjectAccessToken(ctx, "exampleProjectAccessToken", &gitlab.ProjectAccessTokenArgs{ -// Project: pulumi.String("25"), -// ExpiresAt: pulumi.String("2020-03-14"), -// AccessLevel: pulumi.String("reporter"), -// Scopes: pulumi.StringArray{ -// pulumi.String("api"), -// }, -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewProjectVariable(ctx, "exampleProjectVariable", &gitlab.ProjectVariableArgs{ -// Project: pulumi.Any(gitlab_project.Example.Id), -// Key: pulumi.String("pat"), -// Value: exampleProjectAccessToken.Token, -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // A GitLab Project Access Token can be imported using a key composed of `:`, e.g. diff --git a/sdk/go/gitlab/projectBadge.go b/sdk/go/gitlab/projectBadge.go index 154f9239..fdde067c 100644 --- a/sdk/go/gitlab/projectBadge.go +++ b/sdk/go/gitlab/projectBadge.go @@ -17,62 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/user/project/badges.html#project-badges) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// foo, err := gitlab.NewProject(ctx, "foo", nil) -// if err != nil { -// return err -// } -// _, err = gitlab.NewProjectBadge(ctx, "example", &gitlab.ProjectBadgeArgs{ -// Project: foo.ID(), -// LinkUrl: pulumi.String("https://example.com/badge-123"), -// ImageUrl: pulumi.String("https://example.com/badge-123.svg"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewProjectBadge(ctx, "gitlabPipeline", &gitlab.ProjectBadgeArgs{ -// Project: foo.ID(), -// LinkUrl: pulumi.String("https://gitlab.example.com/%{project_path}/-/pipelines?ref=%{default_branch}"), -// ImageUrl: pulumi.String("https://gitlab.example.com/%{project_path}/badges/%{default_branch}/pipeline.svg"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewProjectBadge(ctx, "gitlabCoverage", &gitlab.ProjectBadgeArgs{ -// Project: foo.ID(), -// LinkUrl: pulumi.String("https://gitlab.example.com/%{project_path}/-/jobs"), -// ImageUrl: pulumi.String("https://gitlab.example.com/%{project_path}/badges/%{default_branch}/coverage.svg"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewProjectBadge(ctx, "gitlabRelease", &gitlab.ProjectBadgeArgs{ -// Project: foo.ID(), -// LinkUrl: pulumi.String("https://gitlab.example.com/%{project_path}/-/releases"), -// ImageUrl: pulumi.String("https://gitlab.example.com/%{project_path}/-/badges/release.svg"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // GitLab project badges can be imported using an id made up of `{project_id}:{badge_id}`, e.g. diff --git a/sdk/go/gitlab/projectCluster.go b/sdk/go/gitlab/projectCluster.go index e8c6c66a..801c12c4 100644 --- a/sdk/go/gitlab/projectCluster.go +++ b/sdk/go/gitlab/projectCluster.go @@ -19,45 +19,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/project_clusters.html) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// foo, err := gitlab.NewProject(ctx, "foo", nil) -// if err != nil { -// return err -// } -// _, err = gitlab.NewProjectCluster(ctx, "bar", &gitlab.ProjectClusterArgs{ -// Project: foo.ID(), -// Domain: pulumi.String("example.com"), -// Enabled: pulumi.Bool(true), -// KubernetesApiUrl: pulumi.String("https://124.124.124"), -// KubernetesToken: pulumi.String("some-token"), -// KubernetesCaCert: pulumi.String("some-cert"), -// KubernetesNamespace: pulumi.String("namespace"), -// KubernetesAuthorizationType: pulumi.String("rbac"), -// EnvironmentScope: pulumi.String("*"), -// ManagementProjectId: pulumi.String("123456"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // GitLab project clusters can be imported using an id made up of `projectid:clusterid`, e.g. diff --git a/sdk/go/gitlab/projectComplianceFramework.go b/sdk/go/gitlab/projectComplianceFramework.go index 8e8c4a63..7387fc9b 100644 --- a/sdk/go/gitlab/projectComplianceFramework.go +++ b/sdk/go/gitlab/projectComplianceFramework.go @@ -19,43 +19,6 @@ import ( // // **Upstream API**: [GitLab GraphQL API docs](https://docs.gitlab.com/ee/api/graphql/reference/#mutationprojectsetcomplianceframework) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// sampleComplianceFramework, err := gitlab.NewComplianceFramework(ctx, "sampleComplianceFramework", &gitlab.ComplianceFrameworkArgs{ -// NamespacePath: pulumi.String("top-level-group"), -// Description: pulumi.String("A HIPAA Compliance Framework"), -// Color: pulumi.String("#87BEEF"), -// Default: pulumi.Bool(false), -// PipelineConfigurationFullPath: pulumi.String(".hipaa.yml@top-level-group/compliance-frameworks"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewProjectComplianceFramework(ctx, "sampleProjectComplianceFramework", &gitlab.ProjectComplianceFrameworkArgs{ -// ComplianceFrameworkId: sampleComplianceFramework.FrameworkId, -// Project: pulumi.String("12345678"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // Gitlab project compliance frameworks can be imported with a key composed of ``, e.g. diff --git a/sdk/go/gitlab/projectCustomAttribute.go b/sdk/go/gitlab/projectCustomAttribute.go index c9e61491..188fb936 100644 --- a/sdk/go/gitlab/projectCustomAttribute.go +++ b/sdk/go/gitlab/projectCustomAttribute.go @@ -17,34 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/custom_attributes.html) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.NewProjectCustomAttribute(ctx, "attr", &gitlab.ProjectCustomAttributeArgs{ -// Key: pulumi.String("location"), -// Project: pulumi.Int(42), -// Value: pulumi.String("Greenland"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // You can import a project custom attribute using an id made up of `{project-id}:{key}`, e.g. diff --git a/sdk/go/gitlab/projectEnvironment.go b/sdk/go/gitlab/projectEnvironment.go index dad6b7b5..5989e2fc 100644 --- a/sdk/go/gitlab/projectEnvironment.go +++ b/sdk/go/gitlab/projectEnvironment.go @@ -13,47 +13,6 @@ import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumix" ) -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// thisGroup, err := gitlab.NewGroup(ctx, "thisGroup", &gitlab.GroupArgs{ -// Path: pulumi.String("example"), -// Description: pulumi.String("An example group"), -// }) -// if err != nil { -// return err -// } -// thisProject, err := gitlab.NewProject(ctx, "thisProject", &gitlab.ProjectArgs{ -// NamespaceId: thisGroup.ID(), -// InitializeWithReadme: pulumi.Bool(true), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewProjectEnvironment(ctx, "thisProjectEnvironment", &gitlab.ProjectEnvironmentArgs{ -// Project: thisProject.ID(), -// ExternalUrl: pulumi.String("www.example.com"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // GitLab project environments can be imported using an id made up of `projectId:environmenId`, e.g. diff --git a/sdk/go/gitlab/projectFreezePeriod.go b/sdk/go/gitlab/projectFreezePeriod.go index cd7a9323..7ab62be1 100644 --- a/sdk/go/gitlab/projectFreezePeriod.go +++ b/sdk/go/gitlab/projectFreezePeriod.go @@ -17,35 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/freeze_periods.html) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.NewProjectFreezePeriod(ctx, "schedule", &gitlab.ProjectFreezePeriodArgs{ -// Project: pulumi.Any(gitlab_project.Foo.Id), -// FreezeStart: pulumi.String("0 23 * * 5"), -// FreezeEnd: pulumi.String("0 7 * * 1"), -// CronTimezone: pulumi.String("UTC"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // GitLab project freeze periods can be imported using an id made up of `project_id:freeze_period_id`, e.g. diff --git a/sdk/go/gitlab/projectHook.go b/sdk/go/gitlab/projectHook.go index 1cd7dde6..4d03759b 100644 --- a/sdk/go/gitlab/projectHook.go +++ b/sdk/go/gitlab/projectHook.go @@ -17,34 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#hooks) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.NewProjectHook(ctx, "example", &gitlab.ProjectHookArgs{ -// MergeRequestsEvents: pulumi.Bool(true), -// Project: pulumi.String("example/hooked"), -// Url: pulumi.String("https://example.com/hook/example"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // A GitLab Project Hook can be imported using a key composed of `:`, e.g. diff --git a/sdk/go/gitlab/projectIssue.go b/sdk/go/gitlab/projectIssue.go index 1c82a238..efa59b6a 100644 --- a/sdk/go/gitlab/projectIssue.go +++ b/sdk/go/gitlab/projectIssue.go @@ -13,47 +13,6 @@ import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumix" ) -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "fmt" -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// foo, err := gitlab.NewProject(ctx, "foo", &gitlab.ProjectArgs{ -// Description: pulumi.String("Lorem Ipsum"), -// VisibilityLevel: pulumi.String("public"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewProjectIssue(ctx, "welcomeIssue", &gitlab.ProjectIssueArgs{ -// Project: foo.ID(), -// Title: pulumi.String("Welcome!"), -// Description: foo.Name.ApplyT(func(name string) (string, error) { -// return fmt.Sprintf(" Welcome to the %v project!\n\n", name), nil -// }).(pulumi.StringOutput), -// DiscussionLocked: pulumi.Bool(true), -// }) -// if err != nil { -// return err -// } -// ctx.Export("welcomeIssueWebUrl", data.Gitlab_project_issue.Web_url) -// return nil -// }) -// } -// -// ``` -// // ## Import // // You can import this resource with an id made up of `{project-id}:{issue-id}`, e.g. diff --git a/sdk/go/gitlab/projectLabel.go b/sdk/go/gitlab/projectLabel.go index b3fc64a3..d8cc2ee5 100644 --- a/sdk/go/gitlab/projectLabel.go +++ b/sdk/go/gitlab/projectLabel.go @@ -17,42 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/labels.html#project-labels) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.NewProjectLabel(ctx, "fixme", &gitlab.ProjectLabelArgs{ -// Project: pulumi.String("example"), -// Description: pulumi.String("issue with failing tests"), -// Color: pulumi.String("#ffcc00"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewProjectLabel(ctx, "devopsCreate", &gitlab.ProjectLabelArgs{ -// Project: pulumi.Any(gitlab_project.Example.Id), -// Description: pulumi.String("issue for creating infrastructure resources"), -// Color: pulumi.String("#ffa500"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // Gitlab Project labels can be imported using an id made up of `{project_id}:{group_label_id}`, e.g. diff --git a/sdk/go/gitlab/projectLevelMrApprovals.go b/sdk/go/gitlab/projectLevelMrApprovals.go index c793c8f5..9916c518 100644 --- a/sdk/go/gitlab/projectLevelMrApprovals.go +++ b/sdk/go/gitlab/projectLevelMrApprovals.go @@ -19,42 +19,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/merge_request_approvals.html#merge-request-level-mr-approvals) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// fooProject, err := gitlab.NewProject(ctx, "fooProject", &gitlab.ProjectArgs{ -// Description: pulumi.String("My example project"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewProjectLevelMrApprovals(ctx, "fooProjectLevelMrApprovals", &gitlab.ProjectLevelMrApprovalsArgs{ -// Project: fooProject.ID(), -// ResetApprovalsOnPush: pulumi.Bool(true), -// DisableOverridingApproversPerMergeRequest: pulumi.Bool(false), -// MergeRequestsAuthorApproval: pulumi.Bool(false), -// MergeRequestsDisableCommittersApproval: pulumi.Bool(true), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // ```sh diff --git a/sdk/go/gitlab/projectMembership.go b/sdk/go/gitlab/projectMembership.go index 7da8f8dd..765efab0 100644 --- a/sdk/go/gitlab/projectMembership.go +++ b/sdk/go/gitlab/projectMembership.go @@ -19,43 +19,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/members.html) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.NewProjectMembership(ctx, "test", &gitlab.ProjectMembershipArgs{ -// AccessLevel: pulumi.String("guest"), -// Project: pulumi.String("12345"), -// UserId: pulumi.Int(1337), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewProjectMembership(ctx, "example", &gitlab.ProjectMembershipArgs{ -// AccessLevel: pulumi.String("guest"), -// ExpiresAt: pulumi.String("2022-12-31"), -// Project: pulumi.String("67890"), -// UserId: pulumi.Int(1234), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // GitLab project membership can be imported using an id made up of `project_id:user_id`, e.g. diff --git a/sdk/go/gitlab/projectMilestone.go b/sdk/go/gitlab/projectMilestone.go index 90379fae..ba99e02e 100644 --- a/sdk/go/gitlab/projectMilestone.go +++ b/sdk/go/gitlab/projectMilestone.go @@ -17,40 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/milestones.html) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// exampleProject, err := gitlab.NewProject(ctx, "exampleProject", &gitlab.ProjectArgs{ -// Description: pulumi.String("An example project"), -// NamespaceId: pulumi.Any(gitlab_group.Example.Id), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewProjectMilestone(ctx, "exampleProjectMilestone", &gitlab.ProjectMilestoneArgs{ -// Project: exampleProject.ID(), -// Title: pulumi.String("example"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // Gitlab project milestone can be imported with a key composed of `:`, e.g. diff --git a/sdk/go/gitlab/projectMirror.go b/sdk/go/gitlab/projectMirror.go index a2920e84..22224352 100644 --- a/sdk/go/gitlab/projectMirror.go +++ b/sdk/go/gitlab/projectMirror.go @@ -30,33 +30,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/remote_mirrors.html) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.NewProjectMirror(ctx, "foo", &gitlab.ProjectMirrorArgs{ -// Project: pulumi.String("1"), -// Url: pulumi.String("https://username:password@github.com/org/repository.git"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // GitLab project mirror can be imported using an id made up of `project_id:mirror_id`, e.g. diff --git a/sdk/go/gitlab/projectRunnerEnablement.go b/sdk/go/gitlab/projectRunnerEnablement.go index a6dbc83b..37198171 100644 --- a/sdk/go/gitlab/projectRunnerEnablement.go +++ b/sdk/go/gitlab/projectRunnerEnablement.go @@ -17,33 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/runners.html#enable-a-runner-in-project) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.NewProjectRunnerEnablement(ctx, "foo", &gitlab.ProjectRunnerEnablementArgs{ -// Project: pulumi.String("5"), -// RunnerId: pulumi.Int(7), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // GitLab project runners can be imported using an id made up of `project:runner_id`, e.g. diff --git a/sdk/go/gitlab/projectShareGroup.go b/sdk/go/gitlab/projectShareGroup.go index 25874eb7..2631e99e 100644 --- a/sdk/go/gitlab/projectShareGroup.go +++ b/sdk/go/gitlab/projectShareGroup.go @@ -17,34 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#share-project-with-group) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.NewProjectShareGroup(ctx, "test", &gitlab.ProjectShareGroupArgs{ -// GroupAccess: pulumi.String("guest"), -// GroupId: pulumi.Int(1337), -// Project: pulumi.String("12345"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // GitLab project group shares can be imported using an id made up of `projectid:groupid`, e.g. diff --git a/sdk/go/gitlab/projectTag.go b/sdk/go/gitlab/projectTag.go index 068324c5..ab82330e 100644 --- a/sdk/go/gitlab/projectTag.go +++ b/sdk/go/gitlab/projectTag.go @@ -17,40 +17,6 @@ import ( // // **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/tags.html) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// exampleProject, err := gitlab.NewProject(ctx, "exampleProject", &gitlab.ProjectArgs{ -// Description: pulumi.String("An example project"), -// NamespaceId: pulumi.Any(gitlab_group.Example.Id), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewProjectTag(ctx, "exampleProjectTag", &gitlab.ProjectTagArgs{ -// Ref: pulumi.String("main"), -// Project: exampleProject.ID(), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // Gitlab project tags can be imported with a key composed of `:`, e.g. diff --git a/sdk/go/gitlab/projectVariable.go b/sdk/go/gitlab/projectVariable.go index 983e396b..14fe3768 100644 --- a/sdk/go/gitlab/projectVariable.go +++ b/sdk/go/gitlab/projectVariable.go @@ -19,35 +19,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/project_level_variables.html) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.NewProjectVariable(ctx, "example", &gitlab.ProjectVariableArgs{ -// Key: pulumi.String("project_variable_key"), -// Project: pulumi.String("12345"), -// Protected: pulumi.Bool(false), -// Value: pulumi.String("project_variable_value"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // GitLab project variables can be imported using an id made up of `project:key:environment_scope`, e.g. diff --git a/sdk/go/gitlab/releaseLink.go b/sdk/go/gitlab/releaseLink.go index a6a4d5e8..bf1351d1 100644 --- a/sdk/go/gitlab/releaseLink.go +++ b/sdk/go/gitlab/releaseLink.go @@ -17,40 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/releases/links.html) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// exampleProject, err := gitlab.NewProject(ctx, "exampleProject", &gitlab.ProjectArgs{ -// Description: pulumi.String("An example project"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewReleaseLink(ctx, "exampleReleaseLink", &gitlab.ReleaseLinkArgs{ -// Project: exampleProject.ID(), -// TagName: pulumi.String("tag_name_associated_with_release"), -// Url: pulumi.String("https://test/"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // Gitlab release link can be imported with a key composed of `::`, e.g. diff --git a/sdk/go/gitlab/runner.go b/sdk/go/gitlab/runner.go index 104ac8d3..257c7fb3 100644 --- a/sdk/go/gitlab/runner.go +++ b/sdk/go/gitlab/runner.go @@ -23,91 +23,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/runners.html#register-a-new-runner) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "fmt" -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi-local/sdk/go/local" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// myGroup, err := gitlab.NewGroup(ctx, "myGroup", &gitlab.GroupArgs{ -// Description: pulumi.String("group that holds the runners"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewRunner(ctx, "basicRunner", &gitlab.RunnerArgs{ -// RegistrationToken: myGroup.RunnersToken, -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewRunner(ctx, "taggedOnly", &gitlab.RunnerArgs{ -// RegistrationToken: myGroup.RunnersToken, -// Description: pulumi.String("I only run tagged jobs"), -// RunUntagged: pulumi.Bool(false), -// TagLists: pulumi.StringArray{ -// pulumi.String("tag_one"), -// pulumi.String("tag_two"), -// }, -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewRunner(ctx, "protected", &gitlab.RunnerArgs{ -// RegistrationToken: myGroup.RunnersToken, -// Description: pulumi.String("I only run protected jobs"), -// AccessLevel: pulumi.String("ref_protected"), -// }) -// if err != nil { -// return err -// } -// myCustomGroup, err := gitlab.NewGroup(ctx, "myCustomGroup", &gitlab.GroupArgs{ -// Description: pulumi.String("group that holds the custom runners"), -// }) -// if err != nil { -// return err -// } -// myRunner, err := gitlab.NewRunner(ctx, "myRunner", &gitlab.RunnerArgs{ -// RegistrationToken: myCustomGroup.RunnersToken, -// }) -// if err != nil { -// return err -// } -// _, err = local.NewFile(ctx, "config", &local.FileArgs{ -// Filename: pulumi.String(fmt.Sprintf("%v/config.toml", path.Module)), -// Content: myRunner.AuthenticationToken.ApplyT(func(authenticationToken string) (string, error) { -// return fmt.Sprintf(` concurrent = 1 -// -// [[runners]] -// name = "Hello Terraform" -// url = "https://example.gitlab.com/" -// token = "%v" -// executor = "shell" -// -// `, authenticationToken), nil -// -// }).(pulumi.StringOutput), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // # A GitLab Runner can be imported using the runner's ID, eg diff --git a/sdk/go/gitlab/serviceCustomIssueTracker.go b/sdk/go/gitlab/serviceCustomIssueTracker.go index 3c916f0f..f64e62a1 100644 --- a/sdk/go/gitlab/serviceCustomIssueTracker.go +++ b/sdk/go/gitlab/serviceCustomIssueTracker.go @@ -19,41 +19,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#custom-issue-tracker) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// awesomeProject, err := gitlab.NewProject(ctx, "awesomeProject", &gitlab.ProjectArgs{ -// Description: pulumi.String("My awesome project."), -// VisibilityLevel: pulumi.String("public"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewServiceCustomIssueTracker(ctx, "tracker", &gitlab.ServiceCustomIssueTrackerArgs{ -// Project: awesomeProject.ID(), -// ProjectUrl: pulumi.String("https://customtracker.com/issues"), -// IssuesUrl: pulumi.String("https://customtracker.com/TEST-:id"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // You can import a gitlab_service_custom_issue_tracker state using the project ID, e.g. diff --git a/sdk/go/gitlab/serviceEmailsOnPush.go b/sdk/go/gitlab/serviceEmailsOnPush.go index 3ec0d74b..1c94eb4f 100644 --- a/sdk/go/gitlab/serviceEmailsOnPush.go +++ b/sdk/go/gitlab/serviceEmailsOnPush.go @@ -19,40 +19,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#emails-on-push) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// awesomeProject, err := gitlab.NewProject(ctx, "awesomeProject", &gitlab.ProjectArgs{ -// Description: pulumi.String("My awesome project."), -// VisibilityLevel: pulumi.String("public"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewServiceEmailsOnPush(ctx, "emails", &gitlab.ServiceEmailsOnPushArgs{ -// Project: awesomeProject.ID(), -// Recipients: pulumi.String("myrecipient@example.com myotherrecipient@example.com"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // You can import a gitlab_service_emails_on_push state using the project ID, e.g. diff --git a/sdk/go/gitlab/serviceExternalWiki.go b/sdk/go/gitlab/serviceExternalWiki.go index f52ecf93..01f206af 100644 --- a/sdk/go/gitlab/serviceExternalWiki.go +++ b/sdk/go/gitlab/serviceExternalWiki.go @@ -19,40 +19,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#external-wiki) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// awesomeProject, err := gitlab.NewProject(ctx, "awesomeProject", &gitlab.ProjectArgs{ -// Description: pulumi.String("My awesome project."), -// VisibilityLevel: pulumi.String("public"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewServiceExternalWiki(ctx, "wiki", &gitlab.ServiceExternalWikiArgs{ -// Project: awesomeProject.ID(), -// ExternalWikiUrl: pulumi.String("https://MyAwesomeExternalWikiURL.com"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // You can import a gitlab_service_external_wiki state using the project ID, e.g. diff --git a/sdk/go/gitlab/serviceGithub.go b/sdk/go/gitlab/serviceGithub.go index 57f0466b..ab20327b 100644 --- a/sdk/go/gitlab/serviceGithub.go +++ b/sdk/go/gitlab/serviceGithub.go @@ -21,41 +21,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#github) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// awesomeProject, err := gitlab.NewProject(ctx, "awesomeProject", &gitlab.ProjectArgs{ -// Description: pulumi.String("My awesome project."), -// VisibilityLevel: pulumi.String("public"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewServiceGithub(ctx, "github", &gitlab.ServiceGithubArgs{ -// Project: awesomeProject.ID(), -// Token: pulumi.String("REDACTED"), -// RepositoryUrl: pulumi.String("https://github.com/gitlabhq/terraform-provider-gitlab"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // ```sh diff --git a/sdk/go/gitlab/serviceJira.go b/sdk/go/gitlab/serviceJira.go index c7a0e1f8..2e67e30a 100644 --- a/sdk/go/gitlab/serviceJira.go +++ b/sdk/go/gitlab/serviceJira.go @@ -19,42 +19,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/services.html#jira) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// awesomeProject, err := gitlab.NewProject(ctx, "awesomeProject", &gitlab.ProjectArgs{ -// Description: pulumi.String("My awesome project."), -// VisibilityLevel: pulumi.String("public"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewServiceJira(ctx, "jira", &gitlab.ServiceJiraArgs{ -// Project: awesomeProject.ID(), -// Url: pulumi.String("https://jira.example.com"), -// Username: pulumi.String("user"), -// Password: pulumi.String("mypass"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // You can import a gitlab_service_jira state using the project ID, e.g. diff --git a/sdk/go/gitlab/serviceMicrosoftTeams.go b/sdk/go/gitlab/serviceMicrosoftTeams.go index b7753987..3ce4dd6b 100644 --- a/sdk/go/gitlab/serviceMicrosoftTeams.go +++ b/sdk/go/gitlab/serviceMicrosoftTeams.go @@ -19,41 +19,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#microsoft-teams) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// awesomeProject, err := gitlab.NewProject(ctx, "awesomeProject", &gitlab.ProjectArgs{ -// Description: pulumi.String("My awesome project."), -// VisibilityLevel: pulumi.String("public"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewServiceMicrosoftTeams(ctx, "teams", &gitlab.ServiceMicrosoftTeamsArgs{ -// Project: awesomeProject.ID(), -// Webhook: pulumi.String("https://testurl.com/?token=XYZ"), -// PushEvents: pulumi.Bool(true), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // You can import a gitlab_service_microsoft_teams state using the project ID, e.g. diff --git a/sdk/go/gitlab/servicePipelinesEmail.go b/sdk/go/gitlab/servicePipelinesEmail.go index 8c3f3871..80217c78 100644 --- a/sdk/go/gitlab/servicePipelinesEmail.go +++ b/sdk/go/gitlab/servicePipelinesEmail.go @@ -19,44 +19,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#pipeline-emails) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// awesomeProject, err := gitlab.NewProject(ctx, "awesomeProject", &gitlab.ProjectArgs{ -// Description: pulumi.String("My awesome project."), -// VisibilityLevel: pulumi.String("public"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewServicePipelinesEmail(ctx, "email", &gitlab.ServicePipelinesEmailArgs{ -// Project: awesomeProject.ID(), -// Recipients: pulumi.StringArray{ -// pulumi.String("gitlab@user.create"), -// }, -// NotifyOnlyBrokenPipelines: pulumi.Bool(true), -// BranchesToBeNotified: pulumi.String("all"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // You can import a gitlab_service_pipelines_email state using the project ID, e.g. diff --git a/sdk/go/gitlab/serviceSlack.go b/sdk/go/gitlab/serviceSlack.go index b8efd489..7ef2c121 100644 --- a/sdk/go/gitlab/serviceSlack.go +++ b/sdk/go/gitlab/serviceSlack.go @@ -19,43 +19,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#slack-notifications) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// awesomeProject, err := gitlab.NewProject(ctx, "awesomeProject", &gitlab.ProjectArgs{ -// Description: pulumi.String("My awesome project."), -// VisibilityLevel: pulumi.String("public"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewServiceSlack(ctx, "slack", &gitlab.ServiceSlackArgs{ -// Project: awesomeProject.ID(), -// Webhook: pulumi.String("https://webhook.com"), -// Username: pulumi.String("myuser"), -// PushEvents: pulumi.Bool(true), -// PushChannel: pulumi.String("push_chan"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // You can import a gitlab_service_slack.slack state using the project ID, e.g. diff --git a/sdk/go/gitlab/systemHook.go b/sdk/go/gitlab/systemHook.go index 15028a06..e6db8e0f 100644 --- a/sdk/go/gitlab/systemHook.go +++ b/sdk/go/gitlab/systemHook.go @@ -19,38 +19,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/system_hooks.html) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.NewSystemHook(ctx, "example", &gitlab.SystemHookArgs{ -// EnableSslVerification: pulumi.Bool(true), -// MergeRequestsEvents: pulumi.Bool(true), -// PushEvents: pulumi.Bool(true), -// RepositoryUpdateEvents: pulumi.Bool(true), -// TagPushEvents: pulumi.Bool(true), -// Token: pulumi.String("secret-token"), -// Url: pulumi.String("https://example.com/hook-%d"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // You can import a system hook using the hook id `{hook-id}`, e.g. diff --git a/sdk/go/gitlab/tagProtection.go b/sdk/go/gitlab/tagProtection.go index 17348a3b..1c693c13 100644 --- a/sdk/go/gitlab/tagProtection.go +++ b/sdk/go/gitlab/tagProtection.go @@ -13,42 +13,6 @@ import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumix" ) -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.NewTagProtection(ctx, "tagProtect", &gitlab.TagProtectionArgs{ -// AllowedToCreates: gitlab.TagProtectionAllowedToCreateArray{ -// &gitlab.TagProtectionAllowedToCreateArgs{ -// UserId: pulumi.Int(42), -// }, -// &gitlab.TagProtectionAllowedToCreateArgs{ -// GroupId: pulumi.Int(43), -// }, -// }, -// CreateAccessLevel: pulumi.String("developer"), -// Project: pulumi.String("12345"), -// Tag: pulumi.String("TagProtected"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // Tag protections can be imported using an id made up of `project_id:tag_name`, e.g. diff --git a/sdk/go/gitlab/user.go b/sdk/go/gitlab/user.go index 831e257a..514e587d 100644 --- a/sdk/go/gitlab/user.go +++ b/sdk/go/gitlab/user.go @@ -21,39 +21,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/users.html) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.NewUser(ctx, "example", &gitlab.UserArgs{ -// CanCreateGroup: pulumi.Bool(false), -// Email: pulumi.String("gitlab@user.create"), -// IsAdmin: pulumi.Bool(true), -// IsExternal: pulumi.Bool(true), -// Password: pulumi.String("superPassword"), -// ProjectsLimit: pulumi.Int(4), -// ResetPassword: pulumi.Bool(false), -// Username: pulumi.String("example"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // ```sh diff --git a/sdk/go/gitlab/userCustomAttribute.go b/sdk/go/gitlab/userCustomAttribute.go index 9ac70ee4..215cb4fe 100644 --- a/sdk/go/gitlab/userCustomAttribute.go +++ b/sdk/go/gitlab/userCustomAttribute.go @@ -17,34 +17,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/custom_attributes.html) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := gitlab.NewUserCustomAttribute(ctx, "attr", &gitlab.UserCustomAttributeArgs{ -// Key: pulumi.String("location"), -// User: pulumi.Int(42), -// Value: pulumi.String("Greenland"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // You can import a user custom attribute using an id made up of `{user-id}:{key}`, e.g. diff --git a/sdk/go/gitlab/userGpgKey.go b/sdk/go/gitlab/userGpgKey.go index 678681b4..9e504d8e 100644 --- a/sdk/go/gitlab/userGpgKey.go +++ b/sdk/go/gitlab/userGpgKey.go @@ -19,45 +19,6 @@ import ( // // **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/users.html#get-a-specific-gpg-key) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// exampleUser, err := gitlab.LookupUser(ctx, &gitlab.LookupUserArgs{ -// Username: pulumi.StringRef("example-user"), -// }, nil) -// if err != nil { -// return err -// } -// _, err = gitlab.NewUserGpgKey(ctx, "exampleUserGpgKey", &gitlab.UserGpgKeyArgs{ -// UserId: *pulumi.String(exampleUser.Id), -// Key: pulumi.String("-----BEGIN PGP PUBLIC KEY BLOCK-----\n...\n-----END PGP PUBLIC KEY BLOCK-----"), -// }) -// if err != nil { -// return err -// } -// _, err = gitlab.NewUserGpgKey(ctx, "exampleUserUserGpgKey", &gitlab.UserGpgKeyArgs{ -// Key: pulumi.String("-----BEGIN PGP PUBLIC KEY BLOCK-----\n...\n-----END PGP PUBLIC KEY BLOCK-----"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // You can import a GPG key for a specific user using an id made up of `{user-id}:{key}`, e.g. diff --git a/sdk/go/gitlab/userSshKey.go b/sdk/go/gitlab/userSshKey.go index 2104382e..2cc1b5d7 100644 --- a/sdk/go/gitlab/userSshKey.go +++ b/sdk/go/gitlab/userSshKey.go @@ -17,41 +17,6 @@ import ( // // **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/users.html#single-ssh-key) // -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// exampleUser, err := gitlab.LookupUser(ctx, &gitlab.LookupUserArgs{ -// Username: pulumi.StringRef("example-user"), -// }, nil) -// if err != nil { -// return err -// } -// _, err = gitlab.NewUserSshKey(ctx, "exampleUserSshKey", &gitlab.UserSshKeyArgs{ -// UserId: *pulumi.String(exampleUser.Id), -// Title: pulumi.String("example-key"), -// Key: pulumi.String("ssh-ed25519 AAAA..."), -// ExpiresAt: pulumi.String("2016-01-21T00:00:00.000Z"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // // You can import a user ssh key using an id made up of `{user-id}:{key}`, e.g. diff --git a/sdk/nodejs/application.ts b/sdk/nodejs/application.ts index 19873415..c03b6d71 100644 --- a/sdk/nodejs/application.ts +++ b/sdk/nodejs/application.ts @@ -12,19 +12,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/applications.html) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const oidc = new gitlab.Application("oidc", { - * confidential: true, - * redirectUrl: "https://mycompany.com", - * scopes: ["openid"], - * }); - * ``` - * * ## Import * * Gitlab applications can be imported with their id, e.g. diff --git a/sdk/nodejs/applicationSettings.ts b/sdk/nodejs/applicationSettings.ts index 1372ed30..3b66fb53 100644 --- a/sdk/nodejs/applicationSettings.ts +++ b/sdk/nodejs/applicationSettings.ts @@ -4,20 +4,6 @@ import * as pulumi from "@pulumi/pulumi"; import * as utilities from "./utilities"; -/** - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * // Set the 2FA settings - * const _this = new gitlab.ApplicationSettings("this", { - * requireTwoFactorAuthentication: true, - * twoFactorGracePeriod: 24, - * }); - * ``` - */ export class ApplicationSettings extends pulumi.CustomResource { /** * Get an existing ApplicationSettings resource's state with the given name, ID, and optional extra diff --git a/sdk/nodejs/branch.ts b/sdk/nodejs/branch.ts index 18703ba7..655c437d 100644 --- a/sdk/nodejs/branch.ts +++ b/sdk/nodejs/branch.ts @@ -11,23 +11,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/branches.html) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * // Create a project for the branch to use - * const exampleProject = new gitlab.Project("exampleProject", { - * description: "An example project", - * namespaceId: gitlab_group.example.id, - * }); - * const exampleBranch = new gitlab.Branch("exampleBranch", { - * ref: "main", - * project: exampleProject.id, - * }); - * ``` - * * ## Import * * Gitlab branches can be imported with a key composed of `:`, e.g. diff --git a/sdk/nodejs/clusterAgent.ts b/sdk/nodejs/clusterAgent.ts index 0e93d1d0..88f19c7b 100644 --- a/sdk/nodejs/clusterAgent.ts +++ b/sdk/nodejs/clusterAgent.ts @@ -18,28 +18,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = new gitlab.ClusterAgent("example", {project: "12345"}); - * // Optionally, configure the agent as described in - * // https://docs.gitlab.com/ee/user/clusters/agent/install/index.html#create-an-agent-configuration-file - * const exampleAgentConfig = new gitlab.RepositoryFile("exampleAgentConfig", { - * project: example.project, - * branch: "main", - * filePath: pulumi.interpolate`.gitlab/agents/${example.name}`, - * content: ` gitops: - * ... - * `, - * authorEmail: "terraform@example.com", - * authorName: "Terraform", - * commitMessage: pulumi.interpolate`feature: add agent config for ${example.name}`, - * }); - * ``` - * * ## Import * * GitLab Agent for Kubernetes can be imported with the following command and the id pattern `:` diff --git a/sdk/nodejs/clusterAgentToken.ts b/sdk/nodejs/clusterAgentToken.ts index 9d1bcc5f..233a6a31 100644 --- a/sdk/nodejs/clusterAgentToken.ts +++ b/sdk/nodejs/clusterAgentToken.ts @@ -13,42 +13,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html#create-an-agent-token) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * import * as helm from "@pulumi/helm"; - * - * // Create token for an agent - * const example = new gitlab.ClusterAgentToken("example", { - * project: "12345", - * agentId: 42, - * description: "some token", - * }); - * const thisProject = gitlab.getProject({ - * pathWithNamespace: "my-org/example", - * }); - * const thisClusterAgent = new gitlab.ClusterAgent("thisClusterAgent", {project: thisProject.then(thisProject => thisProject.id)}); - * const thisClusterAgentToken = new gitlab.ClusterAgentToken("thisClusterAgentToken", { - * project: thisProject.then(thisProject => thisProject.id), - * agentId: thisClusterAgent.agentId, - * description: "Token for the my-agent used with `gitlab-agent` Helm Chart", - * }); - * const gitlabAgent = new helm.index.Helm_release("gitlabAgent", { - * name: "gitlab-agent", - * namespace: "gitlab-agent", - * createNamespace: true, - * repository: "https://charts.gitlab.io", - * chart: "gitlab-agent", - * version: "1.2.0", - * set: [{ - * name: "config.token", - * value: thisClusterAgentToken.token, - * }], - * }); - * ``` - * * ## Import * * A token for a GitLab Agent for Kubernetes can be imported with the following command and the id pattern `::` diff --git a/sdk/nodejs/complianceFramework.ts b/sdk/nodejs/complianceFramework.ts index 1d1d27d1..bd271d61 100644 --- a/sdk/nodejs/complianceFramework.ts +++ b/sdk/nodejs/complianceFramework.ts @@ -15,21 +15,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab GraphQL API docs](https://docs.gitlab.com/ee/api/graphql/reference/#mutationcreatecomplianceframework) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const sample = new gitlab.ComplianceFramework("sample", { - * color: "#87BEEF", - * "default": false, - * description: "A HIPAA Compliance Framework", - * namespacePath: "top-level-group", - * pipelineConfigurationFullPath: ".hipaa.yml@top-level-group/compliance-frameworks", - * }); - * ``` - * * ## Import * * Gitlab compliance frameworks can be imported with a key composed of `:`, e.g. diff --git a/sdk/nodejs/deployKey.ts b/sdk/nodejs/deployKey.ts index 604824b6..550ab922 100644 --- a/sdk/nodejs/deployKey.ts +++ b/sdk/nodejs/deployKey.ts @@ -11,19 +11,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/deploy_keys.html) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = new gitlab.DeployKey("example", { - * key: "ssh-ed25519 AAAA...", - * project: "example/deploying", - * title: "Example deploy key", - * }); - * ``` - * * ## Import * * GitLab deploy keys can be imported using an id made up of `{project_id}:{deploy_key_id}`, e.g. `project_id` can be whatever the [get single project api][get_single_project] takes for its `:id` value, so for example diff --git a/sdk/nodejs/deployKeyEnable.ts b/sdk/nodejs/deployKeyEnable.ts index 3fe75af1..9d674712 100644 --- a/sdk/nodejs/deployKeyEnable.ts +++ b/sdk/nodejs/deployKeyEnable.ts @@ -9,29 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/deploy_keys.html#enable-a-deploy-key) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * // A repo to host the deployment key - * const parentProject = new gitlab.Project("parentProject", {}); - * // A second repo to use the deployment key from the parent project - * const fooProject = new gitlab.Project("fooProject", {}); - * // Upload a deployment key for the parent repo - * const parentDeployKey = new gitlab.DeployKey("parentDeployKey", { - * project: parentProject.id, - * title: "Example deploy key", - * key: "ssh-ed25519 AAAA...", - * }); - * // Enable the deployment key on the second repo - * const fooDeployKeyEnable = new gitlab.DeployKeyEnable("fooDeployKeyEnable", { - * project: fooProject.id, - * keyId: parentDeployKey.deployKeyId, - * }); - * ``` - * * ## Import * * GitLab enabled deploy keys can be imported using an id made up of `{project_id}:{deploy_key_id}`, e.g. `project_id` can be whatever the [get single project api][get_single_project] takes for its `:id` value, so for example diff --git a/sdk/nodejs/getBranch.ts b/sdk/nodejs/getBranch.ts index d3f09177..37ca8d13 100644 --- a/sdk/nodejs/getBranch.ts +++ b/sdk/nodejs/getBranch.ts @@ -10,18 +10,6 @@ import * as utilities from "./utilities"; * The `gitlab.Branch` data source allows details of a repository branch to be retrieved by its name and project. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/branches.html#get-single-repository-branch) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const foo = gitlab.getBranch({ - * name: "example", - * project: "foo/bar", - * }); - * ``` */ export function getBranch(args: GetBranchArgs, opts?: pulumi.InvokeOptions): Promise { @@ -99,18 +87,6 @@ export interface GetBranchResult { * The `gitlab.Branch` data source allows details of a repository branch to be retrieved by its name and project. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/branches.html#get-single-repository-branch) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const foo = gitlab.getBranch({ - * name: "example", - * project: "foo/bar", - * }); - * ``` */ export function getBranchOutput(args: GetBranchOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getBranch(a, opts)) diff --git a/sdk/nodejs/getClusterAgent.ts b/sdk/nodejs/getClusterAgent.ts index 731a4c68..4b8cf71d 100644 --- a/sdk/nodejs/getClusterAgent.ts +++ b/sdk/nodejs/getClusterAgent.ts @@ -10,18 +10,6 @@ import * as utilities from "./utilities"; * > Requires at least GitLab 14.10 * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getClusterAgent({ - * agentId: 1, - * project: "12345", - * }); - * ``` */ export function getClusterAgent(args: GetClusterAgentArgs, opts?: pulumi.InvokeOptions): Promise { @@ -81,18 +69,6 @@ export interface GetClusterAgentResult { * > Requires at least GitLab 14.10 * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getClusterAgent({ - * agentId: 1, - * project: "12345", - * }); - * ``` */ export function getClusterAgentOutput(args: GetClusterAgentOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getClusterAgent(a, opts)) diff --git a/sdk/nodejs/getClusterAgents.ts b/sdk/nodejs/getClusterAgents.ts index e613955b..089c009d 100644 --- a/sdk/nodejs/getClusterAgents.ts +++ b/sdk/nodejs/getClusterAgents.ts @@ -12,17 +12,6 @@ import * as utilities from "./utilities"; * > Requires at least GitLab 14.10 * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const agents = gitlab.getClusterAgents({ - * project: "12345", - * }); - * ``` */ export function getClusterAgents(args: GetClusterAgentsArgs, opts?: pulumi.InvokeOptions): Promise { @@ -62,17 +51,6 @@ export interface GetClusterAgentsResult { * > Requires at least GitLab 14.10 * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const agents = gitlab.getClusterAgents({ - * project: "12345", - * }); - * ``` */ export function getClusterAgentsOutput(args: GetClusterAgentsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getClusterAgents(a, opts)) diff --git a/sdk/nodejs/getCurrentUser.ts b/sdk/nodejs/getCurrentUser.ts index 723616ff..f41a0456 100644 --- a/sdk/nodejs/getCurrentUser.ts +++ b/sdk/nodejs/getCurrentUser.ts @@ -8,15 +8,6 @@ import * as utilities from "./utilities"; * The `gitlab.getCurrentUser` data source allows details of the current user (determined by `token` provider attribute) to be retrieved. * * **Upstream API**: [GitLab GraphQL API docs](https://docs.gitlab.com/ee/api/graphql/reference/index.html#querycurrentuser) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getCurrentUser({}); - * ``` */ export function getCurrentUser(opts?: pulumi.InvokeOptions): Promise { @@ -70,15 +61,6 @@ export interface GetCurrentUserResult { * The `gitlab.getCurrentUser` data source allows details of the current user (determined by `token` provider attribute) to be retrieved. * * **Upstream API**: [GitLab GraphQL API docs](https://docs.gitlab.com/ee/api/graphql/reference/index.html#querycurrentuser) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getCurrentUser({}); - * ``` */ export function getCurrentUserOutput(opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(getCurrentUser(opts)) diff --git a/sdk/nodejs/getGroup.ts b/sdk/nodejs/getGroup.ts index e67bb7f4..8a7f69ef 100644 --- a/sdk/nodejs/getGroup.ts +++ b/sdk/nodejs/getGroup.ts @@ -8,17 +8,6 @@ import * as utilities from "./utilities"; * The `gitlab.Group` data source allows details of a group to be retrieved by its id or full path. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#details-of-a-group) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const foo = gitlab.getGroup({ - * fullPath: "foo/bar", - * }); - * ``` */ export function getGroup(args?: GetGroupArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; @@ -129,17 +118,6 @@ export interface GetGroupResult { * The `gitlab.Group` data source allows details of a group to be retrieved by its id or full path. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#details-of-a-group) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const foo = gitlab.getGroup({ - * fullPath: "foo/bar", - * }); - * ``` */ export function getGroupOutput(args?: GetGroupOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getGroup(a, opts)) diff --git a/sdk/nodejs/getGroupMembership.ts b/sdk/nodejs/getGroupMembership.ts index 13a67aee..92349add 100644 --- a/sdk/nodejs/getGroupMembership.ts +++ b/sdk/nodejs/getGroupMembership.ts @@ -10,17 +10,6 @@ import * as utilities from "./utilities"; * The `gitlab.GroupMembership` data source allows to list and filter all members of a group specified by either its id or full path. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/members.html#list-all-members-of-a-group-or-project) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getGroupMembership({ - * fullPath: "foo/bar", - * }); - * ``` */ export function getGroupMembership(args?: GetGroupMembershipArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; @@ -86,17 +75,6 @@ export interface GetGroupMembershipResult { * The `gitlab.GroupMembership` data source allows to list and filter all members of a group specified by either its id or full path. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/members.html#list-all-members-of-a-group-or-project) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getGroupMembership({ - * fullPath: "foo/bar", - * }); - * ``` */ export function getGroupMembershipOutput(args?: GetGroupMembershipOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getGroupMembership(a, opts)) diff --git a/sdk/nodejs/getGroupSubgroups.ts b/sdk/nodejs/getGroupSubgroups.ts index fbc02e80..798260fa 100644 --- a/sdk/nodejs/getGroupSubgroups.ts +++ b/sdk/nodejs/getGroupSubgroups.ts @@ -10,18 +10,6 @@ import * as utilities from "./utilities"; * The `gitlab.getGroupSubgroups` data source allows to get subgroups of a group. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#list-a-groups-subgroups) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const subgroupsGroupSubgroups = gitlab.getGroupSubgroups({ - * groupId: 123456, - * }); - * export const subgroups = subgroupsGroupSubgroups; - * ``` */ export function getGroupSubgroups(args: GetGroupSubgroupsArgs, opts?: pulumi.InvokeOptions): Promise { @@ -137,18 +125,6 @@ export interface GetGroupSubgroupsResult { * The `gitlab.getGroupSubgroups` data source allows to get subgroups of a group. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#list-a-groups-subgroups) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const subgroupsGroupSubgroups = gitlab.getGroupSubgroups({ - * groupId: 123456, - * }); - * export const subgroups = subgroupsGroupSubgroups; - * ``` */ export function getGroupSubgroupsOutput(args: GetGroupSubgroupsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getGroupSubgroups(a, opts)) diff --git a/sdk/nodejs/getGroupVariable.ts b/sdk/nodejs/getGroupVariable.ts index 70c7e967..e9b09a0b 100644 --- a/sdk/nodejs/getGroupVariable.ts +++ b/sdk/nodejs/getGroupVariable.ts @@ -8,23 +8,6 @@ import * as utilities from "./utilities"; * The `gitlab.GroupVariable` data source allows to retrieve details about a group-level CI/CD variable. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_level_variables.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const foo = gitlab.getGroupVariable({ - * group: "my/example/group", - * key: "foo", - * }); - * const bar = gitlab.getGroupVariable({ - * environmentScope: "staging/*", - * group: "my/example/group", - * key: "bar", - * }); - * ``` */ export function getGroupVariable(args: GetGroupVariableArgs, opts?: pulumi.InvokeOptions): Promise { @@ -99,23 +82,6 @@ export interface GetGroupVariableResult { * The `gitlab.GroupVariable` data source allows to retrieve details about a group-level CI/CD variable. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_level_variables.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const foo = gitlab.getGroupVariable({ - * group: "my/example/group", - * key: "foo", - * }); - * const bar = gitlab.getGroupVariable({ - * environmentScope: "staging/*", - * group: "my/example/group", - * key: "bar", - * }); - * ``` */ export function getGroupVariableOutput(args: GetGroupVariableOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getGroupVariable(a, opts)) diff --git a/sdk/nodejs/getGroupVariables.ts b/sdk/nodejs/getGroupVariables.ts index c3b0589f..a9356255 100644 --- a/sdk/nodejs/getGroupVariables.ts +++ b/sdk/nodejs/getGroupVariables.ts @@ -10,21 +10,6 @@ import * as utilities from "./utilities"; * The `gitlab.getGroupVariables` data source allows to retrieve all group-level CI/CD variables. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_level_variables.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const vars = gitlab.getGroupVariables({ - * group: "my/example/group", - * }); - * const stagingVars = gitlab.getGroupVariables({ - * environmentScope: "staging/*", - * group: "my/example/group", - * }); - * ``` */ export function getGroupVariables(args: GetGroupVariablesArgs, opts?: pulumi.InvokeOptions): Promise { @@ -68,21 +53,6 @@ export interface GetGroupVariablesResult { * The `gitlab.getGroupVariables` data source allows to retrieve all group-level CI/CD variables. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_level_variables.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const vars = gitlab.getGroupVariables({ - * group: "my/example/group", - * }); - * const stagingVars = gitlab.getGroupVariables({ - * environmentScope: "staging/*", - * group: "my/example/group", - * }); - * ``` */ export function getGroupVariablesOutput(args: GetGroupVariablesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getGroupVariables(a, opts)) diff --git a/sdk/nodejs/getGroups.ts b/sdk/nodejs/getGroups.ts index 6d40d3fd..22051b2b 100644 --- a/sdk/nodejs/getGroups.ts +++ b/sdk/nodejs/getGroups.ts @@ -14,21 +14,6 @@ import * as utilities from "./utilities"; * > Some available options require administrator privileges. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#list-groups) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getGroups({ - * orderBy: "name", - * sort: "desc", - * }); - * const example-two = gitlab.getGroups({ - * search: "GitLab", - * }); - * ``` */ export function getGroups(args?: GetGroupsArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; @@ -101,21 +86,6 @@ export interface GetGroupsResult { * > Some available options require administrator privileges. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#list-groups) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getGroups({ - * orderBy: "name", - * sort: "desc", - * }); - * const example-two = gitlab.getGroups({ - * search: "GitLab", - * }); - * ``` */ export function getGroupsOutput(args?: GetGroupsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getGroups(a, opts)) diff --git a/sdk/nodejs/getInstanceDeployKeys.ts b/sdk/nodejs/getInstanceDeployKeys.ts index 366168f4..c869c725 100644 --- a/sdk/nodejs/getInstanceDeployKeys.ts +++ b/sdk/nodejs/getInstanceDeployKeys.ts @@ -12,17 +12,6 @@ import * as utilities from "./utilities"; * > This data source requires administration privileges. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/deploy_keys.html#list-all-deploy-keys) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getInstanceDeployKeys({ - * "public": true, - * }); - * ``` */ export function getInstanceDeployKeys(args?: GetInstanceDeployKeysArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; @@ -66,17 +55,6 @@ export interface GetInstanceDeployKeysResult { * > This data source requires administration privileges. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/deploy_keys.html#list-all-deploy-keys) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getInstanceDeployKeys({ - * "public": true, - * }); - * ``` */ export function getInstanceDeployKeysOutput(args?: GetInstanceDeployKeysOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getInstanceDeployKeys(a, opts)) diff --git a/sdk/nodejs/getInstanceVariable.ts b/sdk/nodejs/getInstanceVariable.ts index 34b80a55..671d42e7 100644 --- a/sdk/nodejs/getInstanceVariable.ts +++ b/sdk/nodejs/getInstanceVariable.ts @@ -8,17 +8,6 @@ import * as utilities from "./utilities"; * The `gitlab.InstanceVariable` data source allows to retrieve details about an instance-level CI/CD variable. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/instance_level_ci_variables.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const foo = gitlab.getInstanceVariable({ - * key: "foo", - * }); - * ``` */ export function getInstanceVariable(args: GetInstanceVariableArgs, opts?: pulumi.InvokeOptions): Promise { @@ -75,17 +64,6 @@ export interface GetInstanceVariableResult { * The `gitlab.InstanceVariable` data source allows to retrieve details about an instance-level CI/CD variable. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/instance_level_ci_variables.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const foo = gitlab.getInstanceVariable({ - * key: "foo", - * }); - * ``` */ export function getInstanceVariableOutput(args: GetInstanceVariableOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getInstanceVariable(a, opts)) diff --git a/sdk/nodejs/getInstanceVariables.ts b/sdk/nodejs/getInstanceVariables.ts index 232e323c..a08f641e 100644 --- a/sdk/nodejs/getInstanceVariables.ts +++ b/sdk/nodejs/getInstanceVariables.ts @@ -10,15 +10,6 @@ import * as utilities from "./utilities"; * The `gitlab.getInstanceVariables` data source allows to retrieve all instance-level CI/CD variables. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/instance_level_ci_variables.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const vars = gitlab.getInstanceVariables({}); - * ``` */ export function getInstanceVariables(opts?: pulumi.InvokeOptions): Promise { @@ -44,15 +35,6 @@ export interface GetInstanceVariablesResult { * The `gitlab.getInstanceVariables` data source allows to retrieve all instance-level CI/CD variables. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/instance_level_ci_variables.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const vars = gitlab.getInstanceVariables({}); - * ``` */ export function getInstanceVariablesOutput(opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(getInstanceVariables(opts)) diff --git a/sdk/nodejs/getMetadata.ts b/sdk/nodejs/getMetadata.ts index c777ff0f..a3aecbb8 100644 --- a/sdk/nodejs/getMetadata.ts +++ b/sdk/nodejs/getMetadata.ts @@ -10,15 +10,6 @@ import * as utilities from "./utilities"; * The `gitlab.getMetadata` data source retrieves the metadata of the GitLab instance. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/metadata.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const this = gitlab.getMetadata({}); - * ``` */ export function getMetadata(opts?: pulumi.InvokeOptions): Promise { @@ -56,15 +47,6 @@ export interface GetMetadataResult { * The `gitlab.getMetadata` data source retrieves the metadata of the GitLab instance. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/metadata.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const this = gitlab.getMetadata({}); - * ``` */ export function getMetadataOutput(opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(getMetadata(opts)) diff --git a/sdk/nodejs/getProject.ts b/sdk/nodejs/getProject.ts index 46cf613d..08c9cd61 100644 --- a/sdk/nodejs/getProject.ts +++ b/sdk/nodejs/getProject.ts @@ -10,17 +10,6 @@ import * as utilities from "./utilities"; * The `gitlab.Project` data source allows details of a project to be retrieved by either its ID or its path with namespace. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#get-single-project) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getProject({ - * pathWithNamespace: "foo/bar/baz", - * }); - * ``` */ export function getProject(args?: GetProjectArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; @@ -317,17 +306,6 @@ export interface GetProjectResult { * The `gitlab.Project` data source allows details of a project to be retrieved by either its ID or its path with namespace. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#get-single-project) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getProject({ - * pathWithNamespace: "foo/bar/baz", - * }); - * ``` */ export function getProjectOutput(args?: GetProjectOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getProject(a, opts)) diff --git a/sdk/nodejs/getProjectBranches.ts b/sdk/nodejs/getProjectBranches.ts index da41a327..e5ddefa9 100644 --- a/sdk/nodejs/getProjectBranches.ts +++ b/sdk/nodejs/getProjectBranches.ts @@ -10,17 +10,6 @@ import * as utilities from "./utilities"; * The `gitlab.getProjectBranches` data source allows details of the branches of a given project to be retrieved. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/branches.html#list-repository-branches) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getProjectBranches({ - * project: "foo/bar/baz", - * }); - * ``` */ export function getProjectBranches(args: GetProjectBranchesArgs, opts?: pulumi.InvokeOptions): Promise { @@ -61,17 +50,6 @@ export interface GetProjectBranchesResult { * The `gitlab.getProjectBranches` data source allows details of the branches of a given project to be retrieved. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/branches.html#list-repository-branches) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getProjectBranches({ - * project: "foo/bar/baz", - * }); - * ``` */ export function getProjectBranchesOutput(args: GetProjectBranchesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getProjectBranches(a, opts)) diff --git a/sdk/nodejs/getProjectHook.ts b/sdk/nodejs/getProjectHook.ts index 00c8a60f..5ade3b2d 100644 --- a/sdk/nodejs/getProjectHook.ts +++ b/sdk/nodejs/getProjectHook.ts @@ -8,21 +8,6 @@ import * as utilities from "./utilities"; * The `gitlab.ProjectHook` data source allows to retrieve details about a hook in a project. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#get-project-hook) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const exampleProject = gitlab.getProject({ - * id: "foo/bar/baz", - * }); - * const exampleProjectHook = exampleProject.then(exampleProject => gitlab.getProjectHook({ - * project: exampleProject.id, - * hookId: 1, - * })); - * ``` */ export function getProjectHook(args: GetProjectHookArgs, opts?: pulumi.InvokeOptions): Promise { @@ -136,21 +121,6 @@ export interface GetProjectHookResult { * The `gitlab.ProjectHook` data source allows to retrieve details about a hook in a project. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#get-project-hook) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const exampleProject = gitlab.getProject({ - * id: "foo/bar/baz", - * }); - * const exampleProjectHook = exampleProject.then(exampleProject => gitlab.getProjectHook({ - * project: exampleProject.id, - * hookId: 1, - * })); - * ``` */ export function getProjectHookOutput(args: GetProjectHookOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getProjectHook(a, opts)) diff --git a/sdk/nodejs/getProjectHooks.ts b/sdk/nodejs/getProjectHooks.ts index e369aef4..b5226a3c 100644 --- a/sdk/nodejs/getProjectHooks.ts +++ b/sdk/nodejs/getProjectHooks.ts @@ -10,20 +10,6 @@ import * as utilities from "./utilities"; * The `gitlab.getProjectHooks` data source allows to retrieve details about hooks in a project. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#list-project-hooks) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getProject({ - * id: "foo/bar/baz", - * }); - * const examples = example.then(example => gitlab.getProjectHooks({ - * project: example.id, - * })); - * ``` */ export function getProjectHooks(args: GetProjectHooksArgs, opts?: pulumi.InvokeOptions): Promise { @@ -61,20 +47,6 @@ export interface GetProjectHooksResult { * The `gitlab.getProjectHooks` data source allows to retrieve details about hooks in a project. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#list-project-hooks) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getProject({ - * id: "foo/bar/baz", - * }); - * const examples = example.then(example => gitlab.getProjectHooks({ - * project: example.id, - * })); - * ``` */ export function getProjectHooksOutput(args: GetProjectHooksOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getProjectHooks(a, opts)) diff --git a/sdk/nodejs/getProjectIssue.ts b/sdk/nodejs/getProjectIssue.ts index 844d4d50..87290bb9 100644 --- a/sdk/nodejs/getProjectIssue.ts +++ b/sdk/nodejs/getProjectIssue.ts @@ -10,22 +10,6 @@ import * as utilities from "./utilities"; * The `gitlab.ProjectIssue` data source allows to retrieve details about an issue in a project. * * **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/issues.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const foo = gitlab.getProject({ - * pathWithNamespace: "foo/bar/baz", - * }); - * const welcomeIssue = foo.then(foo => gitlab.getProjectIssue({ - * project: foo.id, - * iid: 1, - * })); - * export const welcomeIssueWebUrl = data.gitlab_project_issue.web_url; - * ``` */ export function getProjectIssue(args: GetProjectIssueArgs, opts?: pulumi.InvokeOptions): Promise { @@ -219,22 +203,6 @@ export interface GetProjectIssueResult { * The `gitlab.ProjectIssue` data source allows to retrieve details about an issue in a project. * * **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/issues.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const foo = gitlab.getProject({ - * pathWithNamespace: "foo/bar/baz", - * }); - * const welcomeIssue = foo.then(foo => gitlab.getProjectIssue({ - * project: foo.id, - * iid: 1, - * })); - * export const welcomeIssueWebUrl = data.gitlab_project_issue.web_url; - * ``` */ export function getProjectIssueOutput(args: GetProjectIssueOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getProjectIssue(a, opts)) diff --git a/sdk/nodejs/getProjectIssues.ts b/sdk/nodejs/getProjectIssues.ts index 0498a27c..f696c242 100644 --- a/sdk/nodejs/getProjectIssues.ts +++ b/sdk/nodejs/getProjectIssues.ts @@ -10,21 +10,6 @@ import * as utilities from "./utilities"; * The `gitlab.getProjectIssues` data source allows to retrieve details about issues in a project. * * **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/issues.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const foo = gitlab.getProject({ - * id: "foo/bar/baz", - * }); - * const allWithFoo = foo.then(foo => gitlab.getProjectIssues({ - * project: foo.id, - * search: "foo", - * })); - * ``` */ export function getProjectIssues(args: GetProjectIssuesArgs, opts?: pulumi.InvokeOptions): Promise { @@ -269,21 +254,6 @@ export interface GetProjectIssuesResult { * The `gitlab.getProjectIssues` data source allows to retrieve details about issues in a project. * * **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/issues.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const foo = gitlab.getProject({ - * id: "foo/bar/baz", - * }); - * const allWithFoo = foo.then(foo => gitlab.getProjectIssues({ - * project: foo.id, - * search: "foo", - * })); - * ``` */ export function getProjectIssuesOutput(args: GetProjectIssuesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getProjectIssues(a, opts)) diff --git a/sdk/nodejs/getProjectMembership.ts b/sdk/nodejs/getProjectMembership.ts index 4f681f5c..317fd4b1 100644 --- a/sdk/nodejs/getProjectMembership.ts +++ b/sdk/nodejs/getProjectMembership.ts @@ -12,18 +12,6 @@ import * as utilities from "./utilities"; * > **Note** exactly one of projectId or fullPath must be provided. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/members.html#list-all-members-of-a-group-or-project) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getProjectMembership({ - * inherited: true, - * projectId: 123, - * }); - * ``` */ export function getProjectMembership(args?: GetProjectMembershipArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; @@ -94,18 +82,6 @@ export interface GetProjectMembershipResult { * > **Note** exactly one of projectId or fullPath must be provided. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/members.html#list-all-members-of-a-group-or-project) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getProjectMembership({ - * inherited: true, - * projectId: 123, - * }); - * ``` */ export function getProjectMembershipOutput(args?: GetProjectMembershipOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getProjectMembership(a, opts)) diff --git a/sdk/nodejs/getProjectMilestone.ts b/sdk/nodejs/getProjectMilestone.ts index a76263b7..d8e631e6 100644 --- a/sdk/nodejs/getProjectMilestone.ts +++ b/sdk/nodejs/getProjectMilestone.ts @@ -8,18 +8,6 @@ import * as utilities from "./utilities"; * The `gitlab.ProjectMilestone` data source allows get details of a project milestone. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/milestones.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getProjectMilestone({ - * milestoneId: 10, - * project: "foo/bar", - * }); - * ``` */ export function getProjectMilestone(args: GetProjectMilestoneArgs, opts?: pulumi.InvokeOptions): Promise { @@ -109,18 +97,6 @@ export interface GetProjectMilestoneResult { * The `gitlab.ProjectMilestone` data source allows get details of a project milestone. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/milestones.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getProjectMilestone({ - * milestoneId: 10, - * project: "foo/bar", - * }); - * ``` */ export function getProjectMilestoneOutput(args: GetProjectMilestoneOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getProjectMilestone(a, opts)) diff --git a/sdk/nodejs/getProjectMilestones.ts b/sdk/nodejs/getProjectMilestones.ts index 77b0ce68..230540c1 100644 --- a/sdk/nodejs/getProjectMilestones.ts +++ b/sdk/nodejs/getProjectMilestones.ts @@ -10,17 +10,6 @@ import * as utilities from "./utilities"; * The `gitlab.getProjectMilestones` data source allows get details of a project milestones. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/milestones.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getProjectMilestones({ - * project: "foo/bar", - * }); - * ``` */ export function getProjectMilestones(args: GetProjectMilestonesArgs, opts?: pulumi.InvokeOptions): Promise { @@ -97,17 +86,6 @@ export interface GetProjectMilestonesResult { * The `gitlab.getProjectMilestones` data source allows get details of a project milestones. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/milestones.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getProjectMilestones({ - * project: "foo/bar", - * }); - * ``` */ export function getProjectMilestonesOutput(args: GetProjectMilestonesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getProjectMilestones(a, opts)) diff --git a/sdk/nodejs/getProjectProtectedBranch.ts b/sdk/nodejs/getProjectProtectedBranch.ts index 75307005..7b2262a2 100644 --- a/sdk/nodejs/getProjectProtectedBranch.ts +++ b/sdk/nodejs/getProjectProtectedBranch.ts @@ -10,18 +10,6 @@ import * as utilities from "./utilities"; * The `gitlabProtectedBranch` data source allows details of a protected branch to be retrieved by its name and the project it belongs to. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/protected_branches.html#get-a-single-protected-branch-or-wildcard-protected-branch) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getProjectProtectedBranch({ - * name: "main", - * projectId: "foo/bar/baz", - * }); - * ``` */ export function getProjectProtectedBranch(args: GetProjectProtectedBranchArgs, opts?: pulumi.InvokeOptions): Promise { @@ -83,18 +71,6 @@ export interface GetProjectProtectedBranchResult { * The `gitlabProtectedBranch` data source allows details of a protected branch to be retrieved by its name and the project it belongs to. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/protected_branches.html#get-a-single-protected-branch-or-wildcard-protected-branch) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getProjectProtectedBranch({ - * name: "main", - * projectId: "foo/bar/baz", - * }); - * ``` */ export function getProjectProtectedBranchOutput(args: GetProjectProtectedBranchOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getProjectProtectedBranch(a, opts)) diff --git a/sdk/nodejs/getProjectProtectedBranches.ts b/sdk/nodejs/getProjectProtectedBranches.ts index 9d2f47fa..e64877b9 100644 --- a/sdk/nodejs/getProjectProtectedBranches.ts +++ b/sdk/nodejs/getProjectProtectedBranches.ts @@ -10,17 +10,6 @@ import * as utilities from "./utilities"; * The `gitlab.getProjectProtectedBranches` data source allows details of the protected branches of a given project. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/protected_branches.html#list-protected-branches) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getProjectProtectedBranches({ - * projectId: "foo/bar/baz", - * }); - * ``` */ export function getProjectProtectedBranches(args: GetProjectProtectedBranchesArgs, opts?: pulumi.InvokeOptions): Promise { @@ -61,17 +50,6 @@ export interface GetProjectProtectedBranchesResult { * The `gitlab.getProjectProtectedBranches` data source allows details of the protected branches of a given project. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/protected_branches.html#list-protected-branches) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getProjectProtectedBranches({ - * projectId: "foo/bar/baz", - * }); - * ``` */ export function getProjectProtectedBranchesOutput(args: GetProjectProtectedBranchesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getProjectProtectedBranches(a, opts)) diff --git a/sdk/nodejs/getProjectTag.ts b/sdk/nodejs/getProjectTag.ts index 13562b33..61fae180 100644 --- a/sdk/nodejs/getProjectTag.ts +++ b/sdk/nodejs/getProjectTag.ts @@ -10,18 +10,6 @@ import * as utilities from "./utilities"; * The `gitlab.ProjectTag` data source allows details of a project tag to be retrieved by its name. * * **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/tags.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const foo = gitlab.getProjectTag({ - * name: "example", - * project: "foo/bar", - * }); - * ``` */ export function getProjectTag(args: GetProjectTagArgs, opts?: pulumi.InvokeOptions): Promise { @@ -87,18 +75,6 @@ export interface GetProjectTagResult { * The `gitlab.ProjectTag` data source allows details of a project tag to be retrieved by its name. * * **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/tags.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const foo = gitlab.getProjectTag({ - * name: "example", - * project: "foo/bar", - * }); - * ``` */ export function getProjectTagOutput(args: GetProjectTagOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getProjectTag(a, opts)) diff --git a/sdk/nodejs/getProjectTags.ts b/sdk/nodejs/getProjectTags.ts index 95530d1e..0c743fc1 100644 --- a/sdk/nodejs/getProjectTags.ts +++ b/sdk/nodejs/getProjectTags.ts @@ -10,17 +10,6 @@ import * as utilities from "./utilities"; * The `gitlab.getProjectTags` data source allows details of project tags to be retrieved by some search criteria. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/tags.html#list-project-repository-tags) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getProjectTags({ - * project: "foo/bar", - * }); - * ``` */ export function getProjectTags(args: GetProjectTagsArgs, opts?: pulumi.InvokeOptions): Promise { @@ -88,17 +77,6 @@ export interface GetProjectTagsResult { * The `gitlab.getProjectTags` data source allows details of project tags to be retrieved by some search criteria. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/tags.html#list-project-repository-tags) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getProjectTags({ - * project: "foo/bar", - * }); - * ``` */ export function getProjectTagsOutput(args: GetProjectTagsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getProjectTags(a, opts)) diff --git a/sdk/nodejs/getProjectVariable.ts b/sdk/nodejs/getProjectVariable.ts index eaa0e941..b766731b 100644 --- a/sdk/nodejs/getProjectVariable.ts +++ b/sdk/nodejs/getProjectVariable.ts @@ -8,23 +8,6 @@ import * as utilities from "./utilities"; * The `gitlab.ProjectVariable` data source allows to retrieve details about a project-level CI/CD variable. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/project_level_variables.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const foo = gitlab.getProjectVariable({ - * key: "foo", - * project: "my/example/project", - * }); - * const bar = gitlab.getProjectVariable({ - * environmentScope: "staging/*", - * key: "bar", - * project: "my/example/project", - * }); - * ``` */ export function getProjectVariable(args: GetProjectVariableArgs, opts?: pulumi.InvokeOptions): Promise { @@ -99,23 +82,6 @@ export interface GetProjectVariableResult { * The `gitlab.ProjectVariable` data source allows to retrieve details about a project-level CI/CD variable. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/project_level_variables.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const foo = gitlab.getProjectVariable({ - * key: "foo", - * project: "my/example/project", - * }); - * const bar = gitlab.getProjectVariable({ - * environmentScope: "staging/*", - * key: "bar", - * project: "my/example/project", - * }); - * ``` */ export function getProjectVariableOutput(args: GetProjectVariableOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getProjectVariable(a, opts)) diff --git a/sdk/nodejs/getProjectVariables.ts b/sdk/nodejs/getProjectVariables.ts index 37e3cb3f..407a012e 100644 --- a/sdk/nodejs/getProjectVariables.ts +++ b/sdk/nodejs/getProjectVariables.ts @@ -10,21 +10,6 @@ import * as utilities from "./utilities"; * The `gitlab.getProjectVariables` data source allows to retrieve all project-level CI/CD variables. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/project_level_variables.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const vars = gitlab.getProjectVariables({ - * project: "my/example/project", - * }); - * const stagingVars = gitlab.getProjectVariables({ - * environmentScope: "staging/*", - * project: "my/example/project", - * }); - * ``` */ export function getProjectVariables(args: GetProjectVariablesArgs, opts?: pulumi.InvokeOptions): Promise { @@ -68,21 +53,6 @@ export interface GetProjectVariablesResult { * The `gitlab.getProjectVariables` data source allows to retrieve all project-level CI/CD variables. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/project_level_variables.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const vars = gitlab.getProjectVariables({ - * project: "my/example/project", - * }); - * const stagingVars = gitlab.getProjectVariables({ - * environmentScope: "staging/*", - * project: "my/example/project", - * }); - * ``` */ export function getProjectVariablesOutput(args: GetProjectVariablesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getProjectVariables(a, opts)) diff --git a/sdk/nodejs/getProjects.ts b/sdk/nodejs/getProjects.ts index 87d2ef40..3674b76d 100644 --- a/sdk/nodejs/getProjects.ts +++ b/sdk/nodejs/getProjects.ts @@ -14,27 +14,6 @@ import * as utilities from "./utilities"; * > The owner sub-attributes are only populated if the Gitlab token used has an administrator scope. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#list-all-projects) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const mygroup = gitlab.getGroup({ - * fullPath: "mygroup", - * }); - * const groupProjects = mygroup.then(mygroup => gitlab.getProjects({ - * groupId: mygroup.id, - * orderBy: "name", - * includeSubgroups: true, - * withShared: false, - * })); - * const projects = gitlab.getProjects({ - * search: "postgresql", - * visibility: "private", - * }); - * ``` */ export function getProjects(args?: GetProjectsArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; @@ -257,27 +236,6 @@ export interface GetProjectsResult { * > The owner sub-attributes are only populated if the Gitlab token used has an administrator scope. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#list-all-projects) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const mygroup = gitlab.getGroup({ - * fullPath: "mygroup", - * }); - * const groupProjects = mygroup.then(mygroup => gitlab.getProjects({ - * groupId: mygroup.id, - * orderBy: "name", - * includeSubgroups: true, - * withShared: false, - * })); - * const projects = gitlab.getProjects({ - * search: "postgresql", - * visibility: "private", - * }); - * ``` */ export function getProjectsOutput(args?: GetProjectsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getProjects(a, opts)) diff --git a/sdk/nodejs/getReleaseLink.ts b/sdk/nodejs/getReleaseLink.ts index 1a4957a3..c9c3755c 100644 --- a/sdk/nodejs/getReleaseLink.ts +++ b/sdk/nodejs/getReleaseLink.ts @@ -8,19 +8,6 @@ import * as utilities from "./utilities"; * The `gitlab.ReleaseLink` data source allows get details of a release link. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/releases/links.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getReleaseLink({ - * linkId: 11, - * project: "foo/bar", - * tagName: "v1.0.1", - * }); - * ``` */ export function getReleaseLink(args: GetReleaseLinkArgs, opts?: pulumi.InvokeOptions): Promise { @@ -99,19 +86,6 @@ export interface GetReleaseLinkResult { * The `gitlab.ReleaseLink` data source allows get details of a release link. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/releases/links.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getReleaseLink({ - * linkId: 11, - * project: "foo/bar", - * tagName: "v1.0.1", - * }); - * ``` */ export function getReleaseLinkOutput(args: GetReleaseLinkOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getReleaseLink(a, opts)) diff --git a/sdk/nodejs/getReleaseLinks.ts b/sdk/nodejs/getReleaseLinks.ts index 01bc0783..bb9ab17d 100644 --- a/sdk/nodejs/getReleaseLinks.ts +++ b/sdk/nodejs/getReleaseLinks.ts @@ -10,18 +10,6 @@ import * as utilities from "./utilities"; * The `gitlab.getReleaseLinks` data source allows get details of release links. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/releases/links.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getReleaseLinks({ - * project: "foo/bar", - * tagName: "v1.0.1", - * }); - * ``` */ export function getReleaseLinks(args: GetReleaseLinksArgs, opts?: pulumi.InvokeOptions): Promise { @@ -65,18 +53,6 @@ export interface GetReleaseLinksResult { * The `gitlab.getReleaseLinks` data source allows get details of release links. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/releases/links.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getReleaseLinks({ - * project: "foo/bar", - * tagName: "v1.0.1", - * }); - * ``` */ export function getReleaseLinksOutput(args: GetReleaseLinksOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getReleaseLinks(a, opts)) diff --git a/sdk/nodejs/getRepositoryFile.ts b/sdk/nodejs/getRepositoryFile.ts index d62dc5f7..2d20cb99 100644 --- a/sdk/nodejs/getRepositoryFile.ts +++ b/sdk/nodejs/getRepositoryFile.ts @@ -8,19 +8,6 @@ import * as utilities from "./utilities"; * The `gitlab.RepositoryFile` data source allows details of a file in a repository to be retrieved. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/repository_files.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getRepositoryFile({ - * filePath: "README.md", - * project: "example", - * ref: "main", - * }); - * ``` */ export function getRepositoryFile(args: GetRepositoryFileArgs, opts?: pulumi.InvokeOptions): Promise { @@ -111,19 +98,6 @@ export interface GetRepositoryFileResult { * The `gitlab.RepositoryFile` data source allows details of a file in a repository to be retrieved. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/repository_files.html) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getRepositoryFile({ - * filePath: "README.md", - * project: "example", - * ref: "main", - * }); - * ``` */ export function getRepositoryFileOutput(args: GetRepositoryFileOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getRepositoryFile(a, opts)) diff --git a/sdk/nodejs/getRepositoryTree.ts b/sdk/nodejs/getRepositoryTree.ts index e77b7e63..6284bb92 100644 --- a/sdk/nodejs/getRepositoryTree.ts +++ b/sdk/nodejs/getRepositoryTree.ts @@ -10,20 +10,6 @@ import * as utilities from "./utilities"; * The `gitlab.getRepositoryTree` data source allows details of directories and files in a repository to be retrieved. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/repositories.html#list-repository-tree) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const this = gitlab.getRepositoryTree({ - * path: "ExampleSubFolder", - * project: "example", - * recursive: true, - * ref: "main", - * }); - * ``` */ export function getRepositoryTree(args: GetRepositoryTreeArgs, opts?: pulumi.InvokeOptions): Promise { @@ -88,20 +74,6 @@ export interface GetRepositoryTreeResult { * The `gitlab.getRepositoryTree` data source allows details of directories and files in a repository to be retrieved. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/repositories.html#list-repository-tree) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const this = gitlab.getRepositoryTree({ - * path: "ExampleSubFolder", - * project: "example", - * recursive: true, - * ref: "main", - * }); - * ``` */ export function getRepositoryTreeOutput(args: GetRepositoryTreeOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getRepositoryTree(a, opts)) diff --git a/sdk/nodejs/getUsers.ts b/sdk/nodejs/getUsers.ts index 9fe16f85..fa440580 100644 --- a/sdk/nodejs/getUsers.ts +++ b/sdk/nodejs/getUsers.ts @@ -14,22 +14,6 @@ import * as utilities from "./utilities"; * > Some available options require administrator privileges. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ce/api/users.html#list-users) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getUsers({ - * createdBefore: "2019-01-01", - * orderBy: "name", - * sort: "desc", - * }); - * const example-two = gitlab.getUsers({ - * search: "username", - * }); - * ``` */ export function getUsers(args?: GetUsersArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; @@ -144,22 +128,6 @@ export interface GetUsersResult { * > Some available options require administrator privileges. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ce/api/users.html#list-users) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = gitlab.getUsers({ - * createdBefore: "2019-01-01", - * orderBy: "name", - * sort: "desc", - * }); - * const example-two = gitlab.getUsers({ - * search: "username", - * }); - * ``` */ export function getUsersOutput(args?: GetUsersOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getUsers(a, opts)) diff --git a/sdk/nodejs/group.ts b/sdk/nodejs/group.ts index 33dc4bf6..fa06ae1d 100644 --- a/sdk/nodejs/group.ts +++ b/sdk/nodejs/group.ts @@ -11,23 +11,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const exampleGroup = new gitlab.Group("exampleGroup", { - * path: "example", - * description: "An example group", - * }); - * // Create a project in the example group - * const exampleProject = new gitlab.Project("exampleProject", { - * description: "An example project", - * namespaceId: exampleGroup.id, - * }); - * ``` - * * ## Import * * ```sh diff --git a/sdk/nodejs/groupAccessToken.ts b/sdk/nodejs/groupAccessToken.ts index 5cdcd27e..a90bf15c 100644 --- a/sdk/nodejs/groupAccessToken.ts +++ b/sdk/nodejs/groupAccessToken.ts @@ -11,25 +11,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API](https://docs.gitlab.com/ee/api/group_access_tokens.html) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const exampleGroupAccessToken = new gitlab.GroupAccessToken("exampleGroupAccessToken", { - * group: "25", - * expiresAt: "2020-03-14", - * accessLevel: "developer", - * scopes: ["api"], - * }); - * const exampleGroupVariable = new gitlab.GroupVariable("exampleGroupVariable", { - * group: "25", - * key: "gat", - * value: exampleGroupAccessToken.token, - * }); - * ``` - * * ## Import * * A GitLab Group Access Token can be imported using a key composed of `:`, e.g. diff --git a/sdk/nodejs/groupBadge.ts b/sdk/nodejs/groupBadge.ts index dbf0b94c..8fbd8bb1 100644 --- a/sdk/nodejs/groupBadge.ts +++ b/sdk/nodejs/groupBadge.ts @@ -9,38 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/user/project/badges.html#group-badges) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const foo = new gitlab.Group("foo", {}); - * const example = new gitlab.GroupBadge("example", { - * group: foo.id, - * linkUrl: "https://example.com/badge-123", - * imageUrl: "https://example.com/badge-123.svg", - * }); - * // Pipeline status badges with placeholders will be enabled for each project - * const gitlabPipeline = new gitlab.GroupBadge("gitlabPipeline", { - * group: foo.id, - * linkUrl: "https://gitlab.example.com/%{project_path}/-/pipelines?ref=%{default_branch}", - * imageUrl: "https://gitlab.example.com/%{project_path}/badges/%{default_branch}/pipeline.svg", - * }); - * // Test coverage report badges with placeholders will be enabled for each project - * const gitlabCoverage = new gitlab.GroupBadge("gitlabCoverage", { - * group: foo.id, - * linkUrl: "https://gitlab.example.com/%{project_path}/-/jobs", - * imageUrl: "https://gitlab.example.com/%{project_path}/badges/%{default_branch}/coverage.svg", - * }); - * // Latest release badges with placeholders will be enabled for each project - * const gitlabRelease = new gitlab.GroupBadge("gitlabRelease", { - * group: foo.id, - * linkUrl: "https://gitlab.example.com/%{project_path}/-/releases", - * imageUrl: "https://gitlab.example.com/%{project_path}/-/badges/release.svg", - * }); - * ``` - * * ## Import * * GitLab group badges can be imported using an id made up of `{group_id}:{badge_id}`, e.g. diff --git a/sdk/nodejs/groupCluster.ts b/sdk/nodejs/groupCluster.ts index 6099bad0..936c0c15 100644 --- a/sdk/nodejs/groupCluster.ts +++ b/sdk/nodejs/groupCluster.ts @@ -11,26 +11,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_clusters.html) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const foo = new gitlab.Group("foo", {path: "foo-path"}); - * const bar = new gitlab.GroupCluster("bar", { - * group: foo.id, - * domain: "example.com", - * enabled: true, - * kubernetesApiUrl: "https://124.124.124", - * kubernetesToken: "some-token", - * kubernetesCaCert: "some-cert", - * kubernetesAuthorizationType: "rbac", - * environmentScope: "*", - * managementProjectId: "123456", - * }); - * ``` - * * ## Import * * GitLab group clusters can be imported using an id made up of `groupid:clusterid`, e.g. diff --git a/sdk/nodejs/groupCustomAttribute.ts b/sdk/nodejs/groupCustomAttribute.ts index 8015f797..e918225f 100644 --- a/sdk/nodejs/groupCustomAttribute.ts +++ b/sdk/nodejs/groupCustomAttribute.ts @@ -9,19 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/custom_attributes.html) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const attr = new gitlab.GroupCustomAttribute("attr", { - * group: 42, - * key: "location", - * value: "Greenland", - * }); - * ``` - * * ## Import * * You can import a group custom attribute using the an id made up of `{group-id}:{key}`, e.g. diff --git a/sdk/nodejs/groupEpicBoard.ts b/sdk/nodejs/groupEpicBoard.ts index a50883e7..68908eeb 100644 --- a/sdk/nodejs/groupEpicBoard.ts +++ b/sdk/nodejs/groupEpicBoard.ts @@ -13,32 +13,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_boards.html) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = new gitlab.Group("example", { - * path: "test_group", - * description: "An example group", - * }); - * const label1 = new gitlab.GroupLabel("label1", { - * group: example.id, - * color: "#FF0000", - * }); - * const label3 = new gitlab.GroupLabel("label3", { - * group: example.id, - * color: "#003000", - * }); - * const epicBoard = new gitlab.GroupEpicBoard("epicBoard", { - * group: example.path, - * lists: [{ - * labelId: label1.labelId, - * }], - * }); - * ``` - * * ## Import * * You can import this resource with an id made up of `{group-id}:{epic-board-id}`, e.g. diff --git a/sdk/nodejs/groupHook.ts b/sdk/nodejs/groupHook.ts index f73279cd..8b9cd324 100644 --- a/sdk/nodejs/groupHook.ts +++ b/sdk/nodejs/groupHook.ts @@ -9,40 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#hooks) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = new gitlab.GroupHook("example", { - * group: "example/hooked", - * mergeRequestsEvents: true, - * url: "https://example.com/hook/example", - * }); - * // Setting all attributes - * const allAttributes = new gitlab.GroupHook("allAttributes", { - * confidentialIssuesEvents: false, - * confidentialNoteEvents: true, - * deploymentEvents: true, - * enableSslVerification: false, - * group: "1", - * issuesEvents: false, - * jobEvents: true, - * mergeRequestsEvents: true, - * noteEvents: true, - * pipelineEvents: true, - * pushEvents: true, - * pushEventsBranchFilter: "devel", - * releasesEvents: true, - * subgroupEvents: true, - * tagPushEvents: true, - * token: "supersecret", - * url: "http://example.com", - * wikiPageEvents: true, - * }); - * ``` - * * ## Import * * A GitLab Group Hook can be imported using a key composed of `:`, e.g. diff --git a/sdk/nodejs/groupLabel.ts b/sdk/nodejs/groupLabel.ts index 3f5c699d..4301c147 100644 --- a/sdk/nodejs/groupLabel.ts +++ b/sdk/nodejs/groupLabel.ts @@ -9,19 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/user/project/labels.html#group-labels) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const fixme = new gitlab.GroupLabel("fixme", { - * color: "#ffcc00", - * description: "issue with failing tests", - * group: "example", - * }); - * ``` - * * ## Import * * Gitlab group labels can be imported using an id made up of `{group_id}:{group_label_id}`, e.g. diff --git a/sdk/nodejs/groupMembership.ts b/sdk/nodejs/groupMembership.ts index 2ced06cc..fc79b0a0 100644 --- a/sdk/nodejs/groupMembership.ts +++ b/sdk/nodejs/groupMembership.ts @@ -11,20 +11,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/members.html) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const test = new gitlab.GroupMembership("test", { - * accessLevel: "guest", - * expiresAt: "2020-12-31", - * groupId: "12345", - * userId: 1337, - * }); - * ``` - * * ## Import * * GitLab group membership can be imported using an id made up of `group_id:user_id`, e.g. diff --git a/sdk/nodejs/groupProjectFileTemplate.ts b/sdk/nodejs/groupProjectFileTemplate.ts index 3a462f08..26e65326 100644 --- a/sdk/nodejs/groupProjectFileTemplate.ts +++ b/sdk/nodejs/groupProjectFileTemplate.ts @@ -14,27 +14,6 @@ import * as utilities from "./utilities"; * > This resource requires a GitLab Enterprise instance with a Premium license. * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#update-group) - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const foo = new gitlab.Group("foo", { - * path: "group", - * description: "An example group", - * }); - * const bar = new gitlab.Project("bar", { - * description: "contains file templates", - * visibilityLevel: "public", - * namespaceId: foo.id, - * }); - * const templateLink = new gitlab.GroupProjectFileTemplate("templateLink", { - * groupId: foo.id, - * fileTemplateProjectId: bar.id, - * }); - * ``` */ export class GroupProjectFileTemplate extends pulumi.CustomResource { /** diff --git a/sdk/nodejs/groupSamlLink.ts b/sdk/nodejs/groupSamlLink.ts index 91274ff3..443ba964 100644 --- a/sdk/nodejs/groupSamlLink.ts +++ b/sdk/nodejs/groupSamlLink.ts @@ -9,19 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#saml-group-links) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const test = new gitlab.GroupSamlLink("test", { - * accessLevel: "developer", - * group: "12345", - * samlGroupName: "samlgroupname1", - * }); - * ``` - * * ## Import * * GitLab group saml links can be imported using an id made up of `group_id:saml_group_name`, e.g. diff --git a/sdk/nodejs/groupShareGroup.ts b/sdk/nodejs/groupShareGroup.ts index fbe753e3..dca11f10 100644 --- a/sdk/nodejs/groupShareGroup.ts +++ b/sdk/nodejs/groupShareGroup.ts @@ -9,20 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#share-groups-with-groups) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const test = new gitlab.GroupShareGroup("test", { - * groupId: gitlab_group.foo.id, - * shareGroupId: gitlab_group.bar.id, - * groupAccess: "guest", - * expiresAt: "2099-01-01", - * }); - * ``` - * * ## Import * * GitLab group shares can be imported using an id made up of `mainGroupId:shareGroupId`, e.g. diff --git a/sdk/nodejs/groupVariable.ts b/sdk/nodejs/groupVariable.ts index a76ffd48..14834269 100644 --- a/sdk/nodejs/groupVariable.ts +++ b/sdk/nodejs/groupVariable.ts @@ -9,22 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_level_variables.html) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = new gitlab.GroupVariable("example", { - * environmentScope: "*", - * group: "12345", - * key: "group_variable_key", - * masked: false, - * "protected": false, - * value: "group_variable_value", - * }); - * ``` - * * ## Import * * GitLab group variables can be imported using an id made up of `groupid:variablename:scope`, e.g. diff --git a/sdk/nodejs/instanceCluster.ts b/sdk/nodejs/instanceCluster.ts index ca753dbe..69404b03 100644 --- a/sdk/nodejs/instanceCluster.ts +++ b/sdk/nodejs/instanceCluster.ts @@ -11,25 +11,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/instance_clusters.html) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const bar = new gitlab.InstanceCluster("bar", { - * domain: "example.com", - * enabled: true, - * environmentScope: "*", - * kubernetesApiUrl: "https://124.124.124", - * kubernetesAuthorizationType: "rbac", - * kubernetesCaCert: "some-cert", - * kubernetesNamespace: "namespace", - * kubernetesToken: "some-token", - * managementProjectId: "123456", - * }); - * ``` - * * ## Import * * GitLab instance clusters can be imported using a `clusterid`, e.g. diff --git a/sdk/nodejs/instanceVariable.ts b/sdk/nodejs/instanceVariable.ts index dd4e1056..395c285d 100644 --- a/sdk/nodejs/instanceVariable.ts +++ b/sdk/nodejs/instanceVariable.ts @@ -9,20 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/instance_level_ci_variables.html) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = new gitlab.InstanceVariable("example", { - * key: "instance_variable_key", - * masked: false, - * "protected": false, - * value: "instance_variable_value", - * }); - * ``` - * * ## Import * * GitLab instance variables can be imported using an id made up of `variablename`, e.g. diff --git a/sdk/nodejs/integrationCustomIssueTracker.ts b/sdk/nodejs/integrationCustomIssueTracker.ts index b334060e..8f4b457f 100644 --- a/sdk/nodejs/integrationCustomIssueTracker.ts +++ b/sdk/nodejs/integrationCustomIssueTracker.ts @@ -9,23 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#custom-issue-tracker) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const awesomeProject = new gitlab.Project("awesomeProject", { - * description: "My awesome project.", - * visibilityLevel: "public", - * }); - * const tracker = new gitlab.IntegrationCustomIssueTracker("tracker", { - * project: awesomeProject.id, - * projectUrl: "https://customtracker.com/issues", - * issuesUrl: "https://customtracker.com/TEST-:id", - * }); - * ``` - * * ## Import * * You can import a gitlab_integration_custom_issue_tracker state using the project ID, e.g. diff --git a/sdk/nodejs/integrationEmailsOnPush.ts b/sdk/nodejs/integrationEmailsOnPush.ts index 4e93fe7c..fd3a1463 100644 --- a/sdk/nodejs/integrationEmailsOnPush.ts +++ b/sdk/nodejs/integrationEmailsOnPush.ts @@ -9,22 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#emails-on-push) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const awesomeProject = new gitlab.Project("awesomeProject", { - * description: "My awesome project.", - * visibilityLevel: "public", - * }); - * const emails = new gitlab.IntegrationEmailsOnPush("emails", { - * project: awesomeProject.id, - * recipients: "myrecipient@example.com myotherrecipient@example.com", - * }); - * ``` - * * ## Import * * You can import a gitlab_integration_emails_on_push state using the project ID, e.g. diff --git a/sdk/nodejs/integrationExternalWiki.ts b/sdk/nodejs/integrationExternalWiki.ts index 700c8ce1..0b4a0c8a 100644 --- a/sdk/nodejs/integrationExternalWiki.ts +++ b/sdk/nodejs/integrationExternalWiki.ts @@ -9,22 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#external-wiki) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const awesomeProject = new gitlab.Project("awesomeProject", { - * description: "My awesome project.", - * visibilityLevel: "public", - * }); - * const wiki = new gitlab.IntegrationExternalWiki("wiki", { - * project: awesomeProject.id, - * externalWikiUrl: "https://MyAwesomeExternalWikiURL.com", - * }); - * ``` - * * ## Import * * You can import a gitlab_integration_external_wiki state using the project ID, e.g. diff --git a/sdk/nodejs/integrationGithub.ts b/sdk/nodejs/integrationGithub.ts index bcb40496..de8c0446 100644 --- a/sdk/nodejs/integrationGithub.ts +++ b/sdk/nodejs/integrationGithub.ts @@ -11,23 +11,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#github) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const awesomeProject = new gitlab.Project("awesomeProject", { - * description: "My awesome project.", - * visibilityLevel: "public", - * }); - * const github = new gitlab.IntegrationGithub("github", { - * project: awesomeProject.id, - * token: "REDACTED", - * repositoryUrl: "https://github.com/gitlabhq/terraform-provider-gitlab", - * }); - * ``` - * * ## Import * * ```sh diff --git a/sdk/nodejs/integrationJira.ts b/sdk/nodejs/integrationJira.ts index dc523fb8..98888ce7 100644 --- a/sdk/nodejs/integrationJira.ts +++ b/sdk/nodejs/integrationJira.ts @@ -9,24 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/services.html#jira) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const awesomeProject = new gitlab.Project("awesomeProject", { - * description: "My awesome project.", - * visibilityLevel: "public", - * }); - * const jira = new gitlab.IntegrationJira("jira", { - * project: awesomeProject.id, - * url: "https://jira.example.com", - * username: "user", - * password: "mypass", - * }); - * ``` - * * ## Import * * You can import a gitlab_integration_jira state using the project ID, e.g. diff --git a/sdk/nodejs/integrationMattermost.ts b/sdk/nodejs/integrationMattermost.ts index a9586544..2e804dbf 100644 --- a/sdk/nodejs/integrationMattermost.ts +++ b/sdk/nodejs/integrationMattermost.ts @@ -9,25 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#mattermost-notifications) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const awesomeProject = new gitlab.Project("awesomeProject", { - * description: "My awesome project.", - * visibilityLevel: "public", - * }); - * const mattermost = new gitlab.IntegrationMattermost("mattermost", { - * project: awesomeProject.id, - * webhook: "https://webhook.com", - * username: "myuser", - * pushEvents: true, - * pushChannel: "push_chan", - * }); - * ``` - * * ## Import * * You can import a gitlab_integration_mattermost.mattermost state using the project ID, e.g. diff --git a/sdk/nodejs/integrationMicrosoftTeams.ts b/sdk/nodejs/integrationMicrosoftTeams.ts index 768ab804..5dac2a47 100644 --- a/sdk/nodejs/integrationMicrosoftTeams.ts +++ b/sdk/nodejs/integrationMicrosoftTeams.ts @@ -9,23 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#microsoft-teams) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const awesomeProject = new gitlab.Project("awesomeProject", { - * description: "My awesome project.", - * visibilityLevel: "public", - * }); - * const teams = new gitlab.IntegrationMicrosoftTeams("teams", { - * project: awesomeProject.id, - * webhook: "https://testurl.com/?token=XYZ", - * pushEvents: true, - * }); - * ``` - * * ## Import * * You can import a gitlab_integration_microsoft_teams state using the project ID, e.g. diff --git a/sdk/nodejs/integrationPipelinesEmail.ts b/sdk/nodejs/integrationPipelinesEmail.ts index bdf8ed96..2e50345c 100644 --- a/sdk/nodejs/integrationPipelinesEmail.ts +++ b/sdk/nodejs/integrationPipelinesEmail.ts @@ -9,24 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#pipeline-emails) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const awesomeProject = new gitlab.Project("awesomeProject", { - * description: "My awesome project.", - * visibilityLevel: "public", - * }); - * const email = new gitlab.IntegrationPipelinesEmail("email", { - * project: awesomeProject.id, - * recipients: ["gitlab@user.create"], - * notifyOnlyBrokenPipelines: true, - * branchesToBeNotified: "all", - * }); - * ``` - * * ## Import * * You can import a gitlab_integration_pipelines_email state using the project ID, e.g. diff --git a/sdk/nodejs/integrationSlack.ts b/sdk/nodejs/integrationSlack.ts index 5cc566da..ad5da65a 100644 --- a/sdk/nodejs/integrationSlack.ts +++ b/sdk/nodejs/integrationSlack.ts @@ -9,25 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#slack-notifications) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const awesomeProject = new gitlab.Project("awesomeProject", { - * description: "My awesome project.", - * visibilityLevel: "public", - * }); - * const slack = new gitlab.IntegrationSlack("slack", { - * project: awesomeProject.id, - * webhook: "https://webhook.com", - * username: "myuser", - * pushEvents: true, - * pushChannel: "push_chan", - * }); - * ``` - * * ## Import * * You can import a gitlab_integration_slack.slack state using the project ID, e.g. diff --git a/sdk/nodejs/pagesDomain.ts b/sdk/nodejs/pagesDomain.ts index e13760cb..5fda8a6e 100644 --- a/sdk/nodejs/pagesDomain.ts +++ b/sdk/nodejs/pagesDomain.ts @@ -9,28 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/pages_domains.html) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as fs from "fs"; - * import * as gitlab from "@pulumi/gitlab"; - * - * // Example using auto_ssl_enabled, which uses lets encrypt to generate a certificate - * const thisPagesDomain = new gitlab.PagesDomain("thisPagesDomain", { - * project: "123", - * domain: "example.com", - * autoSslEnabled: true, - * }); - * // Example using a manually generated certificate and key - * const thisIndex_pagesDomainPagesDomain = new gitlab.PagesDomain("thisIndex/pagesDomainPagesDomain", { - * project: "123", - * domain: "example.com", - * key: fs.readFileSync(`${path.module}/key.pem`), - * certificate: fs.readFileSync(`${path.module}/cert.pem`), - * }); - * ``` - * * ## Import * * GitLab pages domain can be imported using an id made up of `projectId:domain` _without_ the http protocol, e.g. diff --git a/sdk/nodejs/personalAccessToken.ts b/sdk/nodejs/personalAccessToken.ts index 66b4b77b..ff81fbbd 100644 --- a/sdk/nodejs/personalAccessToken.ts +++ b/sdk/nodejs/personalAccessToken.ts @@ -11,24 +11,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/personal_access_tokens.html) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const examplePersonalAccessToken = new gitlab.PersonalAccessToken("examplePersonalAccessToken", { - * userId: 25, - * expiresAt: "2020-03-14", - * scopes: ["api"], - * }); - * const exampleProjectVariable = new gitlab.ProjectVariable("exampleProjectVariable", { - * project: gitlab_project.example.id, - * key: "pat", - * value: examplePersonalAccessToken.token, - * }); - * ``` - * * ## Import * * A GitLab Personal Access Token can be imported using a key composed of `:`, e.g. diff --git a/sdk/nodejs/pipelineSchedule.ts b/sdk/nodejs/pipelineSchedule.ts index 79125d79..32db6a3e 100644 --- a/sdk/nodejs/pipelineSchedule.ts +++ b/sdk/nodejs/pipelineSchedule.ts @@ -9,20 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/pipeline_schedules.html) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = new gitlab.PipelineSchedule("example", { - * cron: "0 1 * * *", - * description: "Used to schedule builds", - * project: "12345", - * ref: "master", - * }); - * ``` - * * ## Import * * GitLab pipeline schedules can be imported using an id made up of `{project_id}:{pipeline_schedule_id}`, e.g. diff --git a/sdk/nodejs/pipelineScheduleVariable.ts b/sdk/nodejs/pipelineScheduleVariable.ts index 48c11e9c..5af61568 100644 --- a/sdk/nodejs/pipelineScheduleVariable.ts +++ b/sdk/nodejs/pipelineScheduleVariable.ts @@ -9,26 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/pipeline_schedules.html#pipeline-schedule-variables) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const examplePipelineSchedule = new gitlab.PipelineSchedule("examplePipelineSchedule", { - * project: "12345", - * description: "Used to schedule builds", - * ref: "master", - * cron: "0 1 * * *", - * }); - * const examplePipelineScheduleVariable = new gitlab.PipelineScheduleVariable("examplePipelineScheduleVariable", { - * project: examplePipelineSchedule.project, - * pipelineScheduleId: examplePipelineSchedule.pipelineScheduleId, - * key: "EXAMPLE_KEY", - * value: "example", - * }); - * ``` - * * ## Import * * Pipeline schedule variables can be imported using an id made up of `project_id:pipeline_schedule_id:key`, e.g. diff --git a/sdk/nodejs/pipelineTrigger.ts b/sdk/nodejs/pipelineTrigger.ts index ae75d3e1..0e9edb2a 100644 --- a/sdk/nodejs/pipelineTrigger.ts +++ b/sdk/nodejs/pipelineTrigger.ts @@ -9,18 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/pipeline_triggers.html) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = new gitlab.PipelineTrigger("example", { - * description: "Used to trigger builds", - * project: "12345", - * }); - * ``` - * * ## Import * * GitLab pipeline triggers can be imported using an id made up of `{project_id}:{pipeline_trigger_id}`, e.g. diff --git a/sdk/nodejs/project.ts b/sdk/nodejs/project.ts index 41d4bc4b..e8740e93 100644 --- a/sdk/nodejs/project.ts +++ b/sdk/nodejs/project.ts @@ -7,68 +7,6 @@ import * as outputs from "./types/output"; import * as utilities from "./utilities"; /** - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = new gitlab.Project("example", { - * description: "My awesome codebase", - * visibilityLevel: "public", - * }); - * // Project with custom push rules - * const example_two = new gitlab.Project("example-two", {pushRules: { - * authorEmailRegex: "@example\\.com$", - * commitCommitterCheck: true, - * memberCheck: true, - * preventSecrets: true, - * }}); - * const peterParker = gitlab.getUser({ - * username: "peter_parker", - * }); - * const petersRepo = new gitlab.Project("petersRepo", { - * description: "This is a description", - * namespaceId: peterParker.then(peterParker => peterParker.namespaceId), - * }); - * // Fork a project - * const forkProject = new gitlab.Project("forkProject", { - * description: "This is a fork", - * forkedFromProjectId: example.id, - * }); - * // Fork a project and setup a pull mirror - * const forkIndex_projectProject = new gitlab.Project("forkIndex/projectProject", { - * description: "This is a fork", - * forkedFromProjectId: example.id, - * importUrl: example.httpUrlToRepo, - * mirror: true, - * }); - * // Create a project by importing it from a public project - * const importPublic = new gitlab.Project("importPublic", {importUrl: "https://gitlab.example.com/repo.git"}); - * // Create a project by importing it from a public project and setup the pull mirror - * const importPublicWithMirror = new gitlab.Project("importPublicWithMirror", { - * importUrl: "https://gitlab.example.com/repo.git", - * mirror: true, - * }); - * // Create a project by importing it from a private project - * const importPrivateProject = new gitlab.Project("importPrivateProject", { - * importUrl: "https://gitlab.example.com/repo.git", - * importUrlUsername: "user", - * importUrlPassword: "pass", - * }); - * // Create a project by importing it from a private project and setup the pull mirror - * const importPrivateWithMirror = new gitlab.Project("importPrivateWithMirror", { - * importUrl: "https://gitlab.example.com/repo.git", - * importUrlUsername: "user", - * importUrlPassword: "pass", - * mirror: true, - * }); - * // Create a project by importing it from a private project and provide credentials in `import_url` - * // NOTE: only use this if you really must, use `import_url_username` and `import_url_password` whenever possible - * // GitLab API will always return the `import_url` without credentials, therefore you must ignore the `import_url` for changes: - * const importPrivateIndex_projectProject = new gitlab.Project("importPrivateIndex/projectProject", {importUrl: "https://user:pass@gitlab.example.com/repo.git"}); - * ``` - * * ## Import * * ```sh diff --git a/sdk/nodejs/projectAccessToken.ts b/sdk/nodejs/projectAccessToken.ts index f1d24024..7db0e12d 100644 --- a/sdk/nodejs/projectAccessToken.ts +++ b/sdk/nodejs/projectAccessToken.ts @@ -9,25 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/project_access_tokens.html) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const exampleProjectAccessToken = new gitlab.ProjectAccessToken("exampleProjectAccessToken", { - * project: "25", - * expiresAt: "2020-03-14", - * accessLevel: "reporter", - * scopes: ["api"], - * }); - * const exampleProjectVariable = new gitlab.ProjectVariable("exampleProjectVariable", { - * project: gitlab_project.example.id, - * key: "pat", - * value: exampleProjectAccessToken.token, - * }); - * ``` - * * ## Import * * A GitLab Project Access Token can be imported using a key composed of `:`, e.g. diff --git a/sdk/nodejs/projectBadge.ts b/sdk/nodejs/projectBadge.ts index 8d0b84dc..b4196a72 100644 --- a/sdk/nodejs/projectBadge.ts +++ b/sdk/nodejs/projectBadge.ts @@ -9,38 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/user/project/badges.html#project-badges) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const foo = new gitlab.Project("foo", {}); - * const example = new gitlab.ProjectBadge("example", { - * project: foo.id, - * linkUrl: "https://example.com/badge-123", - * imageUrl: "https://example.com/badge-123.svg", - * }); - * // Pipeline status badges with placeholders will be enabled - * const gitlabPipeline = new gitlab.ProjectBadge("gitlabPipeline", { - * project: foo.id, - * linkUrl: "https://gitlab.example.com/%{project_path}/-/pipelines?ref=%{default_branch}", - * imageUrl: "https://gitlab.example.com/%{project_path}/badges/%{default_branch}/pipeline.svg", - * }); - * // Test coverage report badges with placeholders will be enabled - * const gitlabCoverage = new gitlab.ProjectBadge("gitlabCoverage", { - * project: foo.id, - * linkUrl: "https://gitlab.example.com/%{project_path}/-/jobs", - * imageUrl: "https://gitlab.example.com/%{project_path}/badges/%{default_branch}/coverage.svg", - * }); - * // Latest release badges with placeholders will be enabled - * const gitlabRelease = new gitlab.ProjectBadge("gitlabRelease", { - * project: foo.id, - * linkUrl: "https://gitlab.example.com/%{project_path}/-/releases", - * imageUrl: "https://gitlab.example.com/%{project_path}/-/badges/release.svg", - * }); - * ``` - * * ## Import * * GitLab project badges can be imported using an id made up of `{project_id}:{badge_id}`, e.g. diff --git a/sdk/nodejs/projectCluster.ts b/sdk/nodejs/projectCluster.ts index 6b96cbbd..b2eb9090 100644 --- a/sdk/nodejs/projectCluster.ts +++ b/sdk/nodejs/projectCluster.ts @@ -11,27 +11,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/project_clusters.html) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const foo = new gitlab.Project("foo", {}); - * const bar = new gitlab.ProjectCluster("bar", { - * project: foo.id, - * domain: "example.com", - * enabled: true, - * kubernetesApiUrl: "https://124.124.124", - * kubernetesToken: "some-token", - * kubernetesCaCert: "some-cert", - * kubernetesNamespace: "namespace", - * kubernetesAuthorizationType: "rbac", - * environmentScope: "*", - * managementProjectId: "123456", - * }); - * ``` - * * ## Import * * GitLab project clusters can be imported using an id made up of `projectid:clusterid`, e.g. diff --git a/sdk/nodejs/projectComplianceFramework.ts b/sdk/nodejs/projectComplianceFramework.ts index af99d6ec..273a18f0 100644 --- a/sdk/nodejs/projectComplianceFramework.ts +++ b/sdk/nodejs/projectComplianceFramework.ts @@ -11,25 +11,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab GraphQL API docs](https://docs.gitlab.com/ee/api/graphql/reference/#mutationprojectsetcomplianceframework) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const sampleComplianceFramework = new gitlab.ComplianceFramework("sampleComplianceFramework", { - * namespacePath: "top-level-group", - * description: "A HIPAA Compliance Framework", - * color: "#87BEEF", - * "default": false, - * pipelineConfigurationFullPath: ".hipaa.yml@top-level-group/compliance-frameworks", - * }); - * const sampleProjectComplianceFramework = new gitlab.ProjectComplianceFramework("sampleProjectComplianceFramework", { - * complianceFrameworkId: sampleComplianceFramework.frameworkId, - * project: "12345678", - * }); - * ``` - * * ## Import * * Gitlab project compliance frameworks can be imported with a key composed of ``, e.g. diff --git a/sdk/nodejs/projectCustomAttribute.ts b/sdk/nodejs/projectCustomAttribute.ts index 63863c00..1df1c4ef 100644 --- a/sdk/nodejs/projectCustomAttribute.ts +++ b/sdk/nodejs/projectCustomAttribute.ts @@ -9,19 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/custom_attributes.html) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const attr = new gitlab.ProjectCustomAttribute("attr", { - * key: "location", - * project: 42, - * value: "Greenland", - * }); - * ``` - * * ## Import * * You can import a project custom attribute using an id made up of `{project-id}:{key}`, e.g. diff --git a/sdk/nodejs/projectEnvironment.ts b/sdk/nodejs/projectEnvironment.ts index 296cc6d6..99b92148 100644 --- a/sdk/nodejs/projectEnvironment.ts +++ b/sdk/nodejs/projectEnvironment.ts @@ -5,26 +5,6 @@ import * as pulumi from "@pulumi/pulumi"; import * as utilities from "./utilities"; /** - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const thisGroup = new gitlab.Group("thisGroup", { - * path: "example", - * description: "An example group", - * }); - * const thisProject = new gitlab.Project("thisProject", { - * namespaceId: thisGroup.id, - * initializeWithReadme: true, - * }); - * const thisProjectEnvironment = new gitlab.ProjectEnvironment("thisProjectEnvironment", { - * project: thisProject.id, - * externalUrl: "www.example.com", - * }); - * ``` - * * ## Import * * GitLab project environments can be imported using an id made up of `projectId:environmenId`, e.g. diff --git a/sdk/nodejs/projectFreezePeriod.ts b/sdk/nodejs/projectFreezePeriod.ts index be58df63..f8d4aba7 100644 --- a/sdk/nodejs/projectFreezePeriod.ts +++ b/sdk/nodejs/projectFreezePeriod.ts @@ -9,20 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/freeze_periods.html) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const schedule = new gitlab.ProjectFreezePeriod("schedule", { - * project: gitlab_project.foo.id, - * freezeStart: "0 23 * * 5", - * freezeEnd: "0 7 * * 1", - * cronTimezone: "UTC", - * }); - * ``` - * * ## Import * * GitLab project freeze periods can be imported using an id made up of `project_id:freeze_period_id`, e.g. diff --git a/sdk/nodejs/projectHook.ts b/sdk/nodejs/projectHook.ts index e5d71d0a..27c09c17 100644 --- a/sdk/nodejs/projectHook.ts +++ b/sdk/nodejs/projectHook.ts @@ -9,19 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#hooks) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = new gitlab.ProjectHook("example", { - * mergeRequestsEvents: true, - * project: "example/hooked", - * url: "https://example.com/hook/example", - * }); - * ``` - * * ## Import * * A GitLab Project Hook can be imported using a key composed of `:`, e.g. diff --git a/sdk/nodejs/projectIssue.ts b/sdk/nodejs/projectIssue.ts index 46c3bc1a..4f098325 100644 --- a/sdk/nodejs/projectIssue.ts +++ b/sdk/nodejs/projectIssue.ts @@ -7,27 +7,6 @@ import * as outputs from "./types/output"; import * as utilities from "./utilities"; /** - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const foo = new gitlab.Project("foo", { - * description: "Lorem Ipsum", - * visibilityLevel: "public", - * }); - * const welcomeIssue = new gitlab.ProjectIssue("welcomeIssue", { - * project: foo.id, - * title: "Welcome!", - * description: pulumi.interpolate` Welcome to the ${foo.name} project! - * - * `, - * discussionLocked: true, - * }); - * export const welcomeIssueWebUrl = data.gitlab_project_issue.web_url; - * ``` - * * ## Import * * You can import this resource with an id made up of `{project-id}:{issue-id}`, e.g. diff --git a/sdk/nodejs/projectLabel.ts b/sdk/nodejs/projectLabel.ts index 681b5bba..f00e520e 100644 --- a/sdk/nodejs/projectLabel.ts +++ b/sdk/nodejs/projectLabel.ts @@ -9,25 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/labels.html#project-labels) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const fixme = new gitlab.ProjectLabel("fixme", { - * project: "example", - * description: "issue with failing tests", - * color: "#ffcc00", - * }); - * // Scoped label - * const devopsCreate = new gitlab.ProjectLabel("devopsCreate", { - * project: gitlab_project.example.id, - * description: "issue for creating infrastructure resources", - * color: "#ffa500", - * }); - * ``` - * * ## Import * * Gitlab Project labels can be imported using an id made up of `{project_id}:{group_label_id}`, e.g. diff --git a/sdk/nodejs/projectLevelMrApprovals.ts b/sdk/nodejs/projectLevelMrApprovals.ts index fb7db8bd..1c3e3e91 100644 --- a/sdk/nodejs/projectLevelMrApprovals.ts +++ b/sdk/nodejs/projectLevelMrApprovals.ts @@ -11,22 +11,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/merge_request_approvals.html#merge-request-level-mr-approvals) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const fooProject = new gitlab.Project("fooProject", {description: "My example project"}); - * const fooProjectLevelMrApprovals = new gitlab.ProjectLevelMrApprovals("fooProjectLevelMrApprovals", { - * project: fooProject.id, - * resetApprovalsOnPush: true, - * disableOverridingApproversPerMergeRequest: false, - * mergeRequestsAuthorApproval: false, - * mergeRequestsDisableCommittersApproval: true, - * }); - * ``` - * * ## Import * * ```sh diff --git a/sdk/nodejs/projectMembership.ts b/sdk/nodejs/projectMembership.ts index 56b3a423..558f0579 100644 --- a/sdk/nodejs/projectMembership.ts +++ b/sdk/nodejs/projectMembership.ts @@ -11,25 +11,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/members.html) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const test = new gitlab.ProjectMembership("test", { - * accessLevel: "guest", - * project: "12345", - * userId: 1337, - * }); - * const example = new gitlab.ProjectMembership("example", { - * accessLevel: "guest", - * expiresAt: "2022-12-31", - * project: "67890", - * userId: 1234, - * }); - * ``` - * * ## Import * * GitLab project membership can be imported using an id made up of `project_id:user_id`, e.g. diff --git a/sdk/nodejs/projectMilestone.ts b/sdk/nodejs/projectMilestone.ts index d4230c1c..cd4d9ab3 100644 --- a/sdk/nodejs/projectMilestone.ts +++ b/sdk/nodejs/projectMilestone.ts @@ -9,23 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/milestones.html) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * // Create a project for the milestone to use - * const exampleProject = new gitlab.Project("exampleProject", { - * description: "An example project", - * namespaceId: gitlab_group.example.id, - * }); - * const exampleProjectMilestone = new gitlab.ProjectMilestone("exampleProjectMilestone", { - * project: exampleProject.id, - * title: "example", - * }); - * ``` - * * ## Import * * Gitlab project milestone can be imported with a key composed of `:`, e.g. diff --git a/sdk/nodejs/projectMirror.ts b/sdk/nodejs/projectMirror.ts index d771dc8a..ba67f8b7 100644 --- a/sdk/nodejs/projectMirror.ts +++ b/sdk/nodejs/projectMirror.ts @@ -20,18 +20,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/remote_mirrors.html) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const foo = new gitlab.ProjectMirror("foo", { - * project: "1", - * url: "https://username:password@github.com/org/repository.git", - * }); - * ``` - * * ## Import * * GitLab project mirror can be imported using an id made up of `project_id:mirror_id`, e.g. diff --git a/sdk/nodejs/projectRunnerEnablement.ts b/sdk/nodejs/projectRunnerEnablement.ts index 2565c60b..d985d7fb 100644 --- a/sdk/nodejs/projectRunnerEnablement.ts +++ b/sdk/nodejs/projectRunnerEnablement.ts @@ -9,18 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/runners.html#enable-a-runner-in-project) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const foo = new gitlab.ProjectRunnerEnablement("foo", { - * project: "5", - * runnerId: 7, - * }); - * ``` - * * ## Import * * GitLab project runners can be imported using an id made up of `project:runner_id`, e.g. diff --git a/sdk/nodejs/projectShareGroup.ts b/sdk/nodejs/projectShareGroup.ts index 0e2e998a..ca154cb3 100644 --- a/sdk/nodejs/projectShareGroup.ts +++ b/sdk/nodejs/projectShareGroup.ts @@ -9,19 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#share-project-with-group) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const test = new gitlab.ProjectShareGroup("test", { - * groupAccess: "guest", - * groupId: 1337, - * project: "12345", - * }); - * ``` - * * ## Import * * GitLab project group shares can be imported using an id made up of `projectid:groupid`, e.g. diff --git a/sdk/nodejs/projectTag.ts b/sdk/nodejs/projectTag.ts index 160ab626..bfef4ffc 100644 --- a/sdk/nodejs/projectTag.ts +++ b/sdk/nodejs/projectTag.ts @@ -11,23 +11,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/tags.html) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * // Create a project for the tag to use - * const exampleProject = new gitlab.Project("exampleProject", { - * description: "An example project", - * namespaceId: gitlab_group.example.id, - * }); - * const exampleProjectTag = new gitlab.ProjectTag("exampleProjectTag", { - * ref: "main", - * project: exampleProject.id, - * }); - * ``` - * * ## Import * * Gitlab project tags can be imported with a key composed of `:`, e.g. diff --git a/sdk/nodejs/projectVariable.ts b/sdk/nodejs/projectVariable.ts index 5fb072bc..05bfef39 100644 --- a/sdk/nodejs/projectVariable.ts +++ b/sdk/nodejs/projectVariable.ts @@ -11,20 +11,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/project_level_variables.html) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = new gitlab.ProjectVariable("example", { - * key: "project_variable_key", - * project: "12345", - * "protected": false, - * value: "project_variable_value", - * }); - * ``` - * * ## Import * * GitLab project variables can be imported using an id made up of `project:key:environment_scope`, e.g. diff --git a/sdk/nodejs/releaseLink.ts b/sdk/nodejs/releaseLink.ts index 6af8c717..5e09ebf6 100644 --- a/sdk/nodejs/releaseLink.ts +++ b/sdk/nodejs/releaseLink.ts @@ -9,22 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/releases/links.html) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * // Create a project - * const exampleProject = new gitlab.Project("exampleProject", {description: "An example project"}); - * // Can create release link only to a tag associated with a release - * const exampleReleaseLink = new gitlab.ReleaseLink("exampleReleaseLink", { - * project: exampleProject.id, - * tagName: "tag_name_associated_with_release", - * url: "https://test/", - * }); - * ``` - * * ## Import * * Gitlab release link can be imported with a key composed of `::`, e.g. diff --git a/sdk/nodejs/runner.ts b/sdk/nodejs/runner.ts index 4f142379..1d1e0a8e 100644 --- a/sdk/nodejs/runner.ts +++ b/sdk/nodejs/runner.ts @@ -15,54 +15,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/runners.html#register-a-new-runner) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * import * as local from "@pulumi/local"; - * - * // Basic GitLab Group Runner - * const myGroup = new gitlab.Group("myGroup", {description: "group that holds the runners"}); - * const basicRunner = new gitlab.Runner("basicRunner", {registrationToken: myGroup.runnersToken}); - * // GitLab Runner that runs only tagged jobs - * const taggedOnly = new gitlab.Runner("taggedOnly", { - * registrationToken: myGroup.runnersToken, - * description: "I only run tagged jobs", - * runUntagged: false, - * tagLists: [ - * "tag_one", - * "tag_two", - * ], - * }); - * // GitLab Runner that only runs on protected branches - * const _protected = new gitlab.Runner("protected", { - * registrationToken: myGroup.runnersToken, - * description: "I only run protected jobs", - * accessLevel: "ref_protected", - * }); - * // Generate a `config.toml` file that you can use to create a runner - * // This is the typical workflow for this resource, using it to create an authentication_token which can then be used - * // to generate the `config.toml` file to prevent re-registering the runner every time new hardware is created. - * const myCustomGroup = new gitlab.Group("myCustomGroup", {description: "group that holds the custom runners"}); - * const myRunner = new gitlab.Runner("myRunner", {registrationToken: myCustomGroup.runnersToken}); - * // This creates a configuration for a local "shell" runner, but can be changed to generate whatever is needed. - * // Place this configuration file on a server at `/etc/gitlab-runner/config.toml`, then run `gitlab-runner start`. - * // See https://docs.gitlab.com/runner/configuration/advanced-configuration.html for more information. - * const config = new local.File("config", { - * filename: `${path.module}/config.toml`, - * content: pulumi.interpolate` concurrent = 1 - * - * [[runners]] - * name = "Hello Terraform" - * url = "https://example.gitlab.com/" - * token = "${myRunner.authenticationToken}" - * executor = "shell" - * - * `, - * }); - * ``` - * * ## Import * * A GitLab Runner can be imported using the runner's ID, eg diff --git a/sdk/nodejs/serviceCustomIssueTracker.ts b/sdk/nodejs/serviceCustomIssueTracker.ts index a0d331bc..f090fb8f 100644 --- a/sdk/nodejs/serviceCustomIssueTracker.ts +++ b/sdk/nodejs/serviceCustomIssueTracker.ts @@ -11,23 +11,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#custom-issue-tracker) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const awesomeProject = new gitlab.Project("awesomeProject", { - * description: "My awesome project.", - * visibilityLevel: "public", - * }); - * const tracker = new gitlab.ServiceCustomIssueTracker("tracker", { - * project: awesomeProject.id, - * projectUrl: "https://customtracker.com/issues", - * issuesUrl: "https://customtracker.com/TEST-:id", - * }); - * ``` - * * ## Import * * You can import a gitlab_service_custom_issue_tracker state using the project ID, e.g. diff --git a/sdk/nodejs/serviceEmailsOnPush.ts b/sdk/nodejs/serviceEmailsOnPush.ts index 5c5a6501..262f8fcb 100644 --- a/sdk/nodejs/serviceEmailsOnPush.ts +++ b/sdk/nodejs/serviceEmailsOnPush.ts @@ -11,22 +11,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#emails-on-push) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const awesomeProject = new gitlab.Project("awesomeProject", { - * description: "My awesome project.", - * visibilityLevel: "public", - * }); - * const emails = new gitlab.ServiceEmailsOnPush("emails", { - * project: awesomeProject.id, - * recipients: "myrecipient@example.com myotherrecipient@example.com", - * }); - * ``` - * * ## Import * * You can import a gitlab_service_emails_on_push state using the project ID, e.g. diff --git a/sdk/nodejs/serviceExternalWiki.ts b/sdk/nodejs/serviceExternalWiki.ts index 1c9c5d54..5b3b48bd 100644 --- a/sdk/nodejs/serviceExternalWiki.ts +++ b/sdk/nodejs/serviceExternalWiki.ts @@ -11,22 +11,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#external-wiki) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const awesomeProject = new gitlab.Project("awesomeProject", { - * description: "My awesome project.", - * visibilityLevel: "public", - * }); - * const wiki = new gitlab.ServiceExternalWiki("wiki", { - * project: awesomeProject.id, - * externalWikiUrl: "https://MyAwesomeExternalWikiURL.com", - * }); - * ``` - * * ## Import * * You can import a gitlab_service_external_wiki state using the project ID, e.g. diff --git a/sdk/nodejs/serviceGithub.ts b/sdk/nodejs/serviceGithub.ts index 39c9c475..af36b7fe 100644 --- a/sdk/nodejs/serviceGithub.ts +++ b/sdk/nodejs/serviceGithub.ts @@ -13,23 +13,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#github) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const awesomeProject = new gitlab.Project("awesomeProject", { - * description: "My awesome project.", - * visibilityLevel: "public", - * }); - * const github = new gitlab.ServiceGithub("github", { - * project: awesomeProject.id, - * token: "REDACTED", - * repositoryUrl: "https://github.com/gitlabhq/terraform-provider-gitlab", - * }); - * ``` - * * ## Import * * ```sh diff --git a/sdk/nodejs/serviceJira.ts b/sdk/nodejs/serviceJira.ts index 6f0c71cf..dbf08321 100644 --- a/sdk/nodejs/serviceJira.ts +++ b/sdk/nodejs/serviceJira.ts @@ -11,24 +11,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/services.html#jira) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const awesomeProject = new gitlab.Project("awesomeProject", { - * description: "My awesome project.", - * visibilityLevel: "public", - * }); - * const jira = new gitlab.ServiceJira("jira", { - * project: awesomeProject.id, - * url: "https://jira.example.com", - * username: "user", - * password: "mypass", - * }); - * ``` - * * ## Import * * You can import a gitlab_service_jira state using the project ID, e.g. diff --git a/sdk/nodejs/serviceMicrosoftTeams.ts b/sdk/nodejs/serviceMicrosoftTeams.ts index 10b67587..50eed669 100644 --- a/sdk/nodejs/serviceMicrosoftTeams.ts +++ b/sdk/nodejs/serviceMicrosoftTeams.ts @@ -11,23 +11,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#microsoft-teams) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const awesomeProject = new gitlab.Project("awesomeProject", { - * description: "My awesome project.", - * visibilityLevel: "public", - * }); - * const teams = new gitlab.ServiceMicrosoftTeams("teams", { - * project: awesomeProject.id, - * webhook: "https://testurl.com/?token=XYZ", - * pushEvents: true, - * }); - * ``` - * * ## Import * * You can import a gitlab_service_microsoft_teams state using the project ID, e.g. diff --git a/sdk/nodejs/servicePipelinesEmail.ts b/sdk/nodejs/servicePipelinesEmail.ts index cb11ee63..a61cf253 100644 --- a/sdk/nodejs/servicePipelinesEmail.ts +++ b/sdk/nodejs/servicePipelinesEmail.ts @@ -11,24 +11,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#pipeline-emails) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const awesomeProject = new gitlab.Project("awesomeProject", { - * description: "My awesome project.", - * visibilityLevel: "public", - * }); - * const email = new gitlab.ServicePipelinesEmail("email", { - * project: awesomeProject.id, - * recipients: ["gitlab@user.create"], - * notifyOnlyBrokenPipelines: true, - * branchesToBeNotified: "all", - * }); - * ``` - * * ## Import * * You can import a gitlab_service_pipelines_email state using the project ID, e.g. diff --git a/sdk/nodejs/serviceSlack.ts b/sdk/nodejs/serviceSlack.ts index 1abff08a..eb6d5754 100644 --- a/sdk/nodejs/serviceSlack.ts +++ b/sdk/nodejs/serviceSlack.ts @@ -11,25 +11,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#slack-notifications) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const awesomeProject = new gitlab.Project("awesomeProject", { - * description: "My awesome project.", - * visibilityLevel: "public", - * }); - * const slack = new gitlab.ServiceSlack("slack", { - * project: awesomeProject.id, - * webhook: "https://webhook.com", - * username: "myuser", - * pushEvents: true, - * pushChannel: "push_chan", - * }); - * ``` - * * ## Import * * You can import a gitlab_service_slack.slack state using the project ID, e.g. diff --git a/sdk/nodejs/systemHook.ts b/sdk/nodejs/systemHook.ts index cabf0a23..bc33da6f 100644 --- a/sdk/nodejs/systemHook.ts +++ b/sdk/nodejs/systemHook.ts @@ -11,23 +11,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/system_hooks.html) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = new gitlab.SystemHook("example", { - * enableSslVerification: true, - * mergeRequestsEvents: true, - * pushEvents: true, - * repositoryUpdateEvents: true, - * tagPushEvents: true, - * token: "secret-token", - * url: "https://example.com/hook-%d", - * }); - * ``` - * * ## Import * * You can import a system hook using the hook id `{hook-id}`, e.g. diff --git a/sdk/nodejs/tagProtection.ts b/sdk/nodejs/tagProtection.ts index 0a386c0f..984a8134 100644 --- a/sdk/nodejs/tagProtection.ts +++ b/sdk/nodejs/tagProtection.ts @@ -7,27 +7,6 @@ import * as outputs from "./types/output"; import * as utilities from "./utilities"; /** - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const tagProtect = new gitlab.TagProtection("tagProtect", { - * allowedToCreates: [ - * { - * userId: 42, - * }, - * { - * groupId: 43, - * }, - * ], - * createAccessLevel: "developer", - * project: "12345", - * tag: "TagProtected", - * }); - * ``` - * * ## Import * * Tag protections can be imported using an id made up of `project_id:tag_name`, e.g. diff --git a/sdk/nodejs/user.ts b/sdk/nodejs/user.ts index 228995c8..e206a8ff 100644 --- a/sdk/nodejs/user.ts +++ b/sdk/nodejs/user.ts @@ -13,24 +13,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/users.html) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const example = new gitlab.User("example", { - * canCreateGroup: false, - * email: "gitlab@user.create", - * isAdmin: true, - * isExternal: true, - * password: "superPassword", - * projectsLimit: 4, - * resetPassword: false, - * username: "example", - * }); - * ``` - * * ## Import * * ```sh diff --git a/sdk/nodejs/userCustomAttribute.ts b/sdk/nodejs/userCustomAttribute.ts index 40402f36..4eaab709 100644 --- a/sdk/nodejs/userCustomAttribute.ts +++ b/sdk/nodejs/userCustomAttribute.ts @@ -9,19 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/custom_attributes.html) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const attr = new gitlab.UserCustomAttribute("attr", { - * key: "location", - * user: 42, - * value: "Greenland", - * }); - * ``` - * * ## Import * * You can import a user custom attribute using an id made up of `{user-id}:{key}`, e.g. diff --git a/sdk/nodejs/userGpgKey.ts b/sdk/nodejs/userGpgKey.ts index 76ee0666..4ed5d16b 100644 --- a/sdk/nodejs/userGpgKey.ts +++ b/sdk/nodejs/userGpgKey.ts @@ -11,28 +11,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/users.html#get-a-specific-gpg-key) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const exampleUser = gitlab.getUser({ - * username: "example-user", - * }); - * // Manages a GPG key for the specified user. An admin token is required if `user_id` is specified. - * const exampleUserGpgKey = new gitlab.UserGpgKey("exampleUserGpgKey", { - * userId: exampleUser.then(exampleUser => exampleUser.id), - * key: `-----BEGIN PGP PUBLIC KEY BLOCK----- - * ... - * -----END PGP PUBLIC KEY BLOCK-----`, - * }); - * // Manages a GPG key for the current user - * const exampleUserUserGpgKey = new gitlab.UserGpgKey("exampleUserUserGpgKey", {key: `-----BEGIN PGP PUBLIC KEY BLOCK----- - * ... - * -----END PGP PUBLIC KEY BLOCK-----`}); - * ``` - * * ## Import * * You can import a GPG key for a specific user using an id made up of `{user-id}:{key}`, e.g. diff --git a/sdk/nodejs/userSshKey.ts b/sdk/nodejs/userSshKey.ts index 85387d8e..c7587d90 100644 --- a/sdk/nodejs/userSshKey.ts +++ b/sdk/nodejs/userSshKey.ts @@ -9,23 +9,6 @@ import * as utilities from "./utilities"; * * **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/users.html#single-ssh-key) * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as gitlab from "@pulumi/gitlab"; - * - * const exampleUser = gitlab.getUser({ - * username: "example-user", - * }); - * const exampleUserSshKey = new gitlab.UserSshKey("exampleUserSshKey", { - * userId: exampleUser.then(exampleUser => exampleUser.id), - * title: "example-key", - * key: "ssh-ed25519 AAAA...", - * expiresAt: "2016-01-21T00:00:00.000Z", - * }); - * ``` - * * ## Import * * You can import a user ssh key using an id made up of `{user-id}:{key}`, e.g. diff --git a/sdk/python/pulumi_gitlab/_inputs.py b/sdk/python/pulumi_gitlab/_inputs.py index 4841c45d..a1c0a557 100644 --- a/sdk/python/pulumi_gitlab/_inputs.py +++ b/sdk/python/pulumi_gitlab/_inputs.py @@ -69,7 +69,25 @@ def _configure( parent_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, short_id: Optional[pulumi.Input[str]] = None, title: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if author_email is None and 'authorEmail' in kwargs: + author_email = kwargs['authorEmail'] + if author_name is None and 'authorName' in kwargs: + author_name = kwargs['authorName'] + if authored_date is None and 'authoredDate' in kwargs: + authored_date = kwargs['authoredDate'] + if committed_date is None and 'committedDate' in kwargs: + committed_date = kwargs['committedDate'] + if committer_email is None and 'committerEmail' in kwargs: + committer_email = kwargs['committerEmail'] + if committer_name is None and 'committerName' in kwargs: + committer_name = kwargs['committerName'] + if parent_ids is None and 'parentIds' in kwargs: + parent_ids = kwargs['parentIds'] + if short_id is None and 'shortId' in kwargs: + short_id = kwargs['shortId'] + if author_email is not None: _setter("author_email", author_email) if author_name is not None: @@ -220,7 +238,17 @@ def _configure( access_level_description: Optional[pulumi.Input[str]] = None, group_id: Optional[pulumi.Input[int]] = None, user_id: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if access_level_description is None and 'accessLevelDescription' in kwargs: + access_level_description = kwargs['accessLevelDescription'] + if group_id is None and 'groupId' in kwargs: + group_id = kwargs['groupId'] + if user_id is None and 'userId' in kwargs: + user_id = kwargs['userId'] + if access_level is not None: _setter("access_level", access_level) if access_level_description is not None: @@ -306,7 +334,17 @@ def _configure( access_level_description: Optional[pulumi.Input[str]] = None, group_id: Optional[pulumi.Input[int]] = None, user_id: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if access_level_description is None and 'accessLevelDescription' in kwargs: + access_level_description = kwargs['accessLevelDescription'] + if group_id is None and 'groupId' in kwargs: + group_id = kwargs['groupId'] + if user_id is None and 'userId' in kwargs: + user_id = kwargs['userId'] + if access_level is not None: _setter("access_level", access_level) if access_level_description is not None: @@ -392,7 +430,17 @@ def _configure( access_level_description: Optional[pulumi.Input[str]] = None, group_id: Optional[pulumi.Input[int]] = None, user_id: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if access_level_description is None and 'accessLevelDescription' in kwargs: + access_level_description = kwargs['accessLevelDescription'] + if group_id is None and 'groupId' in kwargs: + group_id = kwargs['groupId'] + if user_id is None and 'userId' in kwargs: + user_id = kwargs['userId'] + if access_level is not None: _setter("access_level", access_level) if access_level_description is not None: @@ -474,7 +522,11 @@ def _configure( id: Optional[pulumi.Input[int]] = None, label_id: Optional[pulumi.Input[int]] = None, position: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if label_id is None and 'labelId' in kwargs: + label_id = kwargs['labelId'] + if id is not None: _setter("id", id) if label_id is not None: @@ -542,7 +594,11 @@ def _configure( id: Optional[pulumi.Input[int]] = None, label_id: Optional[pulumi.Input[int]] = None, position: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if label_id is None and 'labelId' in kwargs: + label_id = kwargs['labelId'] + if id is not None: _setter("id", id) if label_id is not None: @@ -630,7 +686,21 @@ def _configure( name_regex_keep: Optional[pulumi.Input[str]] = None, next_run_at: Optional[pulumi.Input[str]] = None, older_than: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if keep_n is None and 'keepN' in kwargs: + keep_n = kwargs['keepN'] + if name_regex is None and 'nameRegex' in kwargs: + name_regex = kwargs['nameRegex'] + if name_regex_delete is None and 'nameRegexDelete' in kwargs: + name_regex_delete = kwargs['nameRegexDelete'] + if name_regex_keep is None and 'nameRegexKeep' in kwargs: + name_regex_keep = kwargs['nameRegexKeep'] + if next_run_at is None and 'nextRunAt' in kwargs: + next_run_at = kwargs['nextRunAt'] + if older_than is None and 'olderThan' in kwargs: + older_than = kwargs['olderThan'] + if cadence is not None: _setter("cadence", cadence) if enabled is not None: @@ -786,7 +856,17 @@ def _configure( label_id: Optional[pulumi.Input[int]] = None, milestone_id: Optional[pulumi.Input[int]] = None, position: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if assignee_id is None and 'assigneeId' in kwargs: + assignee_id = kwargs['assigneeId'] + if iteration_id is None and 'iterationId' in kwargs: + iteration_id = kwargs['iterationId'] + if label_id is None and 'labelId' in kwargs: + label_id = kwargs['labelId'] + if milestone_id is None and 'milestoneId' in kwargs: + milestone_id = kwargs['milestoneId'] + if assignee_id is not None: _setter("assignee_id", assignee_id) if id is not None: @@ -888,7 +968,11 @@ def _configure( _setter: Callable[[Any, Any], None], completed_count: Optional[pulumi.Input[int]] = None, count: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if completed_count is None and 'completedCount' in kwargs: + completed_count = kwargs['completedCount'] + if completed_count is not None: _setter("completed_count", completed_count) if count is not None: @@ -948,7 +1032,19 @@ def _configure( id: Optional[pulumi.Input[int]] = None, required_approvals: Optional[pulumi.Input[int]] = None, user_id: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if access_level_description is None and 'accessLevelDescription' in kwargs: + access_level_description = kwargs['accessLevelDescription'] + if group_id is None and 'groupId' in kwargs: + group_id = kwargs['groupId'] + if required_approvals is None and 'requiredApprovals' in kwargs: + required_approvals = kwargs['requiredApprovals'] + if user_id is None and 'userId' in kwargs: + user_id = kwargs['userId'] + if access_level is not None: _setter("access_level", access_level) if access_level_description is not None: @@ -1066,7 +1162,17 @@ def _configure( group_id: Optional[pulumi.Input[int]] = None, id: Optional[pulumi.Input[int]] = None, user_id: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if access_level_description is None and 'accessLevelDescription' in kwargs: + access_level_description = kwargs['accessLevelDescription'] + if group_id is None and 'groupId' in kwargs: + group_id = kwargs['groupId'] + if user_id is None and 'userId' in kwargs: + user_id = kwargs['userId'] + if access_level is not None: _setter("access_level", access_level) if access_level_description is not None: @@ -1194,7 +1300,31 @@ def _configure( member_check: Optional[pulumi.Input[bool]] = None, prevent_secrets: Optional[pulumi.Input[bool]] = None, reject_unsigned_commits: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if author_email_regex is None and 'authorEmailRegex' in kwargs: + author_email_regex = kwargs['authorEmailRegex'] + if branch_name_regex is None and 'branchNameRegex' in kwargs: + branch_name_regex = kwargs['branchNameRegex'] + if commit_committer_check is None and 'commitCommitterCheck' in kwargs: + commit_committer_check = kwargs['commitCommitterCheck'] + if commit_message_negative_regex is None and 'commitMessageNegativeRegex' in kwargs: + commit_message_negative_regex = kwargs['commitMessageNegativeRegex'] + if commit_message_regex is None and 'commitMessageRegex' in kwargs: + commit_message_regex = kwargs['commitMessageRegex'] + if deny_delete_tag is None and 'denyDeleteTag' in kwargs: + deny_delete_tag = kwargs['denyDeleteTag'] + if file_name_regex is None and 'fileNameRegex' in kwargs: + file_name_regex = kwargs['fileNameRegex'] + if max_file_size is None and 'maxFileSize' in kwargs: + max_file_size = kwargs['maxFileSize'] + if member_check is None and 'memberCheck' in kwargs: + member_check = kwargs['memberCheck'] + if prevent_secrets is None and 'preventSecrets' in kwargs: + prevent_secrets = kwargs['preventSecrets'] + if reject_unsigned_commits is None and 'rejectUnsignedCommits' in kwargs: + reject_unsigned_commits = kwargs['rejectUnsignedCommits'] + if author_email_regex is not None: _setter("author_email_regex", author_email_regex) if branch_name_regex is not None: @@ -1393,7 +1523,25 @@ def _configure( parent_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, short_id: Optional[pulumi.Input[str]] = None, title: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if author_email is None and 'authorEmail' in kwargs: + author_email = kwargs['authorEmail'] + if author_name is None and 'authorName' in kwargs: + author_name = kwargs['authorName'] + if authored_date is None and 'authoredDate' in kwargs: + authored_date = kwargs['authoredDate'] + if committed_date is None and 'committedDate' in kwargs: + committed_date = kwargs['committedDate'] + if committer_email is None and 'committerEmail' in kwargs: + committer_email = kwargs['committerEmail'] + if committer_name is None and 'committerName' in kwargs: + committer_name = kwargs['committerName'] + if parent_ids is None and 'parentIds' in kwargs: + parent_ids = kwargs['parentIds'] + if short_id is None and 'shortId' in kwargs: + short_id = kwargs['shortId'] + if author_email is not None: _setter("author_email", author_email) if author_name is not None: @@ -1532,7 +1680,11 @@ def _configure( _setter: Callable[[Any, Any], None], description: Optional[pulumi.Input[str]] = None, tag_name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if tag_name is None and 'tagName' in kwargs: + tag_name = kwargs['tagName'] + if description is not None: _setter("description", description) if tag_name is not None: @@ -1584,7 +1736,17 @@ def _configure( access_level_description: Optional[pulumi.Input[str]] = None, group_id: Optional[pulumi.Input[int]] = None, user_id: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if access_level_description is None and 'accessLevelDescription' in kwargs: + access_level_description = kwargs['accessLevelDescription'] + if group_id is None and 'groupId' in kwargs: + group_id = kwargs['groupId'] + if user_id is None and 'userId' in kwargs: + user_id = kwargs['userId'] + if access_level is not None: _setter("access_level", access_level) if access_level_description is not None: diff --git a/sdk/python/pulumi_gitlab/_utilities.py b/sdk/python/pulumi_gitlab/_utilities.py index 2d9a3c84..2936b65a 100644 --- a/sdk/python/pulumi_gitlab/_utilities.py +++ b/sdk/python/pulumi_gitlab/_utilities.py @@ -246,5 +246,24 @@ def lifted_func(*args, opts=None, **kwargs): return (lambda _: lifted_func) + +def configure(val, cls: type, input: bool): + def _apply(v): + if isinstance(v, typing.Mapping): + def _setter(key, value): + v[key] = value + cls._configure(_setter, **v) + return v + + # Check that cls has a static _configure method. External classes may + # not have it if it was generated with older codegen. + if hasattr(cls, "_configure"): + if isinstance(val, typing.Mapping): + return _apply(val) + elif input and val is not None and not isinstance(val, cls): + return pulumi.Output.from_input(val).apply(_apply) + + return val + def get_plugin_download_url(): return None diff --git a/sdk/python/pulumi_gitlab/application.py b/sdk/python/pulumi_gitlab/application.py index c2689173..5f033ea6 100644 --- a/sdk/python/pulumi_gitlab/application.py +++ b/sdk/python/pulumi_gitlab/application.py @@ -36,11 +36,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - redirect_url: pulumi.Input[str], - scopes: pulumi.Input[Sequence[pulumi.Input[str]]], + redirect_url: Optional[pulumi.Input[str]] = None, + scopes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, confidential: Optional[pulumi.Input[bool]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if redirect_url is None and 'redirectUrl' in kwargs: + redirect_url = kwargs['redirectUrl'] + if redirect_url is None: + raise TypeError("Missing 'redirect_url' argument") + if scopes is None: + raise TypeError("Missing 'scopes' argument") + _setter("redirect_url", redirect_url) _setter("scopes", scopes) if confidential is not None: @@ -135,7 +143,13 @@ def _configure( redirect_url: Optional[pulumi.Input[str]] = None, scopes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, secret: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if application_id is None and 'applicationId' in kwargs: + application_id = kwargs['applicationId'] + if redirect_url is None and 'redirectUrl' in kwargs: + redirect_url = kwargs['redirectUrl'] + if application_id is not None: _setter("application_id", application_id) if confidential is not None: @@ -241,18 +255,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/applications.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - oidc = gitlab.Application("oidc", - confidential=True, - redirect_url="https://mycompany.com", - scopes=["openid"]) - ``` - ## Import Gitlab applications can be imported with their id, e.g. @@ -285,18 +287,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/applications.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - oidc = gitlab.Application("oidc", - confidential=True, - redirect_url="https://mycompany.com", - scopes=["openid"]) - ``` - ## Import Gitlab applications can be imported with their id, e.g. diff --git a/sdk/python/pulumi_gitlab/application_settings.py b/sdk/python/pulumi_gitlab/application_settings.py index 7cc0f376..48310ce5 100644 --- a/sdk/python/pulumi_gitlab/application_settings.py +++ b/sdk/python/pulumi_gitlab/application_settings.py @@ -991,7 +991,491 @@ def _configure( web_ide_clientside_preview_enabled: Optional[pulumi.Input[bool]] = None, whats_new_variant: Optional[pulumi.Input[str]] = None, wiki_page_max_content_bytes: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if abuse_notification_email is None and 'abuseNotificationEmail' in kwargs: + abuse_notification_email = kwargs['abuseNotificationEmail'] + if admin_mode is None and 'adminMode' in kwargs: + admin_mode = kwargs['adminMode'] + if after_sign_out_path is None and 'afterSignOutPath' in kwargs: + after_sign_out_path = kwargs['afterSignOutPath'] + if after_sign_up_text is None and 'afterSignUpText' in kwargs: + after_sign_up_text = kwargs['afterSignUpText'] + if akismet_api_key is None and 'akismetApiKey' in kwargs: + akismet_api_key = kwargs['akismetApiKey'] + if akismet_enabled is None and 'akismetEnabled' in kwargs: + akismet_enabled = kwargs['akismetEnabled'] + if allow_group_owners_to_manage_ldap is None and 'allowGroupOwnersToManageLdap' in kwargs: + allow_group_owners_to_manage_ldap = kwargs['allowGroupOwnersToManageLdap'] + if allow_local_requests_from_system_hooks is None and 'allowLocalRequestsFromSystemHooks' in kwargs: + allow_local_requests_from_system_hooks = kwargs['allowLocalRequestsFromSystemHooks'] + if allow_local_requests_from_web_hooks_and_services is None and 'allowLocalRequestsFromWebHooksAndServices' in kwargs: + allow_local_requests_from_web_hooks_and_services = kwargs['allowLocalRequestsFromWebHooksAndServices'] + if archive_builds_in_human_readable is None and 'archiveBuildsInHumanReadable' in kwargs: + archive_builds_in_human_readable = kwargs['archiveBuildsInHumanReadable'] + if asset_proxy_allowlists is None and 'assetProxyAllowlists' in kwargs: + asset_proxy_allowlists = kwargs['assetProxyAllowlists'] + if asset_proxy_enabled is None and 'assetProxyEnabled' in kwargs: + asset_proxy_enabled = kwargs['assetProxyEnabled'] + if asset_proxy_secret_key is None and 'assetProxySecretKey' in kwargs: + asset_proxy_secret_key = kwargs['assetProxySecretKey'] + if asset_proxy_url is None and 'assetProxyUrl' in kwargs: + asset_proxy_url = kwargs['assetProxyUrl'] + if authorized_keys_enabled is None and 'authorizedKeysEnabled' in kwargs: + authorized_keys_enabled = kwargs['authorizedKeysEnabled'] + if auto_devops_domain is None and 'autoDevopsDomain' in kwargs: + auto_devops_domain = kwargs['autoDevopsDomain'] + if auto_devops_enabled is None and 'autoDevopsEnabled' in kwargs: + auto_devops_enabled = kwargs['autoDevopsEnabled'] + if automatic_purchased_storage_allocation is None and 'automaticPurchasedStorageAllocation' in kwargs: + automatic_purchased_storage_allocation = kwargs['automaticPurchasedStorageAllocation'] + if can_create_group is None and 'canCreateGroup' in kwargs: + can_create_group = kwargs['canCreateGroup'] + if check_namespace_plan is None and 'checkNamespacePlan' in kwargs: + check_namespace_plan = kwargs['checkNamespacePlan'] + if commit_email_hostname is None and 'commitEmailHostname' in kwargs: + commit_email_hostname = kwargs['commitEmailHostname'] + if container_expiration_policies_enable_historic_entries is None and 'containerExpirationPoliciesEnableHistoricEntries' in kwargs: + container_expiration_policies_enable_historic_entries = kwargs['containerExpirationPoliciesEnableHistoricEntries'] + if container_registry_cleanup_tags_service_max_list_size is None and 'containerRegistryCleanupTagsServiceMaxListSize' in kwargs: + container_registry_cleanup_tags_service_max_list_size = kwargs['containerRegistryCleanupTagsServiceMaxListSize'] + if container_registry_delete_tags_service_timeout is None and 'containerRegistryDeleteTagsServiceTimeout' in kwargs: + container_registry_delete_tags_service_timeout = kwargs['containerRegistryDeleteTagsServiceTimeout'] + if container_registry_expiration_policies_caching is None and 'containerRegistryExpirationPoliciesCaching' in kwargs: + container_registry_expiration_policies_caching = kwargs['containerRegistryExpirationPoliciesCaching'] + if container_registry_expiration_policies_worker_capacity is None and 'containerRegistryExpirationPoliciesWorkerCapacity' in kwargs: + container_registry_expiration_policies_worker_capacity = kwargs['containerRegistryExpirationPoliciesWorkerCapacity'] + if container_registry_token_expire_delay is None and 'containerRegistryTokenExpireDelay' in kwargs: + container_registry_token_expire_delay = kwargs['containerRegistryTokenExpireDelay'] + if deactivate_dormant_users is None and 'deactivateDormantUsers' in kwargs: + deactivate_dormant_users = kwargs['deactivateDormantUsers'] + if default_artifacts_expire_in is None and 'defaultArtifactsExpireIn' in kwargs: + default_artifacts_expire_in = kwargs['defaultArtifactsExpireIn'] + if default_branch_name is None and 'defaultBranchName' in kwargs: + default_branch_name = kwargs['defaultBranchName'] + if default_branch_protection is None and 'defaultBranchProtection' in kwargs: + default_branch_protection = kwargs['defaultBranchProtection'] + if default_ci_config_path is None and 'defaultCiConfigPath' in kwargs: + default_ci_config_path = kwargs['defaultCiConfigPath'] + if default_group_visibility is None and 'defaultGroupVisibility' in kwargs: + default_group_visibility = kwargs['defaultGroupVisibility'] + if default_project_creation is None and 'defaultProjectCreation' in kwargs: + default_project_creation = kwargs['defaultProjectCreation'] + if default_project_visibility is None and 'defaultProjectVisibility' in kwargs: + default_project_visibility = kwargs['defaultProjectVisibility'] + if default_projects_limit is None and 'defaultProjectsLimit' in kwargs: + default_projects_limit = kwargs['defaultProjectsLimit'] + if default_snippet_visibility is None and 'defaultSnippetVisibility' in kwargs: + default_snippet_visibility = kwargs['defaultSnippetVisibility'] + if delayed_group_deletion is None and 'delayedGroupDeletion' in kwargs: + delayed_group_deletion = kwargs['delayedGroupDeletion'] + if delayed_project_deletion is None and 'delayedProjectDeletion' in kwargs: + delayed_project_deletion = kwargs['delayedProjectDeletion'] + if delete_inactive_projects is None and 'deleteInactiveProjects' in kwargs: + delete_inactive_projects = kwargs['deleteInactiveProjects'] + if deletion_adjourned_period is None and 'deletionAdjournedPeriod' in kwargs: + deletion_adjourned_period = kwargs['deletionAdjournedPeriod'] + if diff_max_files is None and 'diffMaxFiles' in kwargs: + diff_max_files = kwargs['diffMaxFiles'] + if diff_max_lines is None and 'diffMaxLines' in kwargs: + diff_max_lines = kwargs['diffMaxLines'] + if diff_max_patch_bytes is None and 'diffMaxPatchBytes' in kwargs: + diff_max_patch_bytes = kwargs['diffMaxPatchBytes'] + if disable_feed_token is None and 'disableFeedToken' in kwargs: + disable_feed_token = kwargs['disableFeedToken'] + if disabled_oauth_sign_in_sources is None and 'disabledOauthSignInSources' in kwargs: + disabled_oauth_sign_in_sources = kwargs['disabledOauthSignInSources'] + if dns_rebinding_protection_enabled is None and 'dnsRebindingProtectionEnabled' in kwargs: + dns_rebinding_protection_enabled = kwargs['dnsRebindingProtectionEnabled'] + if domain_allowlists is None and 'domainAllowlists' in kwargs: + domain_allowlists = kwargs['domainAllowlists'] + if domain_denylist_enabled is None and 'domainDenylistEnabled' in kwargs: + domain_denylist_enabled = kwargs['domainDenylistEnabled'] + if domain_denylists is None and 'domainDenylists' in kwargs: + domain_denylists = kwargs['domainDenylists'] + if dsa_key_restriction is None and 'dsaKeyRestriction' in kwargs: + dsa_key_restriction = kwargs['dsaKeyRestriction'] + if ecdsa_key_restriction is None and 'ecdsaKeyRestriction' in kwargs: + ecdsa_key_restriction = kwargs['ecdsaKeyRestriction'] + if ecdsa_sk_key_restriction is None and 'ecdsaSkKeyRestriction' in kwargs: + ecdsa_sk_key_restriction = kwargs['ecdsaSkKeyRestriction'] + if ed25519_key_restriction is None and 'ed25519KeyRestriction' in kwargs: + ed25519_key_restriction = kwargs['ed25519KeyRestriction'] + if ed25519_sk_key_restriction is None and 'ed25519SkKeyRestriction' in kwargs: + ed25519_sk_key_restriction = kwargs['ed25519SkKeyRestriction'] + if eks_access_key_id is None and 'eksAccessKeyId' in kwargs: + eks_access_key_id = kwargs['eksAccessKeyId'] + if eks_account_id is None and 'eksAccountId' in kwargs: + eks_account_id = kwargs['eksAccountId'] + if eks_integration_enabled is None and 'eksIntegrationEnabled' in kwargs: + eks_integration_enabled = kwargs['eksIntegrationEnabled'] + if eks_secret_access_key is None and 'eksSecretAccessKey' in kwargs: + eks_secret_access_key = kwargs['eksSecretAccessKey'] + if elasticsearch_aws is None and 'elasticsearchAws' in kwargs: + elasticsearch_aws = kwargs['elasticsearchAws'] + if elasticsearch_aws_access_key is None and 'elasticsearchAwsAccessKey' in kwargs: + elasticsearch_aws_access_key = kwargs['elasticsearchAwsAccessKey'] + if elasticsearch_aws_region is None and 'elasticsearchAwsRegion' in kwargs: + elasticsearch_aws_region = kwargs['elasticsearchAwsRegion'] + if elasticsearch_aws_secret_access_key is None and 'elasticsearchAwsSecretAccessKey' in kwargs: + elasticsearch_aws_secret_access_key = kwargs['elasticsearchAwsSecretAccessKey'] + if elasticsearch_indexed_field_length_limit is None and 'elasticsearchIndexedFieldLengthLimit' in kwargs: + elasticsearch_indexed_field_length_limit = kwargs['elasticsearchIndexedFieldLengthLimit'] + if elasticsearch_indexed_file_size_limit_kb is None and 'elasticsearchIndexedFileSizeLimitKb' in kwargs: + elasticsearch_indexed_file_size_limit_kb = kwargs['elasticsearchIndexedFileSizeLimitKb'] + if elasticsearch_indexing is None and 'elasticsearchIndexing' in kwargs: + elasticsearch_indexing = kwargs['elasticsearchIndexing'] + if elasticsearch_limit_indexing is None and 'elasticsearchLimitIndexing' in kwargs: + elasticsearch_limit_indexing = kwargs['elasticsearchLimitIndexing'] + if elasticsearch_max_bulk_concurrency is None and 'elasticsearchMaxBulkConcurrency' in kwargs: + elasticsearch_max_bulk_concurrency = kwargs['elasticsearchMaxBulkConcurrency'] + if elasticsearch_max_bulk_size_mb is None and 'elasticsearchMaxBulkSizeMb' in kwargs: + elasticsearch_max_bulk_size_mb = kwargs['elasticsearchMaxBulkSizeMb'] + if elasticsearch_namespace_ids is None and 'elasticsearchNamespaceIds' in kwargs: + elasticsearch_namespace_ids = kwargs['elasticsearchNamespaceIds'] + if elasticsearch_password is None and 'elasticsearchPassword' in kwargs: + elasticsearch_password = kwargs['elasticsearchPassword'] + if elasticsearch_project_ids is None and 'elasticsearchProjectIds' in kwargs: + elasticsearch_project_ids = kwargs['elasticsearchProjectIds'] + if elasticsearch_search is None and 'elasticsearchSearch' in kwargs: + elasticsearch_search = kwargs['elasticsearchSearch'] + if elasticsearch_urls is None and 'elasticsearchUrls' in kwargs: + elasticsearch_urls = kwargs['elasticsearchUrls'] + if elasticsearch_username is None and 'elasticsearchUsername' in kwargs: + elasticsearch_username = kwargs['elasticsearchUsername'] + if email_additional_text is None and 'emailAdditionalText' in kwargs: + email_additional_text = kwargs['emailAdditionalText'] + if email_author_in_body is None and 'emailAuthorInBody' in kwargs: + email_author_in_body = kwargs['emailAuthorInBody'] + if enabled_git_access_protocol is None and 'enabledGitAccessProtocol' in kwargs: + enabled_git_access_protocol = kwargs['enabledGitAccessProtocol'] + if enforce_namespace_storage_limit is None and 'enforceNamespaceStorageLimit' in kwargs: + enforce_namespace_storage_limit = kwargs['enforceNamespaceStorageLimit'] + if enforce_terms is None and 'enforceTerms' in kwargs: + enforce_terms = kwargs['enforceTerms'] + if external_auth_client_cert is None and 'externalAuthClientCert' in kwargs: + external_auth_client_cert = kwargs['externalAuthClientCert'] + if external_auth_client_key is None and 'externalAuthClientKey' in kwargs: + external_auth_client_key = kwargs['externalAuthClientKey'] + if external_auth_client_key_pass is None and 'externalAuthClientKeyPass' in kwargs: + external_auth_client_key_pass = kwargs['externalAuthClientKeyPass'] + if external_authorization_service_default_label is None and 'externalAuthorizationServiceDefaultLabel' in kwargs: + external_authorization_service_default_label = kwargs['externalAuthorizationServiceDefaultLabel'] + if external_authorization_service_enabled is None and 'externalAuthorizationServiceEnabled' in kwargs: + external_authorization_service_enabled = kwargs['externalAuthorizationServiceEnabled'] + if external_authorization_service_timeout is None and 'externalAuthorizationServiceTimeout' in kwargs: + external_authorization_service_timeout = kwargs['externalAuthorizationServiceTimeout'] + if external_authorization_service_url is None and 'externalAuthorizationServiceUrl' in kwargs: + external_authorization_service_url = kwargs['externalAuthorizationServiceUrl'] + if external_pipeline_validation_service_timeout is None and 'externalPipelineValidationServiceTimeout' in kwargs: + external_pipeline_validation_service_timeout = kwargs['externalPipelineValidationServiceTimeout'] + if external_pipeline_validation_service_token is None and 'externalPipelineValidationServiceToken' in kwargs: + external_pipeline_validation_service_token = kwargs['externalPipelineValidationServiceToken'] + if external_pipeline_validation_service_url is None and 'externalPipelineValidationServiceUrl' in kwargs: + external_pipeline_validation_service_url = kwargs['externalPipelineValidationServiceUrl'] + if file_template_project_id is None and 'fileTemplateProjectId' in kwargs: + file_template_project_id = kwargs['fileTemplateProjectId'] + if first_day_of_week is None and 'firstDayOfWeek' in kwargs: + first_day_of_week = kwargs['firstDayOfWeek'] + if geo_node_allowed_ips is None and 'geoNodeAllowedIps' in kwargs: + geo_node_allowed_ips = kwargs['geoNodeAllowedIps'] + if geo_status_timeout is None and 'geoStatusTimeout' in kwargs: + geo_status_timeout = kwargs['geoStatusTimeout'] + if git_rate_limit_users_allowlists is None and 'gitRateLimitUsersAllowlists' in kwargs: + git_rate_limit_users_allowlists = kwargs['gitRateLimitUsersAllowlists'] + if git_two_factor_session_expiry is None and 'gitTwoFactorSessionExpiry' in kwargs: + git_two_factor_session_expiry = kwargs['gitTwoFactorSessionExpiry'] + if gitaly_timeout_default is None and 'gitalyTimeoutDefault' in kwargs: + gitaly_timeout_default = kwargs['gitalyTimeoutDefault'] + if gitaly_timeout_fast is None and 'gitalyTimeoutFast' in kwargs: + gitaly_timeout_fast = kwargs['gitalyTimeoutFast'] + if gitaly_timeout_medium is None and 'gitalyTimeoutMedium' in kwargs: + gitaly_timeout_medium = kwargs['gitalyTimeoutMedium'] + if grafana_enabled is None and 'grafanaEnabled' in kwargs: + grafana_enabled = kwargs['grafanaEnabled'] + if grafana_url is None and 'grafanaUrl' in kwargs: + grafana_url = kwargs['grafanaUrl'] + if gravatar_enabled is None and 'gravatarEnabled' in kwargs: + gravatar_enabled = kwargs['gravatarEnabled'] + if group_owners_can_manage_default_branch_protection is None and 'groupOwnersCanManageDefaultBranchProtection' in kwargs: + group_owners_can_manage_default_branch_protection = kwargs['groupOwnersCanManageDefaultBranchProtection'] + if hashed_storage_enabled is None and 'hashedStorageEnabled' in kwargs: + hashed_storage_enabled = kwargs['hashedStorageEnabled'] + if help_page_hide_commercial_content is None and 'helpPageHideCommercialContent' in kwargs: + help_page_hide_commercial_content = kwargs['helpPageHideCommercialContent'] + if help_page_support_url is None and 'helpPageSupportUrl' in kwargs: + help_page_support_url = kwargs['helpPageSupportUrl'] + if help_page_text is None and 'helpPageText' in kwargs: + help_page_text = kwargs['helpPageText'] + if help_text is None and 'helpText' in kwargs: + help_text = kwargs['helpText'] + if hide_third_party_offers is None and 'hideThirdPartyOffers' in kwargs: + hide_third_party_offers = kwargs['hideThirdPartyOffers'] + if home_page_url is None and 'homePageUrl' in kwargs: + home_page_url = kwargs['homePageUrl'] + if housekeeping_enabled is None and 'housekeepingEnabled' in kwargs: + housekeeping_enabled = kwargs['housekeepingEnabled'] + if housekeeping_full_repack_period is None and 'housekeepingFullRepackPeriod' in kwargs: + housekeeping_full_repack_period = kwargs['housekeepingFullRepackPeriod'] + if housekeeping_gc_period is None and 'housekeepingGcPeriod' in kwargs: + housekeeping_gc_period = kwargs['housekeepingGcPeriod'] + if housekeeping_incremental_repack_period is None and 'housekeepingIncrementalRepackPeriod' in kwargs: + housekeeping_incremental_repack_period = kwargs['housekeepingIncrementalRepackPeriod'] + if html_emails_enabled is None and 'htmlEmailsEnabled' in kwargs: + html_emails_enabled = kwargs['htmlEmailsEnabled'] + if import_sources is None and 'importSources' in kwargs: + import_sources = kwargs['importSources'] + if in_product_marketing_emails_enabled is None and 'inProductMarketingEmailsEnabled' in kwargs: + in_product_marketing_emails_enabled = kwargs['inProductMarketingEmailsEnabled'] + if inactive_projects_delete_after_months is None and 'inactiveProjectsDeleteAfterMonths' in kwargs: + inactive_projects_delete_after_months = kwargs['inactiveProjectsDeleteAfterMonths'] + if inactive_projects_min_size_mb is None and 'inactiveProjectsMinSizeMb' in kwargs: + inactive_projects_min_size_mb = kwargs['inactiveProjectsMinSizeMb'] + if inactive_projects_send_warning_email_after_months is None and 'inactiveProjectsSendWarningEmailAfterMonths' in kwargs: + inactive_projects_send_warning_email_after_months = kwargs['inactiveProjectsSendWarningEmailAfterMonths'] + if invisible_captcha_enabled is None and 'invisibleCaptchaEnabled' in kwargs: + invisible_captcha_enabled = kwargs['invisibleCaptchaEnabled'] + if issues_create_limit is None and 'issuesCreateLimit' in kwargs: + issues_create_limit = kwargs['issuesCreateLimit'] + if keep_latest_artifact is None and 'keepLatestArtifact' in kwargs: + keep_latest_artifact = kwargs['keepLatestArtifact'] + if local_markdown_version is None and 'localMarkdownVersion' in kwargs: + local_markdown_version = kwargs['localMarkdownVersion'] + if mailgun_events_enabled is None and 'mailgunEventsEnabled' in kwargs: + mailgun_events_enabled = kwargs['mailgunEventsEnabled'] + if mailgun_signing_key is None and 'mailgunSigningKey' in kwargs: + mailgun_signing_key = kwargs['mailgunSigningKey'] + if maintenance_mode is None and 'maintenanceMode' in kwargs: + maintenance_mode = kwargs['maintenanceMode'] + if maintenance_mode_message is None and 'maintenanceModeMessage' in kwargs: + maintenance_mode_message = kwargs['maintenanceModeMessage'] + if max_artifacts_size is None and 'maxArtifactsSize' in kwargs: + max_artifacts_size = kwargs['maxArtifactsSize'] + if max_attachment_size is None and 'maxAttachmentSize' in kwargs: + max_attachment_size = kwargs['maxAttachmentSize'] + if max_export_size is None and 'maxExportSize' in kwargs: + max_export_size = kwargs['maxExportSize'] + if max_import_size is None and 'maxImportSize' in kwargs: + max_import_size = kwargs['maxImportSize'] + if max_number_of_repository_downloads is None and 'maxNumberOfRepositoryDownloads' in kwargs: + max_number_of_repository_downloads = kwargs['maxNumberOfRepositoryDownloads'] + if max_number_of_repository_downloads_within_time_period is None and 'maxNumberOfRepositoryDownloadsWithinTimePeriod' in kwargs: + max_number_of_repository_downloads_within_time_period = kwargs['maxNumberOfRepositoryDownloadsWithinTimePeriod'] + if max_pages_size is None and 'maxPagesSize' in kwargs: + max_pages_size = kwargs['maxPagesSize'] + if max_personal_access_token_lifetime is None and 'maxPersonalAccessTokenLifetime' in kwargs: + max_personal_access_token_lifetime = kwargs['maxPersonalAccessTokenLifetime'] + if max_ssh_key_lifetime is None and 'maxSshKeyLifetime' in kwargs: + max_ssh_key_lifetime = kwargs['maxSshKeyLifetime'] + if metrics_method_call_threshold is None and 'metricsMethodCallThreshold' in kwargs: + metrics_method_call_threshold = kwargs['metricsMethodCallThreshold'] + if mirror_available is None and 'mirrorAvailable' in kwargs: + mirror_available = kwargs['mirrorAvailable'] + if mirror_capacity_threshold is None and 'mirrorCapacityThreshold' in kwargs: + mirror_capacity_threshold = kwargs['mirrorCapacityThreshold'] + if mirror_max_capacity is None and 'mirrorMaxCapacity' in kwargs: + mirror_max_capacity = kwargs['mirrorMaxCapacity'] + if mirror_max_delay is None and 'mirrorMaxDelay' in kwargs: + mirror_max_delay = kwargs['mirrorMaxDelay'] + if npm_package_requests_forwarding is None and 'npmPackageRequestsForwarding' in kwargs: + npm_package_requests_forwarding = kwargs['npmPackageRequestsForwarding'] + if outbound_local_requests_whitelists is None and 'outboundLocalRequestsWhitelists' in kwargs: + outbound_local_requests_whitelists = kwargs['outboundLocalRequestsWhitelists'] + if package_registry_cleanup_policies_worker_capacity is None and 'packageRegistryCleanupPoliciesWorkerCapacity' in kwargs: + package_registry_cleanup_policies_worker_capacity = kwargs['packageRegistryCleanupPoliciesWorkerCapacity'] + if pages_domain_verification_enabled is None and 'pagesDomainVerificationEnabled' in kwargs: + pages_domain_verification_enabled = kwargs['pagesDomainVerificationEnabled'] + if password_authentication_enabled_for_git is None and 'passwordAuthenticationEnabledForGit' in kwargs: + password_authentication_enabled_for_git = kwargs['passwordAuthenticationEnabledForGit'] + if password_authentication_enabled_for_web is None and 'passwordAuthenticationEnabledForWeb' in kwargs: + password_authentication_enabled_for_web = kwargs['passwordAuthenticationEnabledForWeb'] + if password_lowercase_required is None and 'passwordLowercaseRequired' in kwargs: + password_lowercase_required = kwargs['passwordLowercaseRequired'] + if password_number_required is None and 'passwordNumberRequired' in kwargs: + password_number_required = kwargs['passwordNumberRequired'] + if password_symbol_required is None and 'passwordSymbolRequired' in kwargs: + password_symbol_required = kwargs['passwordSymbolRequired'] + if password_uppercase_required is None and 'passwordUppercaseRequired' in kwargs: + password_uppercase_required = kwargs['passwordUppercaseRequired'] + if performance_bar_allowed_group_path is None and 'performanceBarAllowedGroupPath' in kwargs: + performance_bar_allowed_group_path = kwargs['performanceBarAllowedGroupPath'] + if personal_access_token_prefix is None and 'personalAccessTokenPrefix' in kwargs: + personal_access_token_prefix = kwargs['personalAccessTokenPrefix'] + if pipeline_limit_per_project_user_sha is None and 'pipelineLimitPerProjectUserSha' in kwargs: + pipeline_limit_per_project_user_sha = kwargs['pipelineLimitPerProjectUserSha'] + if plantuml_enabled is None and 'plantumlEnabled' in kwargs: + plantuml_enabled = kwargs['plantumlEnabled'] + if plantuml_url is None and 'plantumlUrl' in kwargs: + plantuml_url = kwargs['plantumlUrl'] + if polling_interval_multiplier is None and 'pollingIntervalMultiplier' in kwargs: + polling_interval_multiplier = kwargs['pollingIntervalMultiplier'] + if project_export_enabled is None and 'projectExportEnabled' in kwargs: + project_export_enabled = kwargs['projectExportEnabled'] + if prometheus_metrics_enabled is None and 'prometheusMetricsEnabled' in kwargs: + prometheus_metrics_enabled = kwargs['prometheusMetricsEnabled'] + if protected_ci_variables is None and 'protectedCiVariables' in kwargs: + protected_ci_variables = kwargs['protectedCiVariables'] + if push_event_activities_limit is None and 'pushEventActivitiesLimit' in kwargs: + push_event_activities_limit = kwargs['pushEventActivitiesLimit'] + if push_event_hooks_limit is None and 'pushEventHooksLimit' in kwargs: + push_event_hooks_limit = kwargs['pushEventHooksLimit'] + if pypi_package_requests_forwarding is None and 'pypiPackageRequestsForwarding' in kwargs: + pypi_package_requests_forwarding = kwargs['pypiPackageRequestsForwarding'] + if rate_limiting_response_text is None and 'rateLimitingResponseText' in kwargs: + rate_limiting_response_text = kwargs['rateLimitingResponseText'] + if raw_blob_request_limit is None and 'rawBlobRequestLimit' in kwargs: + raw_blob_request_limit = kwargs['rawBlobRequestLimit'] + if recaptcha_enabled is None and 'recaptchaEnabled' in kwargs: + recaptcha_enabled = kwargs['recaptchaEnabled'] + if recaptcha_private_key is None and 'recaptchaPrivateKey' in kwargs: + recaptcha_private_key = kwargs['recaptchaPrivateKey'] + if recaptcha_site_key is None and 'recaptchaSiteKey' in kwargs: + recaptcha_site_key = kwargs['recaptchaSiteKey'] + if receive_max_input_size is None and 'receiveMaxInputSize' in kwargs: + receive_max_input_size = kwargs['receiveMaxInputSize'] + if repository_checks_enabled is None and 'repositoryChecksEnabled' in kwargs: + repository_checks_enabled = kwargs['repositoryChecksEnabled'] + if repository_size_limit is None and 'repositorySizeLimit' in kwargs: + repository_size_limit = kwargs['repositorySizeLimit'] + if repository_storages is None and 'repositoryStorages' in kwargs: + repository_storages = kwargs['repositoryStorages'] + if repository_storages_weighted is None and 'repositoryStoragesWeighted' in kwargs: + repository_storages_weighted = kwargs['repositoryStoragesWeighted'] + if require_admin_approval_after_user_signup is None and 'requireAdminApprovalAfterUserSignup' in kwargs: + require_admin_approval_after_user_signup = kwargs['requireAdminApprovalAfterUserSignup'] + if require_two_factor_authentication is None and 'requireTwoFactorAuthentication' in kwargs: + require_two_factor_authentication = kwargs['requireTwoFactorAuthentication'] + if restricted_visibility_levels is None and 'restrictedVisibilityLevels' in kwargs: + restricted_visibility_levels = kwargs['restrictedVisibilityLevels'] + if rsa_key_restriction is None and 'rsaKeyRestriction' in kwargs: + rsa_key_restriction = kwargs['rsaKeyRestriction'] + if search_rate_limit is None and 'searchRateLimit' in kwargs: + search_rate_limit = kwargs['searchRateLimit'] + if search_rate_limit_unauthenticated is None and 'searchRateLimitUnauthenticated' in kwargs: + search_rate_limit_unauthenticated = kwargs['searchRateLimitUnauthenticated'] + if send_user_confirmation_email is None and 'sendUserConfirmationEmail' in kwargs: + send_user_confirmation_email = kwargs['sendUserConfirmationEmail'] + if session_expire_delay is None and 'sessionExpireDelay' in kwargs: + session_expire_delay = kwargs['sessionExpireDelay'] + if shared_runners_enabled is None and 'sharedRunnersEnabled' in kwargs: + shared_runners_enabled = kwargs['sharedRunnersEnabled'] + if shared_runners_minutes is None and 'sharedRunnersMinutes' in kwargs: + shared_runners_minutes = kwargs['sharedRunnersMinutes'] + if shared_runners_text is None and 'sharedRunnersText' in kwargs: + shared_runners_text = kwargs['sharedRunnersText'] + if sidekiq_job_limiter_compression_threshold_bytes is None and 'sidekiqJobLimiterCompressionThresholdBytes' in kwargs: + sidekiq_job_limiter_compression_threshold_bytes = kwargs['sidekiqJobLimiterCompressionThresholdBytes'] + if sidekiq_job_limiter_limit_bytes is None and 'sidekiqJobLimiterLimitBytes' in kwargs: + sidekiq_job_limiter_limit_bytes = kwargs['sidekiqJobLimiterLimitBytes'] + if sidekiq_job_limiter_mode is None and 'sidekiqJobLimiterMode' in kwargs: + sidekiq_job_limiter_mode = kwargs['sidekiqJobLimiterMode'] + if sign_in_text is None and 'signInText' in kwargs: + sign_in_text = kwargs['signInText'] + if signup_enabled is None and 'signupEnabled' in kwargs: + signup_enabled = kwargs['signupEnabled'] + if slack_app_enabled is None and 'slackAppEnabled' in kwargs: + slack_app_enabled = kwargs['slackAppEnabled'] + if slack_app_id is None and 'slackAppId' in kwargs: + slack_app_id = kwargs['slackAppId'] + if slack_app_secret is None and 'slackAppSecret' in kwargs: + slack_app_secret = kwargs['slackAppSecret'] + if slack_app_signing_secret is None and 'slackAppSigningSecret' in kwargs: + slack_app_signing_secret = kwargs['slackAppSigningSecret'] + if slack_app_verification_token is None and 'slackAppVerificationToken' in kwargs: + slack_app_verification_token = kwargs['slackAppVerificationToken'] + if snippet_size_limit is None and 'snippetSizeLimit' in kwargs: + snippet_size_limit = kwargs['snippetSizeLimit'] + if snowplow_app_id is None and 'snowplowAppId' in kwargs: + snowplow_app_id = kwargs['snowplowAppId'] + if snowplow_collector_hostname is None and 'snowplowCollectorHostname' in kwargs: + snowplow_collector_hostname = kwargs['snowplowCollectorHostname'] + if snowplow_cookie_domain is None and 'snowplowCookieDomain' in kwargs: + snowplow_cookie_domain = kwargs['snowplowCookieDomain'] + if snowplow_enabled is None and 'snowplowEnabled' in kwargs: + snowplow_enabled = kwargs['snowplowEnabled'] + if sourcegraph_enabled is None and 'sourcegraphEnabled' in kwargs: + sourcegraph_enabled = kwargs['sourcegraphEnabled'] + if sourcegraph_public_only is None and 'sourcegraphPublicOnly' in kwargs: + sourcegraph_public_only = kwargs['sourcegraphPublicOnly'] + if sourcegraph_url is None and 'sourcegraphUrl' in kwargs: + sourcegraph_url = kwargs['sourcegraphUrl'] + if spam_check_api_key is None and 'spamCheckApiKey' in kwargs: + spam_check_api_key = kwargs['spamCheckApiKey'] + if spam_check_endpoint_enabled is None and 'spamCheckEndpointEnabled' in kwargs: + spam_check_endpoint_enabled = kwargs['spamCheckEndpointEnabled'] + if spam_check_endpoint_url is None and 'spamCheckEndpointUrl' in kwargs: + spam_check_endpoint_url = kwargs['spamCheckEndpointUrl'] + if suggest_pipeline_enabled is None and 'suggestPipelineEnabled' in kwargs: + suggest_pipeline_enabled = kwargs['suggestPipelineEnabled'] + if terminal_max_session_time is None and 'terminalMaxSessionTime' in kwargs: + terminal_max_session_time = kwargs['terminalMaxSessionTime'] + if throttle_authenticated_api_enabled is None and 'throttleAuthenticatedApiEnabled' in kwargs: + throttle_authenticated_api_enabled = kwargs['throttleAuthenticatedApiEnabled'] + if throttle_authenticated_api_period_in_seconds is None and 'throttleAuthenticatedApiPeriodInSeconds' in kwargs: + throttle_authenticated_api_period_in_seconds = kwargs['throttleAuthenticatedApiPeriodInSeconds'] + if throttle_authenticated_api_requests_per_period is None and 'throttleAuthenticatedApiRequestsPerPeriod' in kwargs: + throttle_authenticated_api_requests_per_period = kwargs['throttleAuthenticatedApiRequestsPerPeriod'] + if throttle_authenticated_packages_api_enabled is None and 'throttleAuthenticatedPackagesApiEnabled' in kwargs: + throttle_authenticated_packages_api_enabled = kwargs['throttleAuthenticatedPackagesApiEnabled'] + if throttle_authenticated_packages_api_period_in_seconds is None and 'throttleAuthenticatedPackagesApiPeriodInSeconds' in kwargs: + throttle_authenticated_packages_api_period_in_seconds = kwargs['throttleAuthenticatedPackagesApiPeriodInSeconds'] + if throttle_authenticated_packages_api_requests_per_period is None and 'throttleAuthenticatedPackagesApiRequestsPerPeriod' in kwargs: + throttle_authenticated_packages_api_requests_per_period = kwargs['throttleAuthenticatedPackagesApiRequestsPerPeriod'] + if throttle_authenticated_web_enabled is None and 'throttleAuthenticatedWebEnabled' in kwargs: + throttle_authenticated_web_enabled = kwargs['throttleAuthenticatedWebEnabled'] + if throttle_authenticated_web_period_in_seconds is None and 'throttleAuthenticatedWebPeriodInSeconds' in kwargs: + throttle_authenticated_web_period_in_seconds = kwargs['throttleAuthenticatedWebPeriodInSeconds'] + if throttle_authenticated_web_requests_per_period is None and 'throttleAuthenticatedWebRequestsPerPeriod' in kwargs: + throttle_authenticated_web_requests_per_period = kwargs['throttleAuthenticatedWebRequestsPerPeriod'] + if throttle_unauthenticated_api_enabled is None and 'throttleUnauthenticatedApiEnabled' in kwargs: + throttle_unauthenticated_api_enabled = kwargs['throttleUnauthenticatedApiEnabled'] + if throttle_unauthenticated_api_period_in_seconds is None and 'throttleUnauthenticatedApiPeriodInSeconds' in kwargs: + throttle_unauthenticated_api_period_in_seconds = kwargs['throttleUnauthenticatedApiPeriodInSeconds'] + if throttle_unauthenticated_api_requests_per_period is None and 'throttleUnauthenticatedApiRequestsPerPeriod' in kwargs: + throttle_unauthenticated_api_requests_per_period = kwargs['throttleUnauthenticatedApiRequestsPerPeriod'] + if throttle_unauthenticated_packages_api_enabled is None and 'throttleUnauthenticatedPackagesApiEnabled' in kwargs: + throttle_unauthenticated_packages_api_enabled = kwargs['throttleUnauthenticatedPackagesApiEnabled'] + if throttle_unauthenticated_packages_api_period_in_seconds is None and 'throttleUnauthenticatedPackagesApiPeriodInSeconds' in kwargs: + throttle_unauthenticated_packages_api_period_in_seconds = kwargs['throttleUnauthenticatedPackagesApiPeriodInSeconds'] + if throttle_unauthenticated_packages_api_requests_per_period is None and 'throttleUnauthenticatedPackagesApiRequestsPerPeriod' in kwargs: + throttle_unauthenticated_packages_api_requests_per_period = kwargs['throttleUnauthenticatedPackagesApiRequestsPerPeriod'] + if throttle_unauthenticated_web_enabled is None and 'throttleUnauthenticatedWebEnabled' in kwargs: + throttle_unauthenticated_web_enabled = kwargs['throttleUnauthenticatedWebEnabled'] + if throttle_unauthenticated_web_period_in_seconds is None and 'throttleUnauthenticatedWebPeriodInSeconds' in kwargs: + throttle_unauthenticated_web_period_in_seconds = kwargs['throttleUnauthenticatedWebPeriodInSeconds'] + if throttle_unauthenticated_web_requests_per_period is None and 'throttleUnauthenticatedWebRequestsPerPeriod' in kwargs: + throttle_unauthenticated_web_requests_per_period = kwargs['throttleUnauthenticatedWebRequestsPerPeriod'] + if time_tracking_limit_to_hours is None and 'timeTrackingLimitToHours' in kwargs: + time_tracking_limit_to_hours = kwargs['timeTrackingLimitToHours'] + if two_factor_grace_period is None and 'twoFactorGracePeriod' in kwargs: + two_factor_grace_period = kwargs['twoFactorGracePeriod'] + if unique_ips_limit_enabled is None and 'uniqueIpsLimitEnabled' in kwargs: + unique_ips_limit_enabled = kwargs['uniqueIpsLimitEnabled'] + if unique_ips_limit_per_user is None and 'uniqueIpsLimitPerUser' in kwargs: + unique_ips_limit_per_user = kwargs['uniqueIpsLimitPerUser'] + if unique_ips_limit_time_window is None and 'uniqueIpsLimitTimeWindow' in kwargs: + unique_ips_limit_time_window = kwargs['uniqueIpsLimitTimeWindow'] + if usage_ping_enabled is None and 'usagePingEnabled' in kwargs: + usage_ping_enabled = kwargs['usagePingEnabled'] + if user_deactivation_emails_enabled is None and 'userDeactivationEmailsEnabled' in kwargs: + user_deactivation_emails_enabled = kwargs['userDeactivationEmailsEnabled'] + if user_default_external is None and 'userDefaultExternal' in kwargs: + user_default_external = kwargs['userDefaultExternal'] + if user_default_internal_regex is None and 'userDefaultInternalRegex' in kwargs: + user_default_internal_regex = kwargs['userDefaultInternalRegex'] + if user_oauth_applications is None and 'userOauthApplications' in kwargs: + user_oauth_applications = kwargs['userOauthApplications'] + if user_show_add_ssh_key_message is None and 'userShowAddSshKeyMessage' in kwargs: + user_show_add_ssh_key_message = kwargs['userShowAddSshKeyMessage'] + if version_check_enabled is None and 'versionCheckEnabled' in kwargs: + version_check_enabled = kwargs['versionCheckEnabled'] + if web_ide_clientside_preview_enabled is None and 'webIdeClientsidePreviewEnabled' in kwargs: + web_ide_clientside_preview_enabled = kwargs['webIdeClientsidePreviewEnabled'] + if whats_new_variant is None and 'whatsNewVariant' in kwargs: + whats_new_variant = kwargs['whatsNewVariant'] + if wiki_page_max_content_bytes is None and 'wikiPageMaxContentBytes' in kwargs: + wiki_page_max_content_bytes = kwargs['wikiPageMaxContentBytes'] + if abuse_notification_email is not None: _setter("abuse_notification_email", abuse_notification_email) if admin_mode is not None: @@ -5362,7 +5846,491 @@ def _configure( web_ide_clientside_preview_enabled: Optional[pulumi.Input[bool]] = None, whats_new_variant: Optional[pulumi.Input[str]] = None, wiki_page_max_content_bytes: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if abuse_notification_email is None and 'abuseNotificationEmail' in kwargs: + abuse_notification_email = kwargs['abuseNotificationEmail'] + if admin_mode is None and 'adminMode' in kwargs: + admin_mode = kwargs['adminMode'] + if after_sign_out_path is None and 'afterSignOutPath' in kwargs: + after_sign_out_path = kwargs['afterSignOutPath'] + if after_sign_up_text is None and 'afterSignUpText' in kwargs: + after_sign_up_text = kwargs['afterSignUpText'] + if akismet_api_key is None and 'akismetApiKey' in kwargs: + akismet_api_key = kwargs['akismetApiKey'] + if akismet_enabled is None and 'akismetEnabled' in kwargs: + akismet_enabled = kwargs['akismetEnabled'] + if allow_group_owners_to_manage_ldap is None and 'allowGroupOwnersToManageLdap' in kwargs: + allow_group_owners_to_manage_ldap = kwargs['allowGroupOwnersToManageLdap'] + if allow_local_requests_from_system_hooks is None and 'allowLocalRequestsFromSystemHooks' in kwargs: + allow_local_requests_from_system_hooks = kwargs['allowLocalRequestsFromSystemHooks'] + if allow_local_requests_from_web_hooks_and_services is None and 'allowLocalRequestsFromWebHooksAndServices' in kwargs: + allow_local_requests_from_web_hooks_and_services = kwargs['allowLocalRequestsFromWebHooksAndServices'] + if archive_builds_in_human_readable is None and 'archiveBuildsInHumanReadable' in kwargs: + archive_builds_in_human_readable = kwargs['archiveBuildsInHumanReadable'] + if asset_proxy_allowlists is None and 'assetProxyAllowlists' in kwargs: + asset_proxy_allowlists = kwargs['assetProxyAllowlists'] + if asset_proxy_enabled is None and 'assetProxyEnabled' in kwargs: + asset_proxy_enabled = kwargs['assetProxyEnabled'] + if asset_proxy_secret_key is None and 'assetProxySecretKey' in kwargs: + asset_proxy_secret_key = kwargs['assetProxySecretKey'] + if asset_proxy_url is None and 'assetProxyUrl' in kwargs: + asset_proxy_url = kwargs['assetProxyUrl'] + if authorized_keys_enabled is None and 'authorizedKeysEnabled' in kwargs: + authorized_keys_enabled = kwargs['authorizedKeysEnabled'] + if auto_devops_domain is None and 'autoDevopsDomain' in kwargs: + auto_devops_domain = kwargs['autoDevopsDomain'] + if auto_devops_enabled is None and 'autoDevopsEnabled' in kwargs: + auto_devops_enabled = kwargs['autoDevopsEnabled'] + if automatic_purchased_storage_allocation is None and 'automaticPurchasedStorageAllocation' in kwargs: + automatic_purchased_storage_allocation = kwargs['automaticPurchasedStorageAllocation'] + if can_create_group is None and 'canCreateGroup' in kwargs: + can_create_group = kwargs['canCreateGroup'] + if check_namespace_plan is None and 'checkNamespacePlan' in kwargs: + check_namespace_plan = kwargs['checkNamespacePlan'] + if commit_email_hostname is None and 'commitEmailHostname' in kwargs: + commit_email_hostname = kwargs['commitEmailHostname'] + if container_expiration_policies_enable_historic_entries is None and 'containerExpirationPoliciesEnableHistoricEntries' in kwargs: + container_expiration_policies_enable_historic_entries = kwargs['containerExpirationPoliciesEnableHistoricEntries'] + if container_registry_cleanup_tags_service_max_list_size is None and 'containerRegistryCleanupTagsServiceMaxListSize' in kwargs: + container_registry_cleanup_tags_service_max_list_size = kwargs['containerRegistryCleanupTagsServiceMaxListSize'] + if container_registry_delete_tags_service_timeout is None and 'containerRegistryDeleteTagsServiceTimeout' in kwargs: + container_registry_delete_tags_service_timeout = kwargs['containerRegistryDeleteTagsServiceTimeout'] + if container_registry_expiration_policies_caching is None and 'containerRegistryExpirationPoliciesCaching' in kwargs: + container_registry_expiration_policies_caching = kwargs['containerRegistryExpirationPoliciesCaching'] + if container_registry_expiration_policies_worker_capacity is None and 'containerRegistryExpirationPoliciesWorkerCapacity' in kwargs: + container_registry_expiration_policies_worker_capacity = kwargs['containerRegistryExpirationPoliciesWorkerCapacity'] + if container_registry_token_expire_delay is None and 'containerRegistryTokenExpireDelay' in kwargs: + container_registry_token_expire_delay = kwargs['containerRegistryTokenExpireDelay'] + if deactivate_dormant_users is None and 'deactivateDormantUsers' in kwargs: + deactivate_dormant_users = kwargs['deactivateDormantUsers'] + if default_artifacts_expire_in is None and 'defaultArtifactsExpireIn' in kwargs: + default_artifacts_expire_in = kwargs['defaultArtifactsExpireIn'] + if default_branch_name is None and 'defaultBranchName' in kwargs: + default_branch_name = kwargs['defaultBranchName'] + if default_branch_protection is None and 'defaultBranchProtection' in kwargs: + default_branch_protection = kwargs['defaultBranchProtection'] + if default_ci_config_path is None and 'defaultCiConfigPath' in kwargs: + default_ci_config_path = kwargs['defaultCiConfigPath'] + if default_group_visibility is None and 'defaultGroupVisibility' in kwargs: + default_group_visibility = kwargs['defaultGroupVisibility'] + if default_project_creation is None and 'defaultProjectCreation' in kwargs: + default_project_creation = kwargs['defaultProjectCreation'] + if default_project_visibility is None and 'defaultProjectVisibility' in kwargs: + default_project_visibility = kwargs['defaultProjectVisibility'] + if default_projects_limit is None and 'defaultProjectsLimit' in kwargs: + default_projects_limit = kwargs['defaultProjectsLimit'] + if default_snippet_visibility is None and 'defaultSnippetVisibility' in kwargs: + default_snippet_visibility = kwargs['defaultSnippetVisibility'] + if delayed_group_deletion is None and 'delayedGroupDeletion' in kwargs: + delayed_group_deletion = kwargs['delayedGroupDeletion'] + if delayed_project_deletion is None and 'delayedProjectDeletion' in kwargs: + delayed_project_deletion = kwargs['delayedProjectDeletion'] + if delete_inactive_projects is None and 'deleteInactiveProjects' in kwargs: + delete_inactive_projects = kwargs['deleteInactiveProjects'] + if deletion_adjourned_period is None and 'deletionAdjournedPeriod' in kwargs: + deletion_adjourned_period = kwargs['deletionAdjournedPeriod'] + if diff_max_files is None and 'diffMaxFiles' in kwargs: + diff_max_files = kwargs['diffMaxFiles'] + if diff_max_lines is None and 'diffMaxLines' in kwargs: + diff_max_lines = kwargs['diffMaxLines'] + if diff_max_patch_bytes is None and 'diffMaxPatchBytes' in kwargs: + diff_max_patch_bytes = kwargs['diffMaxPatchBytes'] + if disable_feed_token is None and 'disableFeedToken' in kwargs: + disable_feed_token = kwargs['disableFeedToken'] + if disabled_oauth_sign_in_sources is None and 'disabledOauthSignInSources' in kwargs: + disabled_oauth_sign_in_sources = kwargs['disabledOauthSignInSources'] + if dns_rebinding_protection_enabled is None and 'dnsRebindingProtectionEnabled' in kwargs: + dns_rebinding_protection_enabled = kwargs['dnsRebindingProtectionEnabled'] + if domain_allowlists is None and 'domainAllowlists' in kwargs: + domain_allowlists = kwargs['domainAllowlists'] + if domain_denylist_enabled is None and 'domainDenylistEnabled' in kwargs: + domain_denylist_enabled = kwargs['domainDenylistEnabled'] + if domain_denylists is None and 'domainDenylists' in kwargs: + domain_denylists = kwargs['domainDenylists'] + if dsa_key_restriction is None and 'dsaKeyRestriction' in kwargs: + dsa_key_restriction = kwargs['dsaKeyRestriction'] + if ecdsa_key_restriction is None and 'ecdsaKeyRestriction' in kwargs: + ecdsa_key_restriction = kwargs['ecdsaKeyRestriction'] + if ecdsa_sk_key_restriction is None and 'ecdsaSkKeyRestriction' in kwargs: + ecdsa_sk_key_restriction = kwargs['ecdsaSkKeyRestriction'] + if ed25519_key_restriction is None and 'ed25519KeyRestriction' in kwargs: + ed25519_key_restriction = kwargs['ed25519KeyRestriction'] + if ed25519_sk_key_restriction is None and 'ed25519SkKeyRestriction' in kwargs: + ed25519_sk_key_restriction = kwargs['ed25519SkKeyRestriction'] + if eks_access_key_id is None and 'eksAccessKeyId' in kwargs: + eks_access_key_id = kwargs['eksAccessKeyId'] + if eks_account_id is None and 'eksAccountId' in kwargs: + eks_account_id = kwargs['eksAccountId'] + if eks_integration_enabled is None and 'eksIntegrationEnabled' in kwargs: + eks_integration_enabled = kwargs['eksIntegrationEnabled'] + if eks_secret_access_key is None and 'eksSecretAccessKey' in kwargs: + eks_secret_access_key = kwargs['eksSecretAccessKey'] + if elasticsearch_aws is None and 'elasticsearchAws' in kwargs: + elasticsearch_aws = kwargs['elasticsearchAws'] + if elasticsearch_aws_access_key is None and 'elasticsearchAwsAccessKey' in kwargs: + elasticsearch_aws_access_key = kwargs['elasticsearchAwsAccessKey'] + if elasticsearch_aws_region is None and 'elasticsearchAwsRegion' in kwargs: + elasticsearch_aws_region = kwargs['elasticsearchAwsRegion'] + if elasticsearch_aws_secret_access_key is None and 'elasticsearchAwsSecretAccessKey' in kwargs: + elasticsearch_aws_secret_access_key = kwargs['elasticsearchAwsSecretAccessKey'] + if elasticsearch_indexed_field_length_limit is None and 'elasticsearchIndexedFieldLengthLimit' in kwargs: + elasticsearch_indexed_field_length_limit = kwargs['elasticsearchIndexedFieldLengthLimit'] + if elasticsearch_indexed_file_size_limit_kb is None and 'elasticsearchIndexedFileSizeLimitKb' in kwargs: + elasticsearch_indexed_file_size_limit_kb = kwargs['elasticsearchIndexedFileSizeLimitKb'] + if elasticsearch_indexing is None and 'elasticsearchIndexing' in kwargs: + elasticsearch_indexing = kwargs['elasticsearchIndexing'] + if elasticsearch_limit_indexing is None and 'elasticsearchLimitIndexing' in kwargs: + elasticsearch_limit_indexing = kwargs['elasticsearchLimitIndexing'] + if elasticsearch_max_bulk_concurrency is None and 'elasticsearchMaxBulkConcurrency' in kwargs: + elasticsearch_max_bulk_concurrency = kwargs['elasticsearchMaxBulkConcurrency'] + if elasticsearch_max_bulk_size_mb is None and 'elasticsearchMaxBulkSizeMb' in kwargs: + elasticsearch_max_bulk_size_mb = kwargs['elasticsearchMaxBulkSizeMb'] + if elasticsearch_namespace_ids is None and 'elasticsearchNamespaceIds' in kwargs: + elasticsearch_namespace_ids = kwargs['elasticsearchNamespaceIds'] + if elasticsearch_password is None and 'elasticsearchPassword' in kwargs: + elasticsearch_password = kwargs['elasticsearchPassword'] + if elasticsearch_project_ids is None and 'elasticsearchProjectIds' in kwargs: + elasticsearch_project_ids = kwargs['elasticsearchProjectIds'] + if elasticsearch_search is None and 'elasticsearchSearch' in kwargs: + elasticsearch_search = kwargs['elasticsearchSearch'] + if elasticsearch_urls is None and 'elasticsearchUrls' in kwargs: + elasticsearch_urls = kwargs['elasticsearchUrls'] + if elasticsearch_username is None and 'elasticsearchUsername' in kwargs: + elasticsearch_username = kwargs['elasticsearchUsername'] + if email_additional_text is None and 'emailAdditionalText' in kwargs: + email_additional_text = kwargs['emailAdditionalText'] + if email_author_in_body is None and 'emailAuthorInBody' in kwargs: + email_author_in_body = kwargs['emailAuthorInBody'] + if enabled_git_access_protocol is None and 'enabledGitAccessProtocol' in kwargs: + enabled_git_access_protocol = kwargs['enabledGitAccessProtocol'] + if enforce_namespace_storage_limit is None and 'enforceNamespaceStorageLimit' in kwargs: + enforce_namespace_storage_limit = kwargs['enforceNamespaceStorageLimit'] + if enforce_terms is None and 'enforceTerms' in kwargs: + enforce_terms = kwargs['enforceTerms'] + if external_auth_client_cert is None and 'externalAuthClientCert' in kwargs: + external_auth_client_cert = kwargs['externalAuthClientCert'] + if external_auth_client_key is None and 'externalAuthClientKey' in kwargs: + external_auth_client_key = kwargs['externalAuthClientKey'] + if external_auth_client_key_pass is None and 'externalAuthClientKeyPass' in kwargs: + external_auth_client_key_pass = kwargs['externalAuthClientKeyPass'] + if external_authorization_service_default_label is None and 'externalAuthorizationServiceDefaultLabel' in kwargs: + external_authorization_service_default_label = kwargs['externalAuthorizationServiceDefaultLabel'] + if external_authorization_service_enabled is None and 'externalAuthorizationServiceEnabled' in kwargs: + external_authorization_service_enabled = kwargs['externalAuthorizationServiceEnabled'] + if external_authorization_service_timeout is None and 'externalAuthorizationServiceTimeout' in kwargs: + external_authorization_service_timeout = kwargs['externalAuthorizationServiceTimeout'] + if external_authorization_service_url is None and 'externalAuthorizationServiceUrl' in kwargs: + external_authorization_service_url = kwargs['externalAuthorizationServiceUrl'] + if external_pipeline_validation_service_timeout is None and 'externalPipelineValidationServiceTimeout' in kwargs: + external_pipeline_validation_service_timeout = kwargs['externalPipelineValidationServiceTimeout'] + if external_pipeline_validation_service_token is None and 'externalPipelineValidationServiceToken' in kwargs: + external_pipeline_validation_service_token = kwargs['externalPipelineValidationServiceToken'] + if external_pipeline_validation_service_url is None and 'externalPipelineValidationServiceUrl' in kwargs: + external_pipeline_validation_service_url = kwargs['externalPipelineValidationServiceUrl'] + if file_template_project_id is None and 'fileTemplateProjectId' in kwargs: + file_template_project_id = kwargs['fileTemplateProjectId'] + if first_day_of_week is None and 'firstDayOfWeek' in kwargs: + first_day_of_week = kwargs['firstDayOfWeek'] + if geo_node_allowed_ips is None and 'geoNodeAllowedIps' in kwargs: + geo_node_allowed_ips = kwargs['geoNodeAllowedIps'] + if geo_status_timeout is None and 'geoStatusTimeout' in kwargs: + geo_status_timeout = kwargs['geoStatusTimeout'] + if git_rate_limit_users_allowlists is None and 'gitRateLimitUsersAllowlists' in kwargs: + git_rate_limit_users_allowlists = kwargs['gitRateLimitUsersAllowlists'] + if git_two_factor_session_expiry is None and 'gitTwoFactorSessionExpiry' in kwargs: + git_two_factor_session_expiry = kwargs['gitTwoFactorSessionExpiry'] + if gitaly_timeout_default is None and 'gitalyTimeoutDefault' in kwargs: + gitaly_timeout_default = kwargs['gitalyTimeoutDefault'] + if gitaly_timeout_fast is None and 'gitalyTimeoutFast' in kwargs: + gitaly_timeout_fast = kwargs['gitalyTimeoutFast'] + if gitaly_timeout_medium is None and 'gitalyTimeoutMedium' in kwargs: + gitaly_timeout_medium = kwargs['gitalyTimeoutMedium'] + if grafana_enabled is None and 'grafanaEnabled' in kwargs: + grafana_enabled = kwargs['grafanaEnabled'] + if grafana_url is None and 'grafanaUrl' in kwargs: + grafana_url = kwargs['grafanaUrl'] + if gravatar_enabled is None and 'gravatarEnabled' in kwargs: + gravatar_enabled = kwargs['gravatarEnabled'] + if group_owners_can_manage_default_branch_protection is None and 'groupOwnersCanManageDefaultBranchProtection' in kwargs: + group_owners_can_manage_default_branch_protection = kwargs['groupOwnersCanManageDefaultBranchProtection'] + if hashed_storage_enabled is None and 'hashedStorageEnabled' in kwargs: + hashed_storage_enabled = kwargs['hashedStorageEnabled'] + if help_page_hide_commercial_content is None and 'helpPageHideCommercialContent' in kwargs: + help_page_hide_commercial_content = kwargs['helpPageHideCommercialContent'] + if help_page_support_url is None and 'helpPageSupportUrl' in kwargs: + help_page_support_url = kwargs['helpPageSupportUrl'] + if help_page_text is None and 'helpPageText' in kwargs: + help_page_text = kwargs['helpPageText'] + if help_text is None and 'helpText' in kwargs: + help_text = kwargs['helpText'] + if hide_third_party_offers is None and 'hideThirdPartyOffers' in kwargs: + hide_third_party_offers = kwargs['hideThirdPartyOffers'] + if home_page_url is None and 'homePageUrl' in kwargs: + home_page_url = kwargs['homePageUrl'] + if housekeeping_enabled is None and 'housekeepingEnabled' in kwargs: + housekeeping_enabled = kwargs['housekeepingEnabled'] + if housekeeping_full_repack_period is None and 'housekeepingFullRepackPeriod' in kwargs: + housekeeping_full_repack_period = kwargs['housekeepingFullRepackPeriod'] + if housekeeping_gc_period is None and 'housekeepingGcPeriod' in kwargs: + housekeeping_gc_period = kwargs['housekeepingGcPeriod'] + if housekeeping_incremental_repack_period is None and 'housekeepingIncrementalRepackPeriod' in kwargs: + housekeeping_incremental_repack_period = kwargs['housekeepingIncrementalRepackPeriod'] + if html_emails_enabled is None and 'htmlEmailsEnabled' in kwargs: + html_emails_enabled = kwargs['htmlEmailsEnabled'] + if import_sources is None and 'importSources' in kwargs: + import_sources = kwargs['importSources'] + if in_product_marketing_emails_enabled is None and 'inProductMarketingEmailsEnabled' in kwargs: + in_product_marketing_emails_enabled = kwargs['inProductMarketingEmailsEnabled'] + if inactive_projects_delete_after_months is None and 'inactiveProjectsDeleteAfterMonths' in kwargs: + inactive_projects_delete_after_months = kwargs['inactiveProjectsDeleteAfterMonths'] + if inactive_projects_min_size_mb is None and 'inactiveProjectsMinSizeMb' in kwargs: + inactive_projects_min_size_mb = kwargs['inactiveProjectsMinSizeMb'] + if inactive_projects_send_warning_email_after_months is None and 'inactiveProjectsSendWarningEmailAfterMonths' in kwargs: + inactive_projects_send_warning_email_after_months = kwargs['inactiveProjectsSendWarningEmailAfterMonths'] + if invisible_captcha_enabled is None and 'invisibleCaptchaEnabled' in kwargs: + invisible_captcha_enabled = kwargs['invisibleCaptchaEnabled'] + if issues_create_limit is None and 'issuesCreateLimit' in kwargs: + issues_create_limit = kwargs['issuesCreateLimit'] + if keep_latest_artifact is None and 'keepLatestArtifact' in kwargs: + keep_latest_artifact = kwargs['keepLatestArtifact'] + if local_markdown_version is None and 'localMarkdownVersion' in kwargs: + local_markdown_version = kwargs['localMarkdownVersion'] + if mailgun_events_enabled is None and 'mailgunEventsEnabled' in kwargs: + mailgun_events_enabled = kwargs['mailgunEventsEnabled'] + if mailgun_signing_key is None and 'mailgunSigningKey' in kwargs: + mailgun_signing_key = kwargs['mailgunSigningKey'] + if maintenance_mode is None and 'maintenanceMode' in kwargs: + maintenance_mode = kwargs['maintenanceMode'] + if maintenance_mode_message is None and 'maintenanceModeMessage' in kwargs: + maintenance_mode_message = kwargs['maintenanceModeMessage'] + if max_artifacts_size is None and 'maxArtifactsSize' in kwargs: + max_artifacts_size = kwargs['maxArtifactsSize'] + if max_attachment_size is None and 'maxAttachmentSize' in kwargs: + max_attachment_size = kwargs['maxAttachmentSize'] + if max_export_size is None and 'maxExportSize' in kwargs: + max_export_size = kwargs['maxExportSize'] + if max_import_size is None and 'maxImportSize' in kwargs: + max_import_size = kwargs['maxImportSize'] + if max_number_of_repository_downloads is None and 'maxNumberOfRepositoryDownloads' in kwargs: + max_number_of_repository_downloads = kwargs['maxNumberOfRepositoryDownloads'] + if max_number_of_repository_downloads_within_time_period is None and 'maxNumberOfRepositoryDownloadsWithinTimePeriod' in kwargs: + max_number_of_repository_downloads_within_time_period = kwargs['maxNumberOfRepositoryDownloadsWithinTimePeriod'] + if max_pages_size is None and 'maxPagesSize' in kwargs: + max_pages_size = kwargs['maxPagesSize'] + if max_personal_access_token_lifetime is None and 'maxPersonalAccessTokenLifetime' in kwargs: + max_personal_access_token_lifetime = kwargs['maxPersonalAccessTokenLifetime'] + if max_ssh_key_lifetime is None and 'maxSshKeyLifetime' in kwargs: + max_ssh_key_lifetime = kwargs['maxSshKeyLifetime'] + if metrics_method_call_threshold is None and 'metricsMethodCallThreshold' in kwargs: + metrics_method_call_threshold = kwargs['metricsMethodCallThreshold'] + if mirror_available is None and 'mirrorAvailable' in kwargs: + mirror_available = kwargs['mirrorAvailable'] + if mirror_capacity_threshold is None and 'mirrorCapacityThreshold' in kwargs: + mirror_capacity_threshold = kwargs['mirrorCapacityThreshold'] + if mirror_max_capacity is None and 'mirrorMaxCapacity' in kwargs: + mirror_max_capacity = kwargs['mirrorMaxCapacity'] + if mirror_max_delay is None and 'mirrorMaxDelay' in kwargs: + mirror_max_delay = kwargs['mirrorMaxDelay'] + if npm_package_requests_forwarding is None and 'npmPackageRequestsForwarding' in kwargs: + npm_package_requests_forwarding = kwargs['npmPackageRequestsForwarding'] + if outbound_local_requests_whitelists is None and 'outboundLocalRequestsWhitelists' in kwargs: + outbound_local_requests_whitelists = kwargs['outboundLocalRequestsWhitelists'] + if package_registry_cleanup_policies_worker_capacity is None and 'packageRegistryCleanupPoliciesWorkerCapacity' in kwargs: + package_registry_cleanup_policies_worker_capacity = kwargs['packageRegistryCleanupPoliciesWorkerCapacity'] + if pages_domain_verification_enabled is None and 'pagesDomainVerificationEnabled' in kwargs: + pages_domain_verification_enabled = kwargs['pagesDomainVerificationEnabled'] + if password_authentication_enabled_for_git is None and 'passwordAuthenticationEnabledForGit' in kwargs: + password_authentication_enabled_for_git = kwargs['passwordAuthenticationEnabledForGit'] + if password_authentication_enabled_for_web is None and 'passwordAuthenticationEnabledForWeb' in kwargs: + password_authentication_enabled_for_web = kwargs['passwordAuthenticationEnabledForWeb'] + if password_lowercase_required is None and 'passwordLowercaseRequired' in kwargs: + password_lowercase_required = kwargs['passwordLowercaseRequired'] + if password_number_required is None and 'passwordNumberRequired' in kwargs: + password_number_required = kwargs['passwordNumberRequired'] + if password_symbol_required is None and 'passwordSymbolRequired' in kwargs: + password_symbol_required = kwargs['passwordSymbolRequired'] + if password_uppercase_required is None and 'passwordUppercaseRequired' in kwargs: + password_uppercase_required = kwargs['passwordUppercaseRequired'] + if performance_bar_allowed_group_path is None and 'performanceBarAllowedGroupPath' in kwargs: + performance_bar_allowed_group_path = kwargs['performanceBarAllowedGroupPath'] + if personal_access_token_prefix is None and 'personalAccessTokenPrefix' in kwargs: + personal_access_token_prefix = kwargs['personalAccessTokenPrefix'] + if pipeline_limit_per_project_user_sha is None and 'pipelineLimitPerProjectUserSha' in kwargs: + pipeline_limit_per_project_user_sha = kwargs['pipelineLimitPerProjectUserSha'] + if plantuml_enabled is None and 'plantumlEnabled' in kwargs: + plantuml_enabled = kwargs['plantumlEnabled'] + if plantuml_url is None and 'plantumlUrl' in kwargs: + plantuml_url = kwargs['plantumlUrl'] + if polling_interval_multiplier is None and 'pollingIntervalMultiplier' in kwargs: + polling_interval_multiplier = kwargs['pollingIntervalMultiplier'] + if project_export_enabled is None and 'projectExportEnabled' in kwargs: + project_export_enabled = kwargs['projectExportEnabled'] + if prometheus_metrics_enabled is None and 'prometheusMetricsEnabled' in kwargs: + prometheus_metrics_enabled = kwargs['prometheusMetricsEnabled'] + if protected_ci_variables is None and 'protectedCiVariables' in kwargs: + protected_ci_variables = kwargs['protectedCiVariables'] + if push_event_activities_limit is None and 'pushEventActivitiesLimit' in kwargs: + push_event_activities_limit = kwargs['pushEventActivitiesLimit'] + if push_event_hooks_limit is None and 'pushEventHooksLimit' in kwargs: + push_event_hooks_limit = kwargs['pushEventHooksLimit'] + if pypi_package_requests_forwarding is None and 'pypiPackageRequestsForwarding' in kwargs: + pypi_package_requests_forwarding = kwargs['pypiPackageRequestsForwarding'] + if rate_limiting_response_text is None and 'rateLimitingResponseText' in kwargs: + rate_limiting_response_text = kwargs['rateLimitingResponseText'] + if raw_blob_request_limit is None and 'rawBlobRequestLimit' in kwargs: + raw_blob_request_limit = kwargs['rawBlobRequestLimit'] + if recaptcha_enabled is None and 'recaptchaEnabled' in kwargs: + recaptcha_enabled = kwargs['recaptchaEnabled'] + if recaptcha_private_key is None and 'recaptchaPrivateKey' in kwargs: + recaptcha_private_key = kwargs['recaptchaPrivateKey'] + if recaptcha_site_key is None and 'recaptchaSiteKey' in kwargs: + recaptcha_site_key = kwargs['recaptchaSiteKey'] + if receive_max_input_size is None and 'receiveMaxInputSize' in kwargs: + receive_max_input_size = kwargs['receiveMaxInputSize'] + if repository_checks_enabled is None and 'repositoryChecksEnabled' in kwargs: + repository_checks_enabled = kwargs['repositoryChecksEnabled'] + if repository_size_limit is None and 'repositorySizeLimit' in kwargs: + repository_size_limit = kwargs['repositorySizeLimit'] + if repository_storages is None and 'repositoryStorages' in kwargs: + repository_storages = kwargs['repositoryStorages'] + if repository_storages_weighted is None and 'repositoryStoragesWeighted' in kwargs: + repository_storages_weighted = kwargs['repositoryStoragesWeighted'] + if require_admin_approval_after_user_signup is None and 'requireAdminApprovalAfterUserSignup' in kwargs: + require_admin_approval_after_user_signup = kwargs['requireAdminApprovalAfterUserSignup'] + if require_two_factor_authentication is None and 'requireTwoFactorAuthentication' in kwargs: + require_two_factor_authentication = kwargs['requireTwoFactorAuthentication'] + if restricted_visibility_levels is None and 'restrictedVisibilityLevels' in kwargs: + restricted_visibility_levels = kwargs['restrictedVisibilityLevels'] + if rsa_key_restriction is None and 'rsaKeyRestriction' in kwargs: + rsa_key_restriction = kwargs['rsaKeyRestriction'] + if search_rate_limit is None and 'searchRateLimit' in kwargs: + search_rate_limit = kwargs['searchRateLimit'] + if search_rate_limit_unauthenticated is None and 'searchRateLimitUnauthenticated' in kwargs: + search_rate_limit_unauthenticated = kwargs['searchRateLimitUnauthenticated'] + if send_user_confirmation_email is None and 'sendUserConfirmationEmail' in kwargs: + send_user_confirmation_email = kwargs['sendUserConfirmationEmail'] + if session_expire_delay is None and 'sessionExpireDelay' in kwargs: + session_expire_delay = kwargs['sessionExpireDelay'] + if shared_runners_enabled is None and 'sharedRunnersEnabled' in kwargs: + shared_runners_enabled = kwargs['sharedRunnersEnabled'] + if shared_runners_minutes is None and 'sharedRunnersMinutes' in kwargs: + shared_runners_minutes = kwargs['sharedRunnersMinutes'] + if shared_runners_text is None and 'sharedRunnersText' in kwargs: + shared_runners_text = kwargs['sharedRunnersText'] + if sidekiq_job_limiter_compression_threshold_bytes is None and 'sidekiqJobLimiterCompressionThresholdBytes' in kwargs: + sidekiq_job_limiter_compression_threshold_bytes = kwargs['sidekiqJobLimiterCompressionThresholdBytes'] + if sidekiq_job_limiter_limit_bytes is None and 'sidekiqJobLimiterLimitBytes' in kwargs: + sidekiq_job_limiter_limit_bytes = kwargs['sidekiqJobLimiterLimitBytes'] + if sidekiq_job_limiter_mode is None and 'sidekiqJobLimiterMode' in kwargs: + sidekiq_job_limiter_mode = kwargs['sidekiqJobLimiterMode'] + if sign_in_text is None and 'signInText' in kwargs: + sign_in_text = kwargs['signInText'] + if signup_enabled is None and 'signupEnabled' in kwargs: + signup_enabled = kwargs['signupEnabled'] + if slack_app_enabled is None and 'slackAppEnabled' in kwargs: + slack_app_enabled = kwargs['slackAppEnabled'] + if slack_app_id is None and 'slackAppId' in kwargs: + slack_app_id = kwargs['slackAppId'] + if slack_app_secret is None and 'slackAppSecret' in kwargs: + slack_app_secret = kwargs['slackAppSecret'] + if slack_app_signing_secret is None and 'slackAppSigningSecret' in kwargs: + slack_app_signing_secret = kwargs['slackAppSigningSecret'] + if slack_app_verification_token is None and 'slackAppVerificationToken' in kwargs: + slack_app_verification_token = kwargs['slackAppVerificationToken'] + if snippet_size_limit is None and 'snippetSizeLimit' in kwargs: + snippet_size_limit = kwargs['snippetSizeLimit'] + if snowplow_app_id is None and 'snowplowAppId' in kwargs: + snowplow_app_id = kwargs['snowplowAppId'] + if snowplow_collector_hostname is None and 'snowplowCollectorHostname' in kwargs: + snowplow_collector_hostname = kwargs['snowplowCollectorHostname'] + if snowplow_cookie_domain is None and 'snowplowCookieDomain' in kwargs: + snowplow_cookie_domain = kwargs['snowplowCookieDomain'] + if snowplow_enabled is None and 'snowplowEnabled' in kwargs: + snowplow_enabled = kwargs['snowplowEnabled'] + if sourcegraph_enabled is None and 'sourcegraphEnabled' in kwargs: + sourcegraph_enabled = kwargs['sourcegraphEnabled'] + if sourcegraph_public_only is None and 'sourcegraphPublicOnly' in kwargs: + sourcegraph_public_only = kwargs['sourcegraphPublicOnly'] + if sourcegraph_url is None and 'sourcegraphUrl' in kwargs: + sourcegraph_url = kwargs['sourcegraphUrl'] + if spam_check_api_key is None and 'spamCheckApiKey' in kwargs: + spam_check_api_key = kwargs['spamCheckApiKey'] + if spam_check_endpoint_enabled is None and 'spamCheckEndpointEnabled' in kwargs: + spam_check_endpoint_enabled = kwargs['spamCheckEndpointEnabled'] + if spam_check_endpoint_url is None and 'spamCheckEndpointUrl' in kwargs: + spam_check_endpoint_url = kwargs['spamCheckEndpointUrl'] + if suggest_pipeline_enabled is None and 'suggestPipelineEnabled' in kwargs: + suggest_pipeline_enabled = kwargs['suggestPipelineEnabled'] + if terminal_max_session_time is None and 'terminalMaxSessionTime' in kwargs: + terminal_max_session_time = kwargs['terminalMaxSessionTime'] + if throttle_authenticated_api_enabled is None and 'throttleAuthenticatedApiEnabled' in kwargs: + throttle_authenticated_api_enabled = kwargs['throttleAuthenticatedApiEnabled'] + if throttle_authenticated_api_period_in_seconds is None and 'throttleAuthenticatedApiPeriodInSeconds' in kwargs: + throttle_authenticated_api_period_in_seconds = kwargs['throttleAuthenticatedApiPeriodInSeconds'] + if throttle_authenticated_api_requests_per_period is None and 'throttleAuthenticatedApiRequestsPerPeriod' in kwargs: + throttle_authenticated_api_requests_per_period = kwargs['throttleAuthenticatedApiRequestsPerPeriod'] + if throttle_authenticated_packages_api_enabled is None and 'throttleAuthenticatedPackagesApiEnabled' in kwargs: + throttle_authenticated_packages_api_enabled = kwargs['throttleAuthenticatedPackagesApiEnabled'] + if throttle_authenticated_packages_api_period_in_seconds is None and 'throttleAuthenticatedPackagesApiPeriodInSeconds' in kwargs: + throttle_authenticated_packages_api_period_in_seconds = kwargs['throttleAuthenticatedPackagesApiPeriodInSeconds'] + if throttle_authenticated_packages_api_requests_per_period is None and 'throttleAuthenticatedPackagesApiRequestsPerPeriod' in kwargs: + throttle_authenticated_packages_api_requests_per_period = kwargs['throttleAuthenticatedPackagesApiRequestsPerPeriod'] + if throttle_authenticated_web_enabled is None and 'throttleAuthenticatedWebEnabled' in kwargs: + throttle_authenticated_web_enabled = kwargs['throttleAuthenticatedWebEnabled'] + if throttle_authenticated_web_period_in_seconds is None and 'throttleAuthenticatedWebPeriodInSeconds' in kwargs: + throttle_authenticated_web_period_in_seconds = kwargs['throttleAuthenticatedWebPeriodInSeconds'] + if throttle_authenticated_web_requests_per_period is None and 'throttleAuthenticatedWebRequestsPerPeriod' in kwargs: + throttle_authenticated_web_requests_per_period = kwargs['throttleAuthenticatedWebRequestsPerPeriod'] + if throttle_unauthenticated_api_enabled is None and 'throttleUnauthenticatedApiEnabled' in kwargs: + throttle_unauthenticated_api_enabled = kwargs['throttleUnauthenticatedApiEnabled'] + if throttle_unauthenticated_api_period_in_seconds is None and 'throttleUnauthenticatedApiPeriodInSeconds' in kwargs: + throttle_unauthenticated_api_period_in_seconds = kwargs['throttleUnauthenticatedApiPeriodInSeconds'] + if throttle_unauthenticated_api_requests_per_period is None and 'throttleUnauthenticatedApiRequestsPerPeriod' in kwargs: + throttle_unauthenticated_api_requests_per_period = kwargs['throttleUnauthenticatedApiRequestsPerPeriod'] + if throttle_unauthenticated_packages_api_enabled is None and 'throttleUnauthenticatedPackagesApiEnabled' in kwargs: + throttle_unauthenticated_packages_api_enabled = kwargs['throttleUnauthenticatedPackagesApiEnabled'] + if throttle_unauthenticated_packages_api_period_in_seconds is None and 'throttleUnauthenticatedPackagesApiPeriodInSeconds' in kwargs: + throttle_unauthenticated_packages_api_period_in_seconds = kwargs['throttleUnauthenticatedPackagesApiPeriodInSeconds'] + if throttle_unauthenticated_packages_api_requests_per_period is None and 'throttleUnauthenticatedPackagesApiRequestsPerPeriod' in kwargs: + throttle_unauthenticated_packages_api_requests_per_period = kwargs['throttleUnauthenticatedPackagesApiRequestsPerPeriod'] + if throttle_unauthenticated_web_enabled is None and 'throttleUnauthenticatedWebEnabled' in kwargs: + throttle_unauthenticated_web_enabled = kwargs['throttleUnauthenticatedWebEnabled'] + if throttle_unauthenticated_web_period_in_seconds is None and 'throttleUnauthenticatedWebPeriodInSeconds' in kwargs: + throttle_unauthenticated_web_period_in_seconds = kwargs['throttleUnauthenticatedWebPeriodInSeconds'] + if throttle_unauthenticated_web_requests_per_period is None and 'throttleUnauthenticatedWebRequestsPerPeriod' in kwargs: + throttle_unauthenticated_web_requests_per_period = kwargs['throttleUnauthenticatedWebRequestsPerPeriod'] + if time_tracking_limit_to_hours is None and 'timeTrackingLimitToHours' in kwargs: + time_tracking_limit_to_hours = kwargs['timeTrackingLimitToHours'] + if two_factor_grace_period is None and 'twoFactorGracePeriod' in kwargs: + two_factor_grace_period = kwargs['twoFactorGracePeriod'] + if unique_ips_limit_enabled is None and 'uniqueIpsLimitEnabled' in kwargs: + unique_ips_limit_enabled = kwargs['uniqueIpsLimitEnabled'] + if unique_ips_limit_per_user is None and 'uniqueIpsLimitPerUser' in kwargs: + unique_ips_limit_per_user = kwargs['uniqueIpsLimitPerUser'] + if unique_ips_limit_time_window is None and 'uniqueIpsLimitTimeWindow' in kwargs: + unique_ips_limit_time_window = kwargs['uniqueIpsLimitTimeWindow'] + if usage_ping_enabled is None and 'usagePingEnabled' in kwargs: + usage_ping_enabled = kwargs['usagePingEnabled'] + if user_deactivation_emails_enabled is None and 'userDeactivationEmailsEnabled' in kwargs: + user_deactivation_emails_enabled = kwargs['userDeactivationEmailsEnabled'] + if user_default_external is None and 'userDefaultExternal' in kwargs: + user_default_external = kwargs['userDefaultExternal'] + if user_default_internal_regex is None and 'userDefaultInternalRegex' in kwargs: + user_default_internal_regex = kwargs['userDefaultInternalRegex'] + if user_oauth_applications is None and 'userOauthApplications' in kwargs: + user_oauth_applications = kwargs['userOauthApplications'] + if user_show_add_ssh_key_message is None and 'userShowAddSshKeyMessage' in kwargs: + user_show_add_ssh_key_message = kwargs['userShowAddSshKeyMessage'] + if version_check_enabled is None and 'versionCheckEnabled' in kwargs: + version_check_enabled = kwargs['versionCheckEnabled'] + if web_ide_clientside_preview_enabled is None and 'webIdeClientsidePreviewEnabled' in kwargs: + web_ide_clientside_preview_enabled = kwargs['webIdeClientsidePreviewEnabled'] + if whats_new_variant is None and 'whatsNewVariant' in kwargs: + whats_new_variant = kwargs['whatsNewVariant'] + if wiki_page_max_content_bytes is None and 'wikiPageMaxContentBytes' in kwargs: + wiki_page_max_content_bytes = kwargs['wikiPageMaxContentBytes'] + if abuse_notification_email is not None: _setter("abuse_notification_email", abuse_notification_email) if admin_mode is not None: @@ -9002,18 +9970,7 @@ def __init__(__self__, wiki_page_max_content_bytes: Optional[pulumi.Input[int]] = None, __props__=None): """ - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - # Set the 2FA settings - this = gitlab.ApplicationSettings("this", - require_two_factor_authentication=True, - two_factor_grace_period=24) - ``` - + Create a ApplicationSettings resource with the given unique name, props, and options. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] abuse_notification_email: If set, abuse reports are sent to this address. Abuse reports are always available in the Admin Area. @@ -9266,18 +10223,7 @@ def __init__(__self__, args: Optional[ApplicationSettingsArgs] = None, opts: Optional[pulumi.ResourceOptions] = None): """ - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - # Set the 2FA settings - this = gitlab.ApplicationSettings("this", - require_two_factor_authentication=True, - two_factor_grace_period=24) - ``` - + Create a ApplicationSettings resource with the given unique name, props, and options. :param str resource_name: The name of the resource. :param ApplicationSettingsArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. diff --git a/sdk/python/pulumi_gitlab/branch.py b/sdk/python/pulumi_gitlab/branch.py index 1cd3334d..d690f7b6 100644 --- a/sdk/python/pulumi_gitlab/branch.py +++ b/sdk/python/pulumi_gitlab/branch.py @@ -34,10 +34,16 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - project: pulumi.Input[str], - ref: pulumi.Input[str], + project: Optional[pulumi.Input[str]] = None, + ref: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if project is None: + raise TypeError("Missing 'project' argument") + if ref is None: + raise TypeError("Missing 'ref' argument") + _setter("project", project) _setter("ref", ref) if name is not None: @@ -136,7 +142,17 @@ def _configure( protected: Optional[pulumi.Input[bool]] = None, ref: Optional[pulumi.Input[str]] = None, web_url: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if can_push is None and 'canPush' in kwargs: + can_push = kwargs['canPush'] + if developer_can_merge is None and 'developerCanMerge' in kwargs: + developer_can_merge = kwargs['developerCanMerge'] + if developer_can_push is None and 'developerCanPush' in kwargs: + developer_can_push = kwargs['developerCanPush'] + if web_url is None and 'webUrl' in kwargs: + web_url = kwargs['webUrl'] + if can_push is not None: _setter("can_push", can_push) if commits is not None: @@ -307,21 +323,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/branches.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - # Create a project for the branch to use - example_project = gitlab.Project("exampleProject", - description="An example project", - namespace_id=gitlab_group["example"]["id"]) - example_branch = gitlab.Branch("exampleBranch", - ref="main", - project=example_project.id) - ``` - ## Import Gitlab branches can be imported with a key composed of `:`, e.g. @@ -347,21 +348,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/branches.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - # Create a project for the branch to use - example_project = gitlab.Project("exampleProject", - description="An example project", - namespace_id=gitlab_group["example"]["id"]) - example_branch = gitlab.Branch("exampleBranch", - ref="main", - project=example_project.id) - ``` - ## Import Gitlab branches can be imported with a key composed of `:`, e.g. diff --git a/sdk/python/pulumi_gitlab/branch_protection.py b/sdk/python/pulumi_gitlab/branch_protection.py index d6ee4f11..b8a5403b 100644 --- a/sdk/python/pulumi_gitlab/branch_protection.py +++ b/sdk/python/pulumi_gitlab/branch_protection.py @@ -55,8 +55,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - branch: pulumi.Input[str], - project: pulumi.Input[str], + branch: Optional[pulumi.Input[str]] = None, + project: Optional[pulumi.Input[str]] = None, allow_force_push: Optional[pulumi.Input[bool]] = None, allowed_to_merges: Optional[pulumi.Input[Sequence[pulumi.Input['BranchProtectionAllowedToMergeArgs']]]] = None, allowed_to_pushes: Optional[pulumi.Input[Sequence[pulumi.Input['BranchProtectionAllowedToPushArgs']]]] = None, @@ -65,7 +65,29 @@ def _configure( merge_access_level: Optional[pulumi.Input[str]] = None, push_access_level: Optional[pulumi.Input[str]] = None, unprotect_access_level: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if branch is None: + raise TypeError("Missing 'branch' argument") + if project is None: + raise TypeError("Missing 'project' argument") + if allow_force_push is None and 'allowForcePush' in kwargs: + allow_force_push = kwargs['allowForcePush'] + if allowed_to_merges is None and 'allowedToMerges' in kwargs: + allowed_to_merges = kwargs['allowedToMerges'] + if allowed_to_pushes is None and 'allowedToPushes' in kwargs: + allowed_to_pushes = kwargs['allowedToPushes'] + if allowed_to_unprotects is None and 'allowedToUnprotects' in kwargs: + allowed_to_unprotects = kwargs['allowedToUnprotects'] + if code_owner_approval_required is None and 'codeOwnerApprovalRequired' in kwargs: + code_owner_approval_required = kwargs['codeOwnerApprovalRequired'] + if merge_access_level is None and 'mergeAccessLevel' in kwargs: + merge_access_level = kwargs['mergeAccessLevel'] + if push_access_level is None and 'pushAccessLevel' in kwargs: + push_access_level = kwargs['pushAccessLevel'] + if unprotect_access_level is None and 'unprotectAccessLevel' in kwargs: + unprotect_access_level = kwargs['unprotectAccessLevel'] + _setter("branch", branch) _setter("project", project) if allow_force_push is not None: @@ -262,7 +284,27 @@ def _configure( project: Optional[pulumi.Input[str]] = None, push_access_level: Optional[pulumi.Input[str]] = None, unprotect_access_level: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if allow_force_push is None and 'allowForcePush' in kwargs: + allow_force_push = kwargs['allowForcePush'] + if allowed_to_merges is None and 'allowedToMerges' in kwargs: + allowed_to_merges = kwargs['allowedToMerges'] + if allowed_to_pushes is None and 'allowedToPushes' in kwargs: + allowed_to_pushes = kwargs['allowedToPushes'] + if allowed_to_unprotects is None and 'allowedToUnprotects' in kwargs: + allowed_to_unprotects = kwargs['allowedToUnprotects'] + if branch_protection_id is None and 'branchProtectionId' in kwargs: + branch_protection_id = kwargs['branchProtectionId'] + if code_owner_approval_required is None and 'codeOwnerApprovalRequired' in kwargs: + code_owner_approval_required = kwargs['codeOwnerApprovalRequired'] + if merge_access_level is None and 'mergeAccessLevel' in kwargs: + merge_access_level = kwargs['mergeAccessLevel'] + if push_access_level is None and 'pushAccessLevel' in kwargs: + push_access_level = kwargs['pushAccessLevel'] + if unprotect_access_level is None and 'unprotectAccessLevel' in kwargs: + unprotect_access_level = kwargs['unprotectAccessLevel'] + if allow_force_push is not None: _setter("allow_force_push", allow_force_push) if allowed_to_merges is not None: diff --git a/sdk/python/pulumi_gitlab/cluster_agent.py b/sdk/python/pulumi_gitlab/cluster_agent.py index 40bf2c66..237a5117 100644 --- a/sdk/python/pulumi_gitlab/cluster_agent.py +++ b/sdk/python/pulumi_gitlab/cluster_agent.py @@ -29,9 +29,13 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - project: pulumi.Input[str], + project: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if project is None: + raise TypeError("Missing 'project' argument") + _setter("project", project) if name is not None: _setter("name", name) @@ -93,7 +97,15 @@ def _configure( created_by_user_id: Optional[pulumi.Input[int]] = None, name: Optional[pulumi.Input[str]] = None, project: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if agent_id is None and 'agentId' in kwargs: + agent_id = kwargs['agentId'] + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if created_by_user_id is None and 'createdByUserId' in kwargs: + created_by_user_id = kwargs['createdByUserId'] + if agent_id is not None: _setter("agent_id", agent_id) if created_at is not None: @@ -188,27 +200,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.ClusterAgent("example", project="12345") - # Optionally, configure the agent as described in - # https://docs.gitlab.com/ee/user/clusters/agent/install/index.html#create-an-agent-configuration-file - example_agent_config = gitlab.RepositoryFile("exampleAgentConfig", - project=example.project, - branch="main", - file_path=example.name.apply(lambda name: f".gitlab/agents/{name}"), - content=\"\"\" gitops: - ... - \"\"\", - author_email="terraform@example.com", - author_name="Terraform", - commit_message=example.name.apply(lambda name: f"feature: add agent config for {name}")) - ``` - ## Import GitLab Agent for Kubernetes can be imported with the following command and the id pattern `:` @@ -242,27 +233,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.ClusterAgent("example", project="12345") - # Optionally, configure the agent as described in - # https://docs.gitlab.com/ee/user/clusters/agent/install/index.html#create-an-agent-configuration-file - example_agent_config = gitlab.RepositoryFile("exampleAgentConfig", - project=example.project, - branch="main", - file_path=example.name.apply(lambda name: f".gitlab/agents/{name}"), - content=\"\"\" gitops: - ... - \"\"\", - author_email="terraform@example.com", - author_name="Terraform", - commit_message=example.name.apply(lambda name: f"feature: add agent config for {name}")) - ``` - ## Import GitLab Agent for Kubernetes can be imported with the following command and the id pattern `:` diff --git a/sdk/python/pulumi_gitlab/cluster_agent_token.py b/sdk/python/pulumi_gitlab/cluster_agent_token.py index 30ecc842..ca166ca5 100644 --- a/sdk/python/pulumi_gitlab/cluster_agent_token.py +++ b/sdk/python/pulumi_gitlab/cluster_agent_token.py @@ -35,11 +35,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - agent_id: pulumi.Input[int], - project: pulumi.Input[str], + agent_id: Optional[pulumi.Input[int]] = None, + project: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if agent_id is None and 'agentId' in kwargs: + agent_id = kwargs['agentId'] + if agent_id is None: + raise TypeError("Missing 'agent_id' argument") + if project is None: + raise TypeError("Missing 'project' argument") + _setter("agent_id", agent_id) _setter("project", project) if description is not None: @@ -148,7 +156,19 @@ def _configure( status: Optional[pulumi.Input[str]] = None, token: Optional[pulumi.Input[str]] = None, token_id: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if agent_id is None and 'agentId' in kwargs: + agent_id = kwargs['agentId'] + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if created_by_user_id is None and 'createdByUserId' in kwargs: + created_by_user_id = kwargs['createdByUserId'] + if last_used_at is None and 'lastUsedAt' in kwargs: + last_used_at = kwargs['lastUsedAt'] + if token_id is None and 'tokenId' in kwargs: + token_id = kwargs['tokenId'] + if agent_id is not None: _setter("agent_id", agent_id) if created_at is not None: @@ -310,37 +330,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html#create-an-agent-token) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - import pulumi_helm as helm - - # Create token for an agent - example = gitlab.ClusterAgentToken("example", - project="12345", - agent_id=42, - description="some token") - this_project = gitlab.get_project(path_with_namespace="my-org/example") - this_cluster_agent = gitlab.ClusterAgent("thisClusterAgent", project=this_project.id) - this_cluster_agent_token = gitlab.ClusterAgentToken("thisClusterAgentToken", - project=this_project.id, - agent_id=this_cluster_agent.agent_id, - description="Token for the my-agent used with `gitlab-agent` Helm Chart") - gitlab_agent = helm.index.Helm_release("gitlabAgent", - name=gitlab-agent, - namespace=gitlab-agent, - create_namespace=True, - repository=https://charts.gitlab.io, - chart=gitlab-agent, - version=1.2.0, - set=[{ - name: config.token, - value: this_cluster_agent_token.token, - }]) - ``` - ## Import A token for a GitLab Agent for Kubernetes can be imported with the following command and the id pattern `::` @@ -373,37 +362,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html#create-an-agent-token) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - import pulumi_helm as helm - - # Create token for an agent - example = gitlab.ClusterAgentToken("example", - project="12345", - agent_id=42, - description="some token") - this_project = gitlab.get_project(path_with_namespace="my-org/example") - this_cluster_agent = gitlab.ClusterAgent("thisClusterAgent", project=this_project.id) - this_cluster_agent_token = gitlab.ClusterAgentToken("thisClusterAgentToken", - project=this_project.id, - agent_id=this_cluster_agent.agent_id, - description="Token for the my-agent used with `gitlab-agent` Helm Chart") - gitlab_agent = helm.index.Helm_release("gitlabAgent", - name=gitlab-agent, - namespace=gitlab-agent, - create_namespace=True, - repository=https://charts.gitlab.io, - chart=gitlab-agent, - version=1.2.0, - set=[{ - name: config.token, - value: this_cluster_agent_token.token, - }]) - ``` - ## Import A token for a GitLab Agent for Kubernetes can be imported with the following command and the id pattern `::` diff --git a/sdk/python/pulumi_gitlab/compliance_framework.py b/sdk/python/pulumi_gitlab/compliance_framework.py index bf6e3387..7d085236 100644 --- a/sdk/python/pulumi_gitlab/compliance_framework.py +++ b/sdk/python/pulumi_gitlab/compliance_framework.py @@ -41,13 +41,25 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - color: pulumi.Input[str], - description: pulumi.Input[str], - namespace_path: pulumi.Input[str], + color: Optional[pulumi.Input[str]] = None, + description: Optional[pulumi.Input[str]] = None, + namespace_path: Optional[pulumi.Input[str]] = None, default: Optional[pulumi.Input[bool]] = None, name: Optional[pulumi.Input[str]] = None, pipeline_configuration_full_path: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if color is None: + raise TypeError("Missing 'color' argument") + if description is None: + raise TypeError("Missing 'description' argument") + if namespace_path is None and 'namespacePath' in kwargs: + namespace_path = kwargs['namespacePath'] + if namespace_path is None: + raise TypeError("Missing 'namespace_path' argument") + if pipeline_configuration_full_path is None and 'pipelineConfigurationFullPath' in kwargs: + pipeline_configuration_full_path = kwargs['pipelineConfigurationFullPath'] + _setter("color", color) _setter("description", description) _setter("namespace_path", namespace_path) @@ -171,7 +183,15 @@ def _configure( name: Optional[pulumi.Input[str]] = None, namespace_path: Optional[pulumi.Input[str]] = None, pipeline_configuration_full_path: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if framework_id is None and 'frameworkId' in kwargs: + framework_id = kwargs['frameworkId'] + if namespace_path is None and 'namespacePath' in kwargs: + namespace_path = kwargs['namespacePath'] + if pipeline_configuration_full_path is None and 'pipelineConfigurationFullPath' in kwargs: + pipeline_configuration_full_path = kwargs['pipelineConfigurationFullPath'] + if color is not None: _setter("color", color) if default is not None: @@ -295,20 +315,6 @@ def __init__(__self__, **Upstream API**: [GitLab GraphQL API docs](https://docs.gitlab.com/ee/api/graphql/reference/#mutationcreatecomplianceframework) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - sample = gitlab.ComplianceFramework("sample", - color="#87BEEF", - default=False, - description="A HIPAA Compliance Framework", - namespace_path="top-level-group", - pipeline_configuration_full_path=".hipaa.yml@top-level-group/compliance-frameworks") - ``` - ## Import Gitlab compliance frameworks can be imported with a key composed of `:`, e.g. @@ -343,20 +349,6 @@ def __init__(__self__, **Upstream API**: [GitLab GraphQL API docs](https://docs.gitlab.com/ee/api/graphql/reference/#mutationcreatecomplianceframework) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - sample = gitlab.ComplianceFramework("sample", - color="#87BEEF", - default=False, - description="A HIPAA Compliance Framework", - namespace_path="top-level-group", - pipeline_configuration_full_path=".hipaa.yml@top-level-group/compliance-frameworks") - ``` - ## Import Gitlab compliance frameworks can be imported with a key composed of `:`, e.g. diff --git a/sdk/python/pulumi_gitlab/deploy_key.py b/sdk/python/pulumi_gitlab/deploy_key.py index 37b22859..22f2f422 100644 --- a/sdk/python/pulumi_gitlab/deploy_key.py +++ b/sdk/python/pulumi_gitlab/deploy_key.py @@ -35,11 +35,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - key: pulumi.Input[str], - project: pulumi.Input[str], - title: pulumi.Input[str], + key: Optional[pulumi.Input[str]] = None, + project: Optional[pulumi.Input[str]] = None, + title: Optional[pulumi.Input[str]] = None, can_push: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if key is None: + raise TypeError("Missing 'key' argument") + if project is None: + raise TypeError("Missing 'project' argument") + if title is None: + raise TypeError("Missing 'title' argument") + if can_push is None and 'canPush' in kwargs: + can_push = kwargs['canPush'] + _setter("key", key) _setter("project", project) _setter("title", title) @@ -127,7 +137,13 @@ def _configure( key: Optional[pulumi.Input[str]] = None, project: Optional[pulumi.Input[str]] = None, title: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if can_push is None and 'canPush' in kwargs: + can_push = kwargs['canPush'] + if deploy_key_id is None and 'deployKeyId' in kwargs: + deploy_key_id = kwargs['deployKeyId'] + if can_push is not None: _setter("can_push", can_push) if deploy_key_id is not None: @@ -217,18 +233,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/deploy_keys.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.DeployKey("example", - key="ssh-ed25519 AAAA...", - project="example/deploying", - title="Example deploy key") - ``` - ## Import GitLab deploy keys can be imported using an id made up of `{project_id}:{deploy_key_id}`, e.g. `project_id` can be whatever the [get single project api][get_single_project] takes for its `:id` value, so for example @@ -261,18 +265,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/deploy_keys.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.DeployKey("example", - key="ssh-ed25519 AAAA...", - project="example/deploying", - title="Example deploy key") - ``` - ## Import GitLab deploy keys can be imported using an id made up of `{project_id}:{deploy_key_id}`, e.g. `project_id` can be whatever the [get single project api][get_single_project] takes for its `:id` value, so for example diff --git a/sdk/python/pulumi_gitlab/deploy_key_enable.py b/sdk/python/pulumi_gitlab/deploy_key_enable.py index 5c7d5cbd..ba149c10 100644 --- a/sdk/python/pulumi_gitlab/deploy_key_enable.py +++ b/sdk/python/pulumi_gitlab/deploy_key_enable.py @@ -38,12 +38,22 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - key_id: pulumi.Input[str], - project: pulumi.Input[str], + key_id: Optional[pulumi.Input[str]] = None, + project: Optional[pulumi.Input[str]] = None, can_push: Optional[pulumi.Input[bool]] = None, key: Optional[pulumi.Input[str]] = None, title: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if key_id is None and 'keyId' in kwargs: + key_id = kwargs['keyId'] + if key_id is None: + raise TypeError("Missing 'key_id' argument") + if project is None: + raise TypeError("Missing 'project' argument") + if can_push is None and 'canPush' in kwargs: + can_push = kwargs['canPush'] + _setter("key_id", key_id) _setter("project", project) if can_push is not None: @@ -146,7 +156,13 @@ def _configure( key_id: Optional[pulumi.Input[str]] = None, project: Optional[pulumi.Input[str]] = None, title: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if can_push is None and 'canPush' in kwargs: + can_push = kwargs['canPush'] + if key_id is None and 'keyId' in kwargs: + key_id = kwargs['keyId'] + if can_push is not None: _setter("can_push", can_push) if key is not None: @@ -235,27 +251,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/deploy_keys.html#enable-a-deploy-key) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - # A repo to host the deployment key - parent_project = gitlab.Project("parentProject") - # A second repo to use the deployment key from the parent project - foo_project = gitlab.Project("fooProject") - # Upload a deployment key for the parent repo - parent_deploy_key = gitlab.DeployKey("parentDeployKey", - project=parent_project.id, - title="Example deploy key", - key="ssh-ed25519 AAAA...") - # Enable the deployment key on the second repo - foo_deploy_key_enable = gitlab.DeployKeyEnable("fooDeployKeyEnable", - project=foo_project.id, - key_id=parent_deploy_key.deploy_key_id) - ``` - ## Import GitLab enabled deploy keys can be imported using an id made up of `{project_id}:{deploy_key_id}`, e.g. `project_id` can be whatever the [get single project api][get_single_project] takes for its `:id` value, so for example @@ -287,27 +282,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/deploy_keys.html#enable-a-deploy-key) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - # A repo to host the deployment key - parent_project = gitlab.Project("parentProject") - # A second repo to use the deployment key from the parent project - foo_project = gitlab.Project("fooProject") - # Upload a deployment key for the parent repo - parent_deploy_key = gitlab.DeployKey("parentDeployKey", - project=parent_project.id, - title="Example deploy key", - key="ssh-ed25519 AAAA...") - # Enable the deployment key on the second repo - foo_deploy_key_enable = gitlab.DeployKeyEnable("fooDeployKeyEnable", - project=foo_project.id, - key_id=parent_deploy_key.deploy_key_id) - ``` - ## Import GitLab enabled deploy keys can be imported using an id made up of `{project_id}:{deploy_key_id}`, e.g. `project_id` can be whatever the [get single project api][get_single_project] takes for its `:id` value, so for example diff --git a/sdk/python/pulumi_gitlab/deploy_token.py b/sdk/python/pulumi_gitlab/deploy_token.py index e6bbe018..80277adf 100644 --- a/sdk/python/pulumi_gitlab/deploy_token.py +++ b/sdk/python/pulumi_gitlab/deploy_token.py @@ -41,13 +41,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - scopes: pulumi.Input[Sequence[pulumi.Input[str]]], + scopes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, expires_at: Optional[pulumi.Input[str]] = None, group: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, project: Optional[pulumi.Input[str]] = None, username: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if scopes is None: + raise TypeError("Missing 'scopes' argument") + if expires_at is None and 'expiresAt' in kwargs: + expires_at = kwargs['expiresAt'] + _setter("scopes", scopes) if expires_at is not None: _setter("expires_at", expires_at) @@ -177,7 +183,13 @@ def _configure( scopes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, token: Optional[pulumi.Input[str]] = None, username: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if deploy_token_id is None and 'deployTokenId' in kwargs: + deploy_token_id = kwargs['deployTokenId'] + if expires_at is None and 'expiresAt' in kwargs: + expires_at = kwargs['expiresAt'] + if deploy_token_id is not None: _setter("deploy_token_id", deploy_token_id) if expires_at is not None: diff --git a/sdk/python/pulumi_gitlab/get_branch.py b/sdk/python/pulumi_gitlab/get_branch.py index 91f3ac70..ae3b5605 100644 --- a/sdk/python/pulumi_gitlab/get_branch.py +++ b/sdk/python/pulumi_gitlab/get_branch.py @@ -173,16 +173,6 @@ def get_branch(name: Optional[str] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/branches.html#get-single-repository-branch) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.get_branch(name="example", - project="foo/bar") - ``` - :param str name: The name of the branch. :param str project: The full path or id of the project. @@ -216,16 +206,6 @@ def get_branch_output(name: Optional[pulumi.Input[str]] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/branches.html#get-single-repository-branch) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.get_branch(name="example", - project="foo/bar") - ``` - :param str name: The name of the branch. :param str project: The full path or id of the project. diff --git a/sdk/python/pulumi_gitlab/get_cluster_agent.py b/sdk/python/pulumi_gitlab/get_cluster_agent.py index 9d536bfb..40381988 100644 --- a/sdk/python/pulumi_gitlab/get_cluster_agent.py +++ b/sdk/python/pulumi_gitlab/get_cluster_agent.py @@ -114,16 +114,6 @@ def get_cluster_agent(agent_id: Optional[int] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_cluster_agent(agent_id=1, - project="12345") - ``` - :param int agent_id: The ID of the agent. :param str project: ID or full path of the project maintained by the authenticated user. @@ -154,16 +144,6 @@ def get_cluster_agent_output(agent_id: Optional[pulumi.Input[int]] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_cluster_agent(agent_id=1, - project="12345") - ``` - :param int agent_id: The ID of the agent. :param str project: ID or full path of the project maintained by the authenticated user. diff --git a/sdk/python/pulumi_gitlab/get_cluster_agents.py b/sdk/python/pulumi_gitlab/get_cluster_agents.py index e35cbd7a..809eb496 100644 --- a/sdk/python/pulumi_gitlab/get_cluster_agents.py +++ b/sdk/python/pulumi_gitlab/get_cluster_agents.py @@ -77,15 +77,6 @@ def get_cluster_agents(project: Optional[str] = None, > Requires at least GitLab 14.10 **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html) - - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - agents = gitlab.get_cluster_agents(project="12345") - ``` """ __args__ = dict() __args__['project'] = project @@ -107,14 +98,5 @@ def get_cluster_agents_output(project: Optional[pulumi.Input[str]] = None, > Requires at least GitLab 14.10 **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html) - - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - agents = gitlab.get_cluster_agents(project="12345") - ``` """ ... diff --git a/sdk/python/pulumi_gitlab/get_current_user.py b/sdk/python/pulumi_gitlab/get_current_user.py index ea63c983..414c61a1 100644 --- a/sdk/python/pulumi_gitlab/get_current_user.py +++ b/sdk/python/pulumi_gitlab/get_current_user.py @@ -145,15 +145,6 @@ def get_current_user(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGe The `get_current_user` data source allows details of the current user (determined by `token` provider attribute) to be retrieved. **Upstream API**: [GitLab GraphQL API docs](https://docs.gitlab.com/ee/api/graphql/reference/index.html#querycurrentuser) - - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_current_user() - ``` """ __args__ = dict() opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) @@ -177,14 +168,5 @@ def get_current_user_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulu The `get_current_user` data source allows details of the current user (determined by `token` provider attribute) to be retrieved. **Upstream API**: [GitLab GraphQL API docs](https://docs.gitlab.com/ee/api/graphql/reference/index.html#querycurrentuser) - - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_current_user() - ``` """ ... diff --git a/sdk/python/pulumi_gitlab/get_group.py b/sdk/python/pulumi_gitlab/get_group.py index 82f06b5d..263045de 100644 --- a/sdk/python/pulumi_gitlab/get_group.py +++ b/sdk/python/pulumi_gitlab/get_group.py @@ -268,15 +268,6 @@ def get_group(full_path: Optional[str] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#details-of-a-group) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.get_group(full_path="foo/bar") - ``` - :param str full_path: The full path of the group. :param int group_id: The ID of the group. @@ -318,15 +309,6 @@ def get_group_output(full_path: Optional[pulumi.Input[Optional[str]]] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#details-of-a-group) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.get_group(full_path="foo/bar") - ``` - :param str full_path: The full path of the group. :param int group_id: The ID of the group. diff --git a/sdk/python/pulumi_gitlab/get_group_membership.py b/sdk/python/pulumi_gitlab/get_group_membership.py index 57985266..3898ebae 100644 --- a/sdk/python/pulumi_gitlab/get_group_membership.py +++ b/sdk/python/pulumi_gitlab/get_group_membership.py @@ -115,15 +115,6 @@ def get_group_membership(access_level: Optional[str] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/members.html#list-all-members-of-a-group-or-project) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_group_membership(full_path="foo/bar") - ``` - :param str full_path: The full path of the group. :param int group_id: The ID of the group. @@ -157,15 +148,6 @@ def get_group_membership_output(access_level: Optional[pulumi.Input[Optional[str **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/members.html#list-all-members-of-a-group-or-project) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_group_membership(full_path="foo/bar") - ``` - :param str full_path: The full path of the group. :param int group_id: The ID of the group. diff --git a/sdk/python/pulumi_gitlab/get_group_subgroups.py b/sdk/python/pulumi_gitlab/get_group_subgroups.py index 1cf85273..a6fea57d 100644 --- a/sdk/python/pulumi_gitlab/get_group_subgroups.py +++ b/sdk/python/pulumi_gitlab/get_group_subgroups.py @@ -193,16 +193,6 @@ def get_group_subgroups(all_available: Optional[bool] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#list-a-groups-subgroups) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - subgroups_group_subgroups = gitlab.get_group_subgroups(group_id=123456) - pulumi.export("subgroups", subgroups_group_subgroups) - ``` - :param bool all_available: Show all the groups you have access to. :param str min_access_level: Limit to groups where current user has at least this access level. @@ -259,16 +249,6 @@ def get_group_subgroups_output(all_available: Optional[pulumi.Input[Optional[boo **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#list-a-groups-subgroups) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - subgroups_group_subgroups = gitlab.get_group_subgroups(group_id=123456) - pulumi.export("subgroups", subgroups_group_subgroups) - ``` - :param bool all_available: Show all the groups you have access to. :param str min_access_level: Limit to groups where current user has at least this access level. diff --git a/sdk/python/pulumi_gitlab/get_group_variable.py b/sdk/python/pulumi_gitlab/get_group_variable.py index 62728cbb..5d6b032f 100644 --- a/sdk/python/pulumi_gitlab/get_group_variable.py +++ b/sdk/python/pulumi_gitlab/get_group_variable.py @@ -149,19 +149,6 @@ def get_group_variable(environment_scope: Optional[str] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_level_variables.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.get_group_variable(group="my/example/group", - key="foo") - bar = gitlab.get_group_variable(environment_scope="staging/*", - group="my/example/group", - key="bar") - ``` - :param str environment_scope: The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. :param str group: The name or id of the group. @@ -196,19 +183,6 @@ def get_group_variable_output(environment_scope: Optional[pulumi.Input[Optional[ **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_level_variables.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.get_group_variable(group="my/example/group", - key="foo") - bar = gitlab.get_group_variable(environment_scope="staging/*", - group="my/example/group", - key="bar") - ``` - :param str environment_scope: The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. :param str group: The name or id of the group. diff --git a/sdk/python/pulumi_gitlab/get_group_variables.py b/sdk/python/pulumi_gitlab/get_group_variables.py index ea440664..d844cd74 100644 --- a/sdk/python/pulumi_gitlab/get_group_variables.py +++ b/sdk/python/pulumi_gitlab/get_group_variables.py @@ -88,17 +88,6 @@ def get_group_variables(environment_scope: Optional[str] = None, The `get_group_variables` data source allows to retrieve all group-level CI/CD variables. **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_level_variables.html) - - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - vars = gitlab.get_group_variables(group="my/example/group") - staging_vars = gitlab.get_group_variables(environment_scope="staging/*", - group="my/example/group") - ``` """ __args__ = dict() __args__['environmentScope'] = environment_scope @@ -121,16 +110,5 @@ def get_group_variables_output(environment_scope: Optional[pulumi.Input[Optional The `get_group_variables` data source allows to retrieve all group-level CI/CD variables. **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_level_variables.html) - - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - vars = gitlab.get_group_variables(group="my/example/group") - staging_vars = gitlab.get_group_variables(environment_scope="staging/*", - group="my/example/group") - ``` """ ... diff --git a/sdk/python/pulumi_gitlab/get_groups.py b/sdk/python/pulumi_gitlab/get_groups.py index ceee51fd..622e91ff 100644 --- a/sdk/python/pulumi_gitlab/get_groups.py +++ b/sdk/python/pulumi_gitlab/get_groups.py @@ -119,17 +119,6 @@ def get_groups(order_by: Optional[str] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#list-groups) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_groups(order_by="name", - sort="desc") - example_two = gitlab.get_groups(search="GitLab") - ``` - :param str order_by: Order the groups' list by `id`, `name`, `path`, or `similarity`. (Requires administrator privileges) :param str search: Search groups by name or path. @@ -168,17 +157,6 @@ def get_groups_output(order_by: Optional[pulumi.Input[Optional[str]]] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#list-groups) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_groups(order_by="name", - sort="desc") - example_two = gitlab.get_groups(search="GitLab") - ``` - :param str order_by: Order the groups' list by `id`, `name`, `path`, or `similarity`. (Requires administrator privileges) :param str search: Search groups by name or path. diff --git a/sdk/python/pulumi_gitlab/get_instance_deploy_keys.py b/sdk/python/pulumi_gitlab/get_instance_deploy_keys.py index 9a4d24a6..05cd39e0 100644 --- a/sdk/python/pulumi_gitlab/get_instance_deploy_keys.py +++ b/sdk/python/pulumi_gitlab/get_instance_deploy_keys.py @@ -78,15 +78,6 @@ def get_instance_deploy_keys(public: Optional[bool] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/deploy_keys.html#list-all-deploy-keys) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_instance_deploy_keys(public=True) - ``` - :param bool public: Only return deploy keys that are public. """ @@ -111,15 +102,6 @@ def get_instance_deploy_keys_output(public: Optional[pulumi.Input[Optional[bool] **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/deploy_keys.html#list-all-deploy-keys) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_instance_deploy_keys(public=True) - ``` - :param bool public: Only return deploy keys that are public. """ diff --git a/sdk/python/pulumi_gitlab/get_instance_variable.py b/sdk/python/pulumi_gitlab/get_instance_variable.py index 077dbe09..c03b2fe2 100644 --- a/sdk/python/pulumi_gitlab/get_instance_variable.py +++ b/sdk/python/pulumi_gitlab/get_instance_variable.py @@ -123,15 +123,6 @@ def get_instance_variable(key: Optional[str] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/instance_level_ci_variables.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.get_instance_variable(key="foo") - ``` - :param str key: The name of the variable. """ @@ -158,15 +149,6 @@ def get_instance_variable_output(key: Optional[pulumi.Input[str]] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/instance_level_ci_variables.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.get_instance_variable(key="foo") - ``` - :param str key: The name of the variable. """ diff --git a/sdk/python/pulumi_gitlab/get_instance_variables.py b/sdk/python/pulumi_gitlab/get_instance_variables.py index 93f1b20a..6d0440fc 100644 --- a/sdk/python/pulumi_gitlab/get_instance_variables.py +++ b/sdk/python/pulumi_gitlab/get_instance_variables.py @@ -62,15 +62,6 @@ def get_instance_variables(opts: Optional[pulumi.InvokeOptions] = None) -> Await The `get_instance_variables` data source allows to retrieve all instance-level CI/CD variables. **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/instance_level_ci_variables.html) - - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - vars = gitlab.get_instance_variables() - ``` """ __args__ = dict() opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) @@ -87,14 +78,5 @@ def get_instance_variables_output(opts: Optional[pulumi.InvokeOptions] = None) - The `get_instance_variables` data source allows to retrieve all instance-level CI/CD variables. **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/instance_level_ci_variables.html) - - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - vars = gitlab.get_instance_variables() - ``` """ ... diff --git a/sdk/python/pulumi_gitlab/get_metadata.py b/sdk/python/pulumi_gitlab/get_metadata.py index 9eda4699..ec77b32b 100644 --- a/sdk/python/pulumi_gitlab/get_metadata.py +++ b/sdk/python/pulumi_gitlab/get_metadata.py @@ -98,15 +98,6 @@ def get_metadata(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetMet The `get_metadata` data source retrieves the metadata of the GitLab instance. **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/metadata.html) - - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - this = gitlab.get_metadata() - ``` """ __args__ = dict() opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) @@ -126,14 +117,5 @@ def get_metadata_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.O The `get_metadata` data source retrieves the metadata of the GitLab instance. **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/metadata.html) - - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - this = gitlab.get_metadata() - ``` """ ... diff --git a/sdk/python/pulumi_gitlab/get_project.py b/sdk/python/pulumi_gitlab/get_project.py index b9d71739..ab7abdd9 100644 --- a/sdk/python/pulumi_gitlab/get_project.py +++ b/sdk/python/pulumi_gitlab/get_project.py @@ -799,15 +799,6 @@ def get_project(ci_default_git_depth: Optional[int] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#get-single-project) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_project(path_with_namespace="foo/bar/baz") - ``` - :param int ci_default_git_depth: Default number of revisions for shallow cloning. :param str id: The integer that uniquely identifies the project within the gitlab install. @@ -899,15 +890,6 @@ def get_project_output(ci_default_git_depth: Optional[pulumi.Input[Optional[int] **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#get-single-project) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_project(path_with_namespace="foo/bar/baz") - ``` - :param int ci_default_git_depth: Default number of revisions for shallow cloning. :param str id: The integer that uniquely identifies the project within the gitlab install. diff --git a/sdk/python/pulumi_gitlab/get_project_branches.py b/sdk/python/pulumi_gitlab/get_project_branches.py index 5401177f..64915b92 100644 --- a/sdk/python/pulumi_gitlab/get_project_branches.py +++ b/sdk/python/pulumi_gitlab/get_project_branches.py @@ -76,15 +76,6 @@ def get_project_branches(project: Optional[str] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/branches.html#list-repository-branches) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_project_branches(project="foo/bar/baz") - ``` - :param str project: ID or URL-encoded path of the project owned by the authenticated user. """ @@ -107,15 +98,6 @@ def get_project_branches_output(project: Optional[pulumi.Input[str]] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/branches.html#list-repository-branches) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_project_branches(project="foo/bar/baz") - ``` - :param str project: ID or URL-encoded path of the project owned by the authenticated user. """ diff --git a/sdk/python/pulumi_gitlab/get_project_hook.py b/sdk/python/pulumi_gitlab/get_project_hook.py index d4001992..8f894fe5 100644 --- a/sdk/python/pulumi_gitlab/get_project_hook.py +++ b/sdk/python/pulumi_gitlab/get_project_hook.py @@ -280,17 +280,6 @@ def get_project_hook(hook_id: Optional[int] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#get-project-hook) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example_project = gitlab.get_project(id="foo/bar/baz") - example_project_hook = gitlab.get_project_hook(project=example_project.id, - hook_id=1) - ``` - :param int hook_id: The id of the project hook. :param str project: The name or id of the project to add the hook to. @@ -333,17 +322,6 @@ def get_project_hook_output(hook_id: Optional[pulumi.Input[int]] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#get-project-hook) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example_project = gitlab.get_project(id="foo/bar/baz") - example_project_hook = gitlab.get_project_hook(project=example_project.id, - hook_id=1) - ``` - :param int hook_id: The id of the project hook. :param str project: The name or id of the project to add the hook to. diff --git a/sdk/python/pulumi_gitlab/get_project_hooks.py b/sdk/python/pulumi_gitlab/get_project_hooks.py index f768b894..f91c4369 100644 --- a/sdk/python/pulumi_gitlab/get_project_hooks.py +++ b/sdk/python/pulumi_gitlab/get_project_hooks.py @@ -75,16 +75,6 @@ def get_project_hooks(project: Optional[str] = None, The `get_project_hooks` data source allows to retrieve details about hooks in a project. **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#list-project-hooks) - - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_project(id="foo/bar/baz") - examples = gitlab.get_project_hooks(project=example.id) - ``` """ __args__ = dict() __args__['project'] = project @@ -104,15 +94,5 @@ def get_project_hooks_output(project: Optional[pulumi.Input[str]] = None, The `get_project_hooks` data source allows to retrieve details about hooks in a project. **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#list-project-hooks) - - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_project(id="foo/bar/baz") - examples = gitlab.get_project_hooks(project=example.id) - ``` """ ... diff --git a/sdk/python/pulumi_gitlab/get_project_issue.py b/sdk/python/pulumi_gitlab/get_project_issue.py index fcc0558c..6170dcfa 100644 --- a/sdk/python/pulumi_gitlab/get_project_issue.py +++ b/sdk/python/pulumi_gitlab/get_project_issue.py @@ -521,18 +521,6 @@ def get_project_issue(iid: Optional[int] = None, **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/issues.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.get_project(path_with_namespace="foo/bar/baz") - welcome_issue = gitlab.get_project_issue(project=foo.id, - iid=1) - pulumi.export("welcomeIssueWebUrl", data["gitlab_project_issue"]["web_url"]) - ``` - :param int iid: The internal ID of the project's issue. :param str project: The name or ID of the project. @@ -595,18 +583,6 @@ def get_project_issue_output(iid: Optional[pulumi.Input[int]] = None, **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/issues.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.get_project(path_with_namespace="foo/bar/baz") - welcome_issue = gitlab.get_project_issue(project=foo.id, - iid=1) - pulumi.export("welcomeIssueWebUrl", data["gitlab_project_issue"]["web_url"]) - ``` - :param int iid: The internal ID of the project's issue. :param str project: The name or ID of the project. diff --git a/sdk/python/pulumi_gitlab/get_project_issues.py b/sdk/python/pulumi_gitlab/get_project_issues.py index 22b15596..299ab956 100644 --- a/sdk/python/pulumi_gitlab/get_project_issues.py +++ b/sdk/python/pulumi_gitlab/get_project_issues.py @@ -401,17 +401,6 @@ def get_project_issues(assignee_id: Optional[int] = None, **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/issues.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.get_project(id="foo/bar/baz") - all_with_foo = gitlab.get_project_issues(project=foo.id, - search="foo") - ``` - :param int assignee_id: Return issues assigned to the given user id. Mutually exclusive with assignee_username. None returns unassigned issues. Any returns issues with an assignee. :param str assignee_username: Return issues assigned to the given username. Similar to assignee*id and mutually exclusive with assignee*id. In GitLab CE, the assignee_username array should only contain a single value. Otherwise, an invalid parameter error is returned. @@ -527,17 +516,6 @@ def get_project_issues_output(assignee_id: Optional[pulumi.Input[Optional[int]]] **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/issues.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.get_project(id="foo/bar/baz") - all_with_foo = gitlab.get_project_issues(project=foo.id, - search="foo") - ``` - :param int assignee_id: Return issues assigned to the given user id. Mutually exclusive with assignee_username. None returns unassigned issues. Any returns issues with an assignee. :param str assignee_username: Return issues assigned to the given username. Similar to assignee*id and mutually exclusive with assignee*id. In GitLab CE, the assignee_username array should only contain a single value. Otherwise, an invalid parameter error is returned. diff --git a/sdk/python/pulumi_gitlab/get_project_membership.py b/sdk/python/pulumi_gitlab/get_project_membership.py index 7cf0f194..99a83068 100644 --- a/sdk/python/pulumi_gitlab/get_project_membership.py +++ b/sdk/python/pulumi_gitlab/get_project_membership.py @@ -117,16 +117,6 @@ def get_project_membership(full_path: Optional[str] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/members.html#list-all-members-of-a-group-or-project) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_project_membership(inherited=True, - project_id=123) - ``` - :param str full_path: The full path of the project. :param bool inherited: Return all project members including members through ancestor groups @@ -163,16 +153,6 @@ def get_project_membership_output(full_path: Optional[pulumi.Input[Optional[str] **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/members.html#list-all-members-of-a-group-or-project) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_project_membership(inherited=True, - project_id=123) - ``` - :param str full_path: The full path of the project. :param bool inherited: Return all project members including members through ancestor groups diff --git a/sdk/python/pulumi_gitlab/get_project_milestone.py b/sdk/python/pulumi_gitlab/get_project_milestone.py index dec13e3a..3c7dc009 100644 --- a/sdk/python/pulumi_gitlab/get_project_milestone.py +++ b/sdk/python/pulumi_gitlab/get_project_milestone.py @@ -208,16 +208,6 @@ def get_project_milestone(milestone_id: Optional[int] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/milestones.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_project_milestone(milestone_id=10, - project="foo/bar") - ``` - :param int milestone_id: The instance-wide ID of the project’s milestone. :param str project: The ID or URL-encoded path of the project owned by the authenticated user. @@ -254,16 +244,6 @@ def get_project_milestone_output(milestone_id: Optional[pulumi.Input[int]] = Non **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/milestones.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_project_milestone(milestone_id=10, - project="foo/bar") - ``` - :param int milestone_id: The instance-wide ID of the project’s milestone. :param str project: The ID or URL-encoded path of the project owned by the authenticated user. diff --git a/sdk/python/pulumi_gitlab/get_project_milestones.py b/sdk/python/pulumi_gitlab/get_project_milestones.py index d8fc92de..87333ed5 100644 --- a/sdk/python/pulumi_gitlab/get_project_milestones.py +++ b/sdk/python/pulumi_gitlab/get_project_milestones.py @@ -141,15 +141,6 @@ def get_project_milestones(iids: Optional[Sequence[int]] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/milestones.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_project_milestones(project="foo/bar") - ``` - :param Sequence[int] iids: Return only the milestones having the given `iid` (Note: ignored if `include_parent_milestones` is set as `true`). :param bool include_parent_milestones: Include group milestones from parent group and its ancestors. Introduced in GitLab 13.4. @@ -189,15 +180,6 @@ def get_project_milestones_output(iids: Optional[pulumi.Input[Optional[Sequence[ **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/milestones.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_project_milestones(project="foo/bar") - ``` - :param Sequence[int] iids: Return only the milestones having the given `iid` (Note: ignored if `include_parent_milestones` is set as `true`). :param bool include_parent_milestones: Include group milestones from parent group and its ancestors. Introduced in GitLab 13.4. diff --git a/sdk/python/pulumi_gitlab/get_project_protected_branch.py b/sdk/python/pulumi_gitlab/get_project_protected_branch.py index bcf378aa..4909e2a7 100644 --- a/sdk/python/pulumi_gitlab/get_project_protected_branch.py +++ b/sdk/python/pulumi_gitlab/get_project_protected_branch.py @@ -125,16 +125,6 @@ def get_project_protected_branch(name: Optional[str] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/protected_branches.html#get-a-single-protected-branch-or-wildcard-protected-branch) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_project_protected_branch(name="main", - project_id="foo/bar/baz") - ``` - :param str name: The name of the protected branch. :param str project_id: The integer or path with namespace that uniquely identifies the project. @@ -164,16 +154,6 @@ def get_project_protected_branch_output(name: Optional[pulumi.Input[str]] = None **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/protected_branches.html#get-a-single-protected-branch-or-wildcard-protected-branch) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_project_protected_branch(name="main", - project_id="foo/bar/baz") - ``` - :param str name: The name of the protected branch. :param str project_id: The integer or path with namespace that uniquely identifies the project. diff --git a/sdk/python/pulumi_gitlab/get_project_protected_branches.py b/sdk/python/pulumi_gitlab/get_project_protected_branches.py index 56704a6e..43edbc10 100644 --- a/sdk/python/pulumi_gitlab/get_project_protected_branches.py +++ b/sdk/python/pulumi_gitlab/get_project_protected_branches.py @@ -76,15 +76,6 @@ def get_project_protected_branches(project_id: Optional[str] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/protected_branches.html#list-protected-branches) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_project_protected_branches(project_id="foo/bar/baz") - ``` - :param str project_id: The integer or path with namespace that uniquely identifies the project. """ @@ -107,15 +98,6 @@ def get_project_protected_branches_output(project_id: Optional[pulumi.Input[str] **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/protected_branches.html#list-protected-branches) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_project_protected_branches(project_id="foo/bar/baz") - ``` - :param str project_id: The integer or path with namespace that uniquely identifies the project. """ diff --git a/sdk/python/pulumi_gitlab/get_project_tag.py b/sdk/python/pulumi_gitlab/get_project_tag.py index 66443599..f285b8f9 100644 --- a/sdk/python/pulumi_gitlab/get_project_tag.py +++ b/sdk/python/pulumi_gitlab/get_project_tag.py @@ -137,16 +137,6 @@ def get_project_tag(name: Optional[str] = None, **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/tags.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.get_project_tag(name="example", - project="foo/bar") - ``` - :param str name: The name of a tag. :param str project: The ID or URL-encoded path of the project owned by the authenticated user. @@ -177,16 +167,6 @@ def get_project_tag_output(name: Optional[pulumi.Input[str]] = None, **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/tags.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.get_project_tag(name="example", - project="foo/bar") - ``` - :param str name: The name of a tag. :param str project: The ID or URL-encoded path of the project owned by the authenticated user. diff --git a/sdk/python/pulumi_gitlab/get_project_tags.py b/sdk/python/pulumi_gitlab/get_project_tags.py index 21f73b7c..67746ea5 100644 --- a/sdk/python/pulumi_gitlab/get_project_tags.py +++ b/sdk/python/pulumi_gitlab/get_project_tags.py @@ -115,15 +115,6 @@ def get_project_tags(order_by: Optional[str] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/tags.html#list-project-repository-tags) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_project_tags(project="foo/bar") - ``` - :param str order_by: Return tags ordered by `name` or `updated` fields. Default is `updated`. :param str project: The ID or URL-encoded path of the project owned by the authenticated user. @@ -158,15 +149,6 @@ def get_project_tags_output(order_by: Optional[pulumi.Input[Optional[str]]] = No **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/tags.html#list-project-repository-tags) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_project_tags(project="foo/bar") - ``` - :param str order_by: Return tags ordered by `name` or `updated` fields. Default is `updated`. :param str project: The ID or URL-encoded path of the project owned by the authenticated user. diff --git a/sdk/python/pulumi_gitlab/get_project_variable.py b/sdk/python/pulumi_gitlab/get_project_variable.py index 09fa3695..e5a0fab6 100644 --- a/sdk/python/pulumi_gitlab/get_project_variable.py +++ b/sdk/python/pulumi_gitlab/get_project_variable.py @@ -149,19 +149,6 @@ def get_project_variable(environment_scope: Optional[str] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/project_level_variables.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.get_project_variable(key="foo", - project="my/example/project") - bar = gitlab.get_project_variable(environment_scope="staging/*", - key="bar", - project="my/example/project") - ``` - :param str environment_scope: The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. :param str key: The name of the variable. @@ -196,19 +183,6 @@ def get_project_variable_output(environment_scope: Optional[pulumi.Input[Optiona **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/project_level_variables.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.get_project_variable(key="foo", - project="my/example/project") - bar = gitlab.get_project_variable(environment_scope="staging/*", - key="bar", - project="my/example/project") - ``` - :param str environment_scope: The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans. :param str key: The name of the variable. diff --git a/sdk/python/pulumi_gitlab/get_project_variables.py b/sdk/python/pulumi_gitlab/get_project_variables.py index 79c6c33e..e10ce9d3 100644 --- a/sdk/python/pulumi_gitlab/get_project_variables.py +++ b/sdk/python/pulumi_gitlab/get_project_variables.py @@ -88,17 +88,6 @@ def get_project_variables(environment_scope: Optional[str] = None, The `get_project_variables` data source allows to retrieve all project-level CI/CD variables. **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/project_level_variables.html) - - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - vars = gitlab.get_project_variables(project="my/example/project") - staging_vars = gitlab.get_project_variables(environment_scope="staging/*", - project="my/example/project") - ``` """ __args__ = dict() __args__['environmentScope'] = environment_scope @@ -121,16 +110,5 @@ def get_project_variables_output(environment_scope: Optional[pulumi.Input[Option The `get_project_variables` data source allows to retrieve all project-level CI/CD variables. **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/project_level_variables.html) - - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - vars = gitlab.get_project_variables(project="my/example/project") - staging_vars = gitlab.get_project_variables(environment_scope="staging/*", - project="my/example/project") - ``` """ ... diff --git a/sdk/python/pulumi_gitlab/get_projects.py b/sdk/python/pulumi_gitlab/get_projects.py index df14d0b1..42868fcc 100644 --- a/sdk/python/pulumi_gitlab/get_projects.py +++ b/sdk/python/pulumi_gitlab/get_projects.py @@ -353,21 +353,6 @@ def get_projects(archived: Optional[bool] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#list-all-projects) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - mygroup = gitlab.get_group(full_path="mygroup") - group_projects = gitlab.get_projects(group_id=mygroup.id, - order_by="name", - include_subgroups=True, - with_shared=False) - projects = gitlab.get_projects(search="postgresql", - visibility="private") - ``` - :param bool include_subgroups: Include projects in subgroups of this group. Default is `false`. Needs `group_id`. :param int max_queryable_pages: The maximum number of project results pages that may be queried. Prevents overloading your Gitlab instance in case of a misconfiguration. @@ -474,21 +459,6 @@ def get_projects_output(archived: Optional[pulumi.Input[Optional[bool]]] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#list-all-projects) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - mygroup = gitlab.get_group(full_path="mygroup") - group_projects = gitlab.get_projects(group_id=mygroup.id, - order_by="name", - include_subgroups=True, - with_shared=False) - projects = gitlab.get_projects(search="postgresql", - visibility="private") - ``` - :param bool include_subgroups: Include projects in subgroups of this group. Default is `false`. Needs `group_id`. :param int max_queryable_pages: The maximum number of project results pages that may be queried. Prevents overloading your Gitlab instance in case of a misconfiguration. diff --git a/sdk/python/pulumi_gitlab/get_release_link.py b/sdk/python/pulumi_gitlab/get_release_link.py index 78c0433b..634efc5d 100644 --- a/sdk/python/pulumi_gitlab/get_release_link.py +++ b/sdk/python/pulumi_gitlab/get_release_link.py @@ -161,17 +161,6 @@ def get_release_link(link_id: Optional[int] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/releases/links.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_release_link(link_id=11, - project="foo/bar", - tag_name="v1.0.1") - ``` - :param int link_id: The ID of the link. :param str project: The ID or [URL-encoded path of the project](https://docs.gitlab.com/ee/api/index.html#namespaced-path-encoding). @@ -207,17 +196,6 @@ def get_release_link_output(link_id: Optional[pulumi.Input[int]] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/releases/links.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_release_link(link_id=11, - project="foo/bar", - tag_name="v1.0.1") - ``` - :param int link_id: The ID of the link. :param str project: The ID or [URL-encoded path of the project](https://docs.gitlab.com/ee/api/index.html#namespaced-path-encoding). diff --git a/sdk/python/pulumi_gitlab/get_release_links.py b/sdk/python/pulumi_gitlab/get_release_links.py index bd5f071f..0bb93a1e 100644 --- a/sdk/python/pulumi_gitlab/get_release_links.py +++ b/sdk/python/pulumi_gitlab/get_release_links.py @@ -88,16 +88,6 @@ def get_release_links(project: Optional[str] = None, The `get_release_links` data source allows get details of release links. **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/releases/links.html) - - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_release_links(project="foo/bar", - tag_name="v1.0.1") - ``` """ __args__ = dict() __args__['project'] = project @@ -120,15 +110,5 @@ def get_release_links_output(project: Optional[pulumi.Input[str]] = None, The `get_release_links` data source allows get details of release links. **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/releases/links.html) - - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_release_links(project="foo/bar", - tag_name="v1.0.1") - ``` """ ... diff --git a/sdk/python/pulumi_gitlab/get_repository_file.py b/sdk/python/pulumi_gitlab/get_repository_file.py index ec004d87..ef718a78 100644 --- a/sdk/python/pulumi_gitlab/get_repository_file.py +++ b/sdk/python/pulumi_gitlab/get_repository_file.py @@ -197,17 +197,6 @@ def get_repository_file(file_path: Optional[str] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/repository_files.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_repository_file(file_path="README.md", - project="example", - ref="main") - ``` - :param str file_path: The full path of the file. It must be relative to the root of the project without a leading slash `/` or `./`. :param str project: The name or ID of the project. @@ -246,17 +235,6 @@ def get_repository_file_output(file_path: Optional[pulumi.Input[str]] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/repository_files.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_repository_file(file_path="README.md", - project="example", - ref="main") - ``` - :param str file_path: The full path of the file. It must be relative to the root of the project without a leading slash `/` or `./`. :param str project: The name or ID of the project. diff --git a/sdk/python/pulumi_gitlab/get_repository_tree.py b/sdk/python/pulumi_gitlab/get_repository_tree.py index 52b3744a..0f741bdb 100644 --- a/sdk/python/pulumi_gitlab/get_repository_tree.py +++ b/sdk/python/pulumi_gitlab/get_repository_tree.py @@ -115,18 +115,6 @@ def get_repository_tree(path: Optional[str] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/repositories.html#list-repository-tree) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - this = gitlab.get_repository_tree(path="ExampleSubFolder", - project="example", - recursive=True, - ref="main") - ``` - :param str project: The ID or full path of the project owned by the authenticated user. :param bool recursive: Boolean value used to get a recursive tree (false by default). @@ -160,18 +148,6 @@ def get_repository_tree_output(path: Optional[pulumi.Input[Optional[str]]] = Non **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/repositories.html#list-repository-tree) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - this = gitlab.get_repository_tree(path="ExampleSubFolder", - project="example", - recursive=True, - ref="main") - ``` - :param str project: The ID or full path of the project owned by the authenticated user. :param bool recursive: Boolean value used to get a recursive tree (false by default). diff --git a/sdk/python/pulumi_gitlab/get_users.py b/sdk/python/pulumi_gitlab/get_users.py index ee88d142..02ecf98f 100644 --- a/sdk/python/pulumi_gitlab/get_users.py +++ b/sdk/python/pulumi_gitlab/get_users.py @@ -184,18 +184,6 @@ def get_users(active: Optional[bool] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ce/api/users.html#list-users) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_users(created_before="2019-01-01", - order_by="name", - sort="desc") - example_two = gitlab.get_users(search="username") - ``` - :param bool active: Filter users that are active. :param bool blocked: Filter users that are blocked. @@ -253,18 +241,6 @@ def get_users_output(active: Optional[pulumi.Input[Optional[bool]]] = None, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ce/api/users.html#list-users) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.get_users(created_before="2019-01-01", - order_by="name", - sort="desc") - example_two = gitlab.get_users(search="username") - ``` - :param bool active: Filter users that are active. :param bool blocked: Filter users that are blocked. diff --git a/sdk/python/pulumi_gitlab/group.py b/sdk/python/pulumi_gitlab/group.py index 6cd2ec27..5c42726e 100644 --- a/sdk/python/pulumi_gitlab/group.py +++ b/sdk/python/pulumi_gitlab/group.py @@ -95,7 +95,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - path: pulumi.Input[str], + path: Optional[pulumi.Input[str]] = None, auto_devops_enabled: Optional[pulumi.Input[bool]] = None, avatar: Optional[pulumi.Input[str]] = None, avatar_hash: Optional[pulumi.Input[str]] = None, @@ -119,7 +119,51 @@ def _configure( two_factor_grace_period: Optional[pulumi.Input[int]] = None, visibility_level: Optional[pulumi.Input[str]] = None, wiki_access_level: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if path is None: + raise TypeError("Missing 'path' argument") + if auto_devops_enabled is None and 'autoDevopsEnabled' in kwargs: + auto_devops_enabled = kwargs['autoDevopsEnabled'] + if avatar_hash is None and 'avatarHash' in kwargs: + avatar_hash = kwargs['avatarHash'] + if default_branch_protection is None and 'defaultBranchProtection' in kwargs: + default_branch_protection = kwargs['defaultBranchProtection'] + if emails_disabled is None and 'emailsDisabled' in kwargs: + emails_disabled = kwargs['emailsDisabled'] + if extra_shared_runners_minutes_limit is None and 'extraSharedRunnersMinutesLimit' in kwargs: + extra_shared_runners_minutes_limit = kwargs['extraSharedRunnersMinutesLimit'] + if ip_restriction_ranges is None and 'ipRestrictionRanges' in kwargs: + ip_restriction_ranges = kwargs['ipRestrictionRanges'] + if lfs_enabled is None and 'lfsEnabled' in kwargs: + lfs_enabled = kwargs['lfsEnabled'] + if membership_lock is None and 'membershipLock' in kwargs: + membership_lock = kwargs['membershipLock'] + if mentions_disabled is None and 'mentionsDisabled' in kwargs: + mentions_disabled = kwargs['mentionsDisabled'] + if parent_id is None and 'parentId' in kwargs: + parent_id = kwargs['parentId'] + if prevent_forking_outside_group is None and 'preventForkingOutsideGroup' in kwargs: + prevent_forking_outside_group = kwargs['preventForkingOutsideGroup'] + if project_creation_level is None and 'projectCreationLevel' in kwargs: + project_creation_level = kwargs['projectCreationLevel'] + if request_access_enabled is None and 'requestAccessEnabled' in kwargs: + request_access_enabled = kwargs['requestAccessEnabled'] + if require_two_factor_authentication is None and 'requireTwoFactorAuthentication' in kwargs: + require_two_factor_authentication = kwargs['requireTwoFactorAuthentication'] + if share_with_group_lock is None and 'shareWithGroupLock' in kwargs: + share_with_group_lock = kwargs['shareWithGroupLock'] + if shared_runners_minutes_limit is None and 'sharedRunnersMinutesLimit' in kwargs: + shared_runners_minutes_limit = kwargs['sharedRunnersMinutesLimit'] + if subgroup_creation_level is None and 'subgroupCreationLevel' in kwargs: + subgroup_creation_level = kwargs['subgroupCreationLevel'] + if two_factor_grace_period is None and 'twoFactorGracePeriod' in kwargs: + two_factor_grace_period = kwargs['twoFactorGracePeriod'] + if visibility_level is None and 'visibilityLevel' in kwargs: + visibility_level = kwargs['visibilityLevel'] + if wiki_access_level is None and 'wikiAccessLevel' in kwargs: + wiki_access_level = kwargs['wikiAccessLevel'] + _setter("path", path) if auto_devops_enabled is not None: _setter("auto_devops_enabled", auto_devops_enabled) @@ -585,7 +629,59 @@ def _configure( visibility_level: Optional[pulumi.Input[str]] = None, web_url: Optional[pulumi.Input[str]] = None, wiki_access_level: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if auto_devops_enabled is None and 'autoDevopsEnabled' in kwargs: + auto_devops_enabled = kwargs['autoDevopsEnabled'] + if avatar_hash is None and 'avatarHash' in kwargs: + avatar_hash = kwargs['avatarHash'] + if avatar_url is None and 'avatarUrl' in kwargs: + avatar_url = kwargs['avatarUrl'] + if default_branch_protection is None and 'defaultBranchProtection' in kwargs: + default_branch_protection = kwargs['defaultBranchProtection'] + if emails_disabled is None and 'emailsDisabled' in kwargs: + emails_disabled = kwargs['emailsDisabled'] + if extra_shared_runners_minutes_limit is None and 'extraSharedRunnersMinutesLimit' in kwargs: + extra_shared_runners_minutes_limit = kwargs['extraSharedRunnersMinutesLimit'] + if full_name is None and 'fullName' in kwargs: + full_name = kwargs['fullName'] + if full_path is None and 'fullPath' in kwargs: + full_path = kwargs['fullPath'] + if ip_restriction_ranges is None and 'ipRestrictionRanges' in kwargs: + ip_restriction_ranges = kwargs['ipRestrictionRanges'] + if lfs_enabled is None and 'lfsEnabled' in kwargs: + lfs_enabled = kwargs['lfsEnabled'] + if membership_lock is None and 'membershipLock' in kwargs: + membership_lock = kwargs['membershipLock'] + if mentions_disabled is None and 'mentionsDisabled' in kwargs: + mentions_disabled = kwargs['mentionsDisabled'] + if parent_id is None and 'parentId' in kwargs: + parent_id = kwargs['parentId'] + if prevent_forking_outside_group is None and 'preventForkingOutsideGroup' in kwargs: + prevent_forking_outside_group = kwargs['preventForkingOutsideGroup'] + if project_creation_level is None and 'projectCreationLevel' in kwargs: + project_creation_level = kwargs['projectCreationLevel'] + if request_access_enabled is None and 'requestAccessEnabled' in kwargs: + request_access_enabled = kwargs['requestAccessEnabled'] + if require_two_factor_authentication is None and 'requireTwoFactorAuthentication' in kwargs: + require_two_factor_authentication = kwargs['requireTwoFactorAuthentication'] + if runners_token is None and 'runnersToken' in kwargs: + runners_token = kwargs['runnersToken'] + if share_with_group_lock is None and 'shareWithGroupLock' in kwargs: + share_with_group_lock = kwargs['shareWithGroupLock'] + if shared_runners_minutes_limit is None and 'sharedRunnersMinutesLimit' in kwargs: + shared_runners_minutes_limit = kwargs['sharedRunnersMinutesLimit'] + if subgroup_creation_level is None and 'subgroupCreationLevel' in kwargs: + subgroup_creation_level = kwargs['subgroupCreationLevel'] + if two_factor_grace_period is None and 'twoFactorGracePeriod' in kwargs: + two_factor_grace_period = kwargs['twoFactorGracePeriod'] + if visibility_level is None and 'visibilityLevel' in kwargs: + visibility_level = kwargs['visibilityLevel'] + if web_url is None and 'webUrl' in kwargs: + web_url = kwargs['webUrl'] + if wiki_access_level is None and 'wikiAccessLevel' in kwargs: + wiki_access_level = kwargs['wikiAccessLevel'] + if auto_devops_enabled is not None: _setter("auto_devops_enabled", auto_devops_enabled) if avatar is not None: @@ -1031,21 +1127,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example_group = gitlab.Group("exampleGroup", - path="example", - description="An example group") - # Create a project in the example group - example_project = gitlab.Project("exampleProject", - description="An example project", - namespace_id=example_group.id) - ``` - ## Import ```sh @@ -1098,21 +1179,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example_group = gitlab.Group("exampleGroup", - path="example", - description="An example group") - # Create a project in the example group - example_project = gitlab.Project("exampleProject", - description="An example project", - namespace_id=example_group.id) - ``` - ## Import ```sh diff --git a/sdk/python/pulumi_gitlab/group_access_token.py b/sdk/python/pulumi_gitlab/group_access_token.py index 8ea289e9..4b392997 100644 --- a/sdk/python/pulumi_gitlab/group_access_token.py +++ b/sdk/python/pulumi_gitlab/group_access_token.py @@ -38,12 +38,24 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - expires_at: pulumi.Input[str], - group: pulumi.Input[str], - scopes: pulumi.Input[Sequence[pulumi.Input[str]]], + expires_at: Optional[pulumi.Input[str]] = None, + group: Optional[pulumi.Input[str]] = None, + scopes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, access_level: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if expires_at is None and 'expiresAt' in kwargs: + expires_at = kwargs['expiresAt'] + if expires_at is None: + raise TypeError("Missing 'expires_at' argument") + if group is None: + raise TypeError("Missing 'group' argument") + if scopes is None: + raise TypeError("Missing 'scopes' argument") + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + _setter("expires_at", expires_at) _setter("group", group) _setter("scopes", scopes) @@ -165,7 +177,17 @@ def _configure( scopes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, token: Optional[pulumi.Input[str]] = None, user_id: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if expires_at is None and 'expiresAt' in kwargs: + expires_at = kwargs['expiresAt'] + if user_id is None and 'userId' in kwargs: + user_id = kwargs['userId'] + if access_level is not None: _setter("access_level", access_level) if active is not None: @@ -326,23 +348,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API](https://docs.gitlab.com/ee/api/group_access_tokens.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example_group_access_token = gitlab.GroupAccessToken("exampleGroupAccessToken", - group="25", - expires_at="2020-03-14", - access_level="developer", - scopes=["api"]) - example_group_variable = gitlab.GroupVariable("exampleGroupVariable", - group="25", - key="gat", - value=example_group_access_token.token) - ``` - ## Import A GitLab Group Access Token can be imported using a key composed of `:`, e.g. @@ -374,23 +379,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API](https://docs.gitlab.com/ee/api/group_access_tokens.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example_group_access_token = gitlab.GroupAccessToken("exampleGroupAccessToken", - group="25", - expires_at="2020-03-14", - access_level="developer", - scopes=["api"]) - example_group_variable = gitlab.GroupVariable("exampleGroupVariable", - group="25", - key="gat", - value=example_group_access_token.token) - ``` - ## Import A GitLab Group Access Token can be imported using a key composed of `:`, e.g. diff --git a/sdk/python/pulumi_gitlab/group_badge.py b/sdk/python/pulumi_gitlab/group_badge.py index d98fca79..50b7f4a0 100644 --- a/sdk/python/pulumi_gitlab/group_badge.py +++ b/sdk/python/pulumi_gitlab/group_badge.py @@ -35,11 +35,23 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - group: pulumi.Input[str], - image_url: pulumi.Input[str], - link_url: pulumi.Input[str], + group: Optional[pulumi.Input[str]] = None, + image_url: Optional[pulumi.Input[str]] = None, + link_url: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if group is None: + raise TypeError("Missing 'group' argument") + if image_url is None and 'imageUrl' in kwargs: + image_url = kwargs['imageUrl'] + if image_url is None: + raise TypeError("Missing 'image_url' argument") + if link_url is None and 'linkUrl' in kwargs: + link_url = kwargs['linkUrl'] + if link_url is None: + raise TypeError("Missing 'link_url' argument") + _setter("group", group) _setter("image_url", image_url) _setter("link_url", link_url) @@ -131,7 +143,17 @@ def _configure( name: Optional[pulumi.Input[str]] = None, rendered_image_url: Optional[pulumi.Input[str]] = None, rendered_link_url: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if image_url is None and 'imageUrl' in kwargs: + image_url = kwargs['imageUrl'] + if link_url is None and 'linkUrl' in kwargs: + link_url = kwargs['linkUrl'] + if rendered_image_url is None and 'renderedImageUrl' in kwargs: + rendered_image_url = kwargs['renderedImageUrl'] + if rendered_link_url is None and 'renderedLinkUrl' in kwargs: + rendered_link_url = kwargs['renderedLinkUrl'] + if group is not None: _setter("group", group) if image_url is not None: @@ -233,34 +255,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/user/project/badges.html#group-badges) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.Group("foo") - example = gitlab.GroupBadge("example", - group=foo.id, - link_url="https://example.com/badge-123", - image_url="https://example.com/badge-123.svg") - # Pipeline status badges with placeholders will be enabled for each project - gitlab_pipeline = gitlab.GroupBadge("gitlabPipeline", - group=foo.id, - link_url="https://gitlab.example.com/%{project_path}/-/pipelines?ref=%{default_branch}", - image_url="https://gitlab.example.com/%{project_path}/badges/%{default_branch}/pipeline.svg") - # Test coverage report badges with placeholders will be enabled for each project - gitlab_coverage = gitlab.GroupBadge("gitlabCoverage", - group=foo.id, - link_url="https://gitlab.example.com/%{project_path}/-/jobs", - image_url="https://gitlab.example.com/%{project_path}/badges/%{default_branch}/coverage.svg") - # Latest release badges with placeholders will be enabled for each project - gitlab_release = gitlab.GroupBadge("gitlabRelease", - group=foo.id, - link_url="https://gitlab.example.com/%{project_path}/-/releases", - image_url="https://gitlab.example.com/%{project_path}/-/badges/release.svg") - ``` - ## Import GitLab group badges can be imported using an id made up of `{group_id}:{badge_id}`, e.g. @@ -287,34 +281,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/user/project/badges.html#group-badges) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.Group("foo") - example = gitlab.GroupBadge("example", - group=foo.id, - link_url="https://example.com/badge-123", - image_url="https://example.com/badge-123.svg") - # Pipeline status badges with placeholders will be enabled for each project - gitlab_pipeline = gitlab.GroupBadge("gitlabPipeline", - group=foo.id, - link_url="https://gitlab.example.com/%{project_path}/-/pipelines?ref=%{default_branch}", - image_url="https://gitlab.example.com/%{project_path}/badges/%{default_branch}/pipeline.svg") - # Test coverage report badges with placeholders will be enabled for each project - gitlab_coverage = gitlab.GroupBadge("gitlabCoverage", - group=foo.id, - link_url="https://gitlab.example.com/%{project_path}/-/jobs", - image_url="https://gitlab.example.com/%{project_path}/badges/%{default_branch}/coverage.svg") - # Latest release badges with placeholders will be enabled for each project - gitlab_release = gitlab.GroupBadge("gitlabRelease", - group=foo.id, - link_url="https://gitlab.example.com/%{project_path}/-/releases", - image_url="https://gitlab.example.com/%{project_path}/-/badges/release.svg") - ``` - ## Import GitLab group badges can be imported using an id made up of `{group_id}:{badge_id}`, e.g. diff --git a/sdk/python/pulumi_gitlab/group_cluster.py b/sdk/python/pulumi_gitlab/group_cluster.py index fcef0fc4..230745ba 100644 --- a/sdk/python/pulumi_gitlab/group_cluster.py +++ b/sdk/python/pulumi_gitlab/group_cluster.py @@ -56,9 +56,9 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - group: pulumi.Input[str], - kubernetes_api_url: pulumi.Input[str], - kubernetes_token: pulumi.Input[str], + group: Optional[pulumi.Input[str]] = None, + kubernetes_api_url: Optional[pulumi.Input[str]] = None, + kubernetes_token: Optional[pulumi.Input[str]] = None, domain: Optional[pulumi.Input[str]] = None, enabled: Optional[pulumi.Input[bool]] = None, environment_scope: Optional[pulumi.Input[str]] = None, @@ -67,7 +67,27 @@ def _configure( managed: Optional[pulumi.Input[bool]] = None, management_project_id: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if group is None: + raise TypeError("Missing 'group' argument") + if kubernetes_api_url is None and 'kubernetesApiUrl' in kwargs: + kubernetes_api_url = kwargs['kubernetesApiUrl'] + if kubernetes_api_url is None: + raise TypeError("Missing 'kubernetes_api_url' argument") + if kubernetes_token is None and 'kubernetesToken' in kwargs: + kubernetes_token = kwargs['kubernetesToken'] + if kubernetes_token is None: + raise TypeError("Missing 'kubernetes_token' argument") + if environment_scope is None and 'environmentScope' in kwargs: + environment_scope = kwargs['environmentScope'] + if kubernetes_authorization_type is None and 'kubernetesAuthorizationType' in kwargs: + kubernetes_authorization_type = kwargs['kubernetesAuthorizationType'] + if kubernetes_ca_cert is None and 'kubernetesCaCert' in kwargs: + kubernetes_ca_cert = kwargs['kubernetesCaCert'] + if management_project_id is None and 'managementProjectId' in kwargs: + management_project_id = kwargs['managementProjectId'] + _setter("group", group) _setter("kubernetes_api_url", kubernetes_api_url) _setter("kubernetes_token", kubernetes_token) @@ -293,7 +313,29 @@ def _configure( name: Optional[pulumi.Input[str]] = None, platform_type: Optional[pulumi.Input[str]] = None, provider_type: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if cluster_type is None and 'clusterType' in kwargs: + cluster_type = kwargs['clusterType'] + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if environment_scope is None and 'environmentScope' in kwargs: + environment_scope = kwargs['environmentScope'] + if kubernetes_api_url is None and 'kubernetesApiUrl' in kwargs: + kubernetes_api_url = kwargs['kubernetesApiUrl'] + if kubernetes_authorization_type is None and 'kubernetesAuthorizationType' in kwargs: + kubernetes_authorization_type = kwargs['kubernetesAuthorizationType'] + if kubernetes_ca_cert is None and 'kubernetesCaCert' in kwargs: + kubernetes_ca_cert = kwargs['kubernetesCaCert'] + if kubernetes_token is None and 'kubernetesToken' in kwargs: + kubernetes_token = kwargs['kubernetesToken'] + if management_project_id is None and 'managementProjectId' in kwargs: + management_project_id = kwargs['managementProjectId'] + if platform_type is None and 'platformType' in kwargs: + platform_type = kwargs['platformType'] + if provider_type is None and 'providerType' in kwargs: + provider_type = kwargs['providerType'] + if cluster_type is not None: _setter("cluster_type", cluster_type) if created_at is not None: @@ -530,25 +572,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_clusters.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.Group("foo", path="foo-path") - bar = gitlab.GroupCluster("bar", - group=foo.id, - domain="example.com", - enabled=True, - kubernetes_api_url="https://124.124.124", - kubernetes_token="some-token", - kubernetes_ca_cert="some-cert", - kubernetes_authorization_type="rbac", - environment_scope="*", - management_project_id="123456") - ``` - ## Import GitLab group clusters can be imported using an id made up of `groupid:clusterid`, e.g. @@ -584,25 +607,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_clusters.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.Group("foo", path="foo-path") - bar = gitlab.GroupCluster("bar", - group=foo.id, - domain="example.com", - enabled=True, - kubernetes_api_url="https://124.124.124", - kubernetes_token="some-token", - kubernetes_ca_cert="some-cert", - kubernetes_authorization_type="rbac", - environment_scope="*", - management_project_id="123456") - ``` - ## Import GitLab group clusters can be imported using an id made up of `groupid:clusterid`, e.g. diff --git a/sdk/python/pulumi_gitlab/group_custom_attribute.py b/sdk/python/pulumi_gitlab/group_custom_attribute.py index e6fcdbba..d75a330e 100644 --- a/sdk/python/pulumi_gitlab/group_custom_attribute.py +++ b/sdk/python/pulumi_gitlab/group_custom_attribute.py @@ -32,10 +32,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - group: pulumi.Input[int], - key: pulumi.Input[str], - value: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + group: Optional[pulumi.Input[int]] = None, + key: Optional[pulumi.Input[str]] = None, + value: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if group is None: + raise TypeError("Missing 'group' argument") + if key is None: + raise TypeError("Missing 'key' argument") + if value is None: + raise TypeError("Missing 'value' argument") + _setter("group", group) _setter("key", key) _setter("value", value) @@ -101,7 +109,9 @@ def _configure( group: Optional[pulumi.Input[int]] = None, key: Optional[pulumi.Input[str]] = None, value: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if group is not None: _setter("group", group) if key is not None: @@ -160,18 +170,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/custom_attributes.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - attr = gitlab.GroupCustomAttribute("attr", - group=42, - key="location", - value="Greenland") - ``` - ## Import You can import a group custom attribute using the an id made up of `{group-id}:{key}`, e.g. @@ -197,18 +195,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/custom_attributes.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - attr = gitlab.GroupCustomAttribute("attr", - group=42, - key="location", - value="Greenland") - ``` - ## Import You can import a group custom attribute using the an id made up of `{group-id}:{key}`, e.g. diff --git a/sdk/python/pulumi_gitlab/group_epic_board.py b/sdk/python/pulumi_gitlab/group_epic_board.py index cb186818..b64dd815 100644 --- a/sdk/python/pulumi_gitlab/group_epic_board.py +++ b/sdk/python/pulumi_gitlab/group_epic_board.py @@ -34,10 +34,14 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - group: pulumi.Input[str], + group: Optional[pulumi.Input[str]] = None, lists: Optional[pulumi.Input[Sequence[pulumi.Input['GroupEpicBoardListArgs']]]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if group is None: + raise TypeError("Missing 'group' argument") + _setter("group", group) if lists is not None: _setter("lists", lists) @@ -105,7 +109,9 @@ def _configure( group: Optional[pulumi.Input[str]] = None, lists: Optional[pulumi.Input[Sequence[pulumi.Input['GroupEpicBoardListArgs']]]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if group is not None: _setter("group", group) if lists is not None: @@ -166,28 +172,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_boards.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.Group("example", - path="test_group", - description="An example group") - label1 = gitlab.GroupLabel("label1", - group=example.id, - color="#FF0000") - label3 = gitlab.GroupLabel("label3", - group=example.id, - color="#003000") - epic_board = gitlab.GroupEpicBoard("epicBoard", - group=example.path, - lists=[gitlab.GroupEpicBoardListArgs( - label_id=label1.label_id, - )]) - ``` - ## Import You can import this resource with an id made up of `{group-id}:{epic-board-id}`, e.g. @@ -215,28 +199,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_boards.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.Group("example", - path="test_group", - description="An example group") - label1 = gitlab.GroupLabel("label1", - group=example.id, - color="#FF0000") - label3 = gitlab.GroupLabel("label3", - group=example.id, - color="#003000") - epic_board = gitlab.GroupEpicBoard("epicBoard", - group=example.path, - lists=[gitlab.GroupEpicBoardListArgs( - label_id=label1.label_id, - )]) - ``` - ## Import You can import this resource with an id made up of `{group-id}:{epic-board-id}`, e.g. diff --git a/sdk/python/pulumi_gitlab/group_hook.py b/sdk/python/pulumi_gitlab/group_hook.py index 1bbd22ef..16a60314 100644 --- a/sdk/python/pulumi_gitlab/group_hook.py +++ b/sdk/python/pulumi_gitlab/group_hook.py @@ -77,8 +77,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - group: pulumi.Input[str], - url: pulumi.Input[str], + group: Optional[pulumi.Input[str]] = None, + url: Optional[pulumi.Input[str]] = None, confidential_issues_events: Optional[pulumi.Input[bool]] = None, confidential_note_events: Optional[pulumi.Input[bool]] = None, deployment_events: Optional[pulumi.Input[bool]] = None, @@ -95,7 +95,43 @@ def _configure( tag_push_events: Optional[pulumi.Input[bool]] = None, token: Optional[pulumi.Input[str]] = None, wiki_page_events: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if group is None: + raise TypeError("Missing 'group' argument") + if url is None: + raise TypeError("Missing 'url' argument") + if confidential_issues_events is None and 'confidentialIssuesEvents' in kwargs: + confidential_issues_events = kwargs['confidentialIssuesEvents'] + if confidential_note_events is None and 'confidentialNoteEvents' in kwargs: + confidential_note_events = kwargs['confidentialNoteEvents'] + if deployment_events is None and 'deploymentEvents' in kwargs: + deployment_events = kwargs['deploymentEvents'] + if enable_ssl_verification is None and 'enableSslVerification' in kwargs: + enable_ssl_verification = kwargs['enableSslVerification'] + if issues_events is None and 'issuesEvents' in kwargs: + issues_events = kwargs['issuesEvents'] + if job_events is None and 'jobEvents' in kwargs: + job_events = kwargs['jobEvents'] + if merge_requests_events is None and 'mergeRequestsEvents' in kwargs: + merge_requests_events = kwargs['mergeRequestsEvents'] + if note_events is None and 'noteEvents' in kwargs: + note_events = kwargs['noteEvents'] + if pipeline_events is None and 'pipelineEvents' in kwargs: + pipeline_events = kwargs['pipelineEvents'] + if push_events is None and 'pushEvents' in kwargs: + push_events = kwargs['pushEvents'] + if push_events_branch_filter is None and 'pushEventsBranchFilter' in kwargs: + push_events_branch_filter = kwargs['pushEventsBranchFilter'] + if releases_events is None and 'releasesEvents' in kwargs: + releases_events = kwargs['releasesEvents'] + if subgroup_events is None and 'subgroupEvents' in kwargs: + subgroup_events = kwargs['subgroupEvents'] + if tag_push_events is None and 'tagPushEvents' in kwargs: + tag_push_events = kwargs['tagPushEvents'] + if wiki_page_events is None and 'wikiPageEvents' in kwargs: + wiki_page_events = kwargs['wikiPageEvents'] + _setter("group", group) _setter("url", url) if confidential_issues_events is not None: @@ -440,7 +476,43 @@ def _configure( token: Optional[pulumi.Input[str]] = None, url: Optional[pulumi.Input[str]] = None, wiki_page_events: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if confidential_issues_events is None and 'confidentialIssuesEvents' in kwargs: + confidential_issues_events = kwargs['confidentialIssuesEvents'] + if confidential_note_events is None and 'confidentialNoteEvents' in kwargs: + confidential_note_events = kwargs['confidentialNoteEvents'] + if deployment_events is None and 'deploymentEvents' in kwargs: + deployment_events = kwargs['deploymentEvents'] + if enable_ssl_verification is None and 'enableSslVerification' in kwargs: + enable_ssl_verification = kwargs['enableSslVerification'] + if group_id is None and 'groupId' in kwargs: + group_id = kwargs['groupId'] + if hook_id is None and 'hookId' in kwargs: + hook_id = kwargs['hookId'] + if issues_events is None and 'issuesEvents' in kwargs: + issues_events = kwargs['issuesEvents'] + if job_events is None and 'jobEvents' in kwargs: + job_events = kwargs['jobEvents'] + if merge_requests_events is None and 'mergeRequestsEvents' in kwargs: + merge_requests_events = kwargs['mergeRequestsEvents'] + if note_events is None and 'noteEvents' in kwargs: + note_events = kwargs['noteEvents'] + if pipeline_events is None and 'pipelineEvents' in kwargs: + pipeline_events = kwargs['pipelineEvents'] + if push_events is None and 'pushEvents' in kwargs: + push_events = kwargs['pushEvents'] + if push_events_branch_filter is None and 'pushEventsBranchFilter' in kwargs: + push_events_branch_filter = kwargs['pushEventsBranchFilter'] + if releases_events is None and 'releasesEvents' in kwargs: + releases_events = kwargs['releasesEvents'] + if subgroup_events is None and 'subgroupEvents' in kwargs: + subgroup_events = kwargs['subgroupEvents'] + if tag_push_events is None and 'tagPushEvents' in kwargs: + tag_push_events = kwargs['tagPushEvents'] + if wiki_page_events is None and 'wikiPageEvents' in kwargs: + wiki_page_events = kwargs['wikiPageEvents'] + if confidential_issues_events is not None: _setter("confidential_issues_events", confidential_issues_events) if confidential_note_events is not None: @@ -752,38 +824,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#hooks) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.GroupHook("example", - group="example/hooked", - merge_requests_events=True, - url="https://example.com/hook/example") - # Setting all attributes - all_attributes = gitlab.GroupHook("allAttributes", - confidential_issues_events=False, - confidential_note_events=True, - deployment_events=True, - enable_ssl_verification=False, - group="1", - issues_events=False, - job_events=True, - merge_requests_events=True, - note_events=True, - pipeline_events=True, - push_events=True, - push_events_branch_filter="devel", - releases_events=True, - subgroup_events=True, - tag_push_events=True, - token="supersecret", - url="http://example.com", - wiki_page_events=True) - ``` - ## Import A GitLab Group Hook can be imported using a key composed of `:`, e.g. @@ -826,38 +866,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#hooks) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.GroupHook("example", - group="example/hooked", - merge_requests_events=True, - url="https://example.com/hook/example") - # Setting all attributes - all_attributes = gitlab.GroupHook("allAttributes", - confidential_issues_events=False, - confidential_note_events=True, - deployment_events=True, - enable_ssl_verification=False, - group="1", - issues_events=False, - job_events=True, - merge_requests_events=True, - note_events=True, - pipeline_events=True, - push_events=True, - push_events_branch_filter="devel", - releases_events=True, - subgroup_events=True, - tag_push_events=True, - token="supersecret", - url="http://example.com", - wiki_page_events=True) - ``` - ## Import A GitLab Group Hook can be imported using a key composed of `:`, e.g. diff --git a/sdk/python/pulumi_gitlab/group_issue_board.py b/sdk/python/pulumi_gitlab/group_issue_board.py index 43fedfbf..a56417f1 100644 --- a/sdk/python/pulumi_gitlab/group_issue_board.py +++ b/sdk/python/pulumi_gitlab/group_issue_board.py @@ -37,11 +37,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - group: pulumi.Input[str], + group: Optional[pulumi.Input[str]] = None, lists: Optional[pulumi.Input[Sequence[pulumi.Input['GroupIssueBoardListArgs']]]] = None, milestone_id: Optional[pulumi.Input[int]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if group is None: + raise TypeError("Missing 'group' argument") + if milestone_id is None and 'milestoneId' in kwargs: + milestone_id = kwargs['milestoneId'] + _setter("group", group) if lists is not None: _setter("lists", lists) @@ -127,7 +133,11 @@ def _configure( lists: Optional[pulumi.Input[Sequence[pulumi.Input['GroupIssueBoardListArgs']]]] = None, milestone_id: Optional[pulumi.Input[int]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if milestone_id is None and 'milestoneId' in kwargs: + milestone_id = kwargs['milestoneId'] + if group is not None: _setter("group", group) if lists is not None: diff --git a/sdk/python/pulumi_gitlab/group_label.py b/sdk/python/pulumi_gitlab/group_label.py index 78314a52..9af062ef 100644 --- a/sdk/python/pulumi_gitlab/group_label.py +++ b/sdk/python/pulumi_gitlab/group_label.py @@ -35,11 +35,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - color: pulumi.Input[str], - group: pulumi.Input[str], + color: Optional[pulumi.Input[str]] = None, + group: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if color is None: + raise TypeError("Missing 'color' argument") + if group is None: + raise TypeError("Missing 'group' argument") + _setter("color", color) _setter("group", group) if description is not None: @@ -128,7 +134,11 @@ def _configure( group: Optional[pulumi.Input[str]] = None, label_id: Optional[pulumi.Input[int]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if label_id is None and 'labelId' in kwargs: + label_id = kwargs['labelId'] + if color is not None: _setter("color", color) if description is not None: @@ -216,18 +226,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/user/project/labels.html#group-labels) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - fixme = gitlab.GroupLabel("fixme", - color="#ffcc00", - description="issue with failing tests", - group="example") - ``` - ## Import Gitlab group labels can be imported using an id made up of `{group_id}:{group_label_id}`, e.g. @@ -254,18 +252,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/user/project/labels.html#group-labels) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - fixme = gitlab.GroupLabel("fixme", - color="#ffcc00", - description="issue with failing tests", - group="example") - ``` - ## Import Gitlab group labels can be imported using an id made up of `{group_id}:{group_label_id}`, e.g. diff --git a/sdk/python/pulumi_gitlab/group_ldap_link.py b/sdk/python/pulumi_gitlab/group_ldap_link.py index 84fe0721..fa5bfecc 100644 --- a/sdk/python/pulumi_gitlab/group_ldap_link.py +++ b/sdk/python/pulumi_gitlab/group_ldap_link.py @@ -44,14 +44,26 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - group: pulumi.Input[str], - ldap_provider: pulumi.Input[str], + group: Optional[pulumi.Input[str]] = None, + ldap_provider: Optional[pulumi.Input[str]] = None, access_level: Optional[pulumi.Input[str]] = None, cn: Optional[pulumi.Input[str]] = None, filter: Optional[pulumi.Input[str]] = None, force: Optional[pulumi.Input[bool]] = None, group_access: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if group is None: + raise TypeError("Missing 'group' argument") + if ldap_provider is None and 'ldapProvider' in kwargs: + ldap_provider = kwargs['ldapProvider'] + if ldap_provider is None: + raise TypeError("Missing 'ldap_provider' argument") + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if group_access is None and 'groupAccess' in kwargs: + group_access = kwargs['groupAccess'] + _setter("group", group) _setter("ldap_provider", ldap_provider) if access_level is not None: @@ -196,7 +208,15 @@ def _configure( group: Optional[pulumi.Input[str]] = None, group_access: Optional[pulumi.Input[str]] = None, ldap_provider: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if group_access is None and 'groupAccess' in kwargs: + group_access = kwargs['groupAccess'] + if ldap_provider is None and 'ldapProvider' in kwargs: + ldap_provider = kwargs['ldapProvider'] + if access_level is not None: warnings.warn("""Use `group_access` instead of the `access_level` attribute.""", DeprecationWarning) pulumi.log.warn("""access_level is deprecated: Use `group_access` instead of the `access_level` attribute.""") diff --git a/sdk/python/pulumi_gitlab/group_membership.py b/sdk/python/pulumi_gitlab/group_membership.py index ef12b9c1..4079a33d 100644 --- a/sdk/python/pulumi_gitlab/group_membership.py +++ b/sdk/python/pulumi_gitlab/group_membership.py @@ -41,13 +41,33 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - access_level: pulumi.Input[str], - group_id: pulumi.Input[str], - user_id: pulumi.Input[int], + access_level: Optional[pulumi.Input[str]] = None, + group_id: Optional[pulumi.Input[str]] = None, + user_id: Optional[pulumi.Input[int]] = None, expires_at: Optional[pulumi.Input[str]] = None, skip_subresources_on_destroy: Optional[pulumi.Input[bool]] = None, unassign_issuables_on_destroy: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if access_level is None: + raise TypeError("Missing 'access_level' argument") + if group_id is None and 'groupId' in kwargs: + group_id = kwargs['groupId'] + if group_id is None: + raise TypeError("Missing 'group_id' argument") + if user_id is None and 'userId' in kwargs: + user_id = kwargs['userId'] + if user_id is None: + raise TypeError("Missing 'user_id' argument") + if expires_at is None and 'expiresAt' in kwargs: + expires_at = kwargs['expiresAt'] + if skip_subresources_on_destroy is None and 'skipSubresourcesOnDestroy' in kwargs: + skip_subresources_on_destroy = kwargs['skipSubresourcesOnDestroy'] + if unassign_issuables_on_destroy is None and 'unassignIssuablesOnDestroy' in kwargs: + unassign_issuables_on_destroy = kwargs['unassignIssuablesOnDestroy'] + _setter("access_level", access_level) _setter("group_id", group_id) _setter("user_id", user_id) @@ -167,7 +187,21 @@ def _configure( skip_subresources_on_destroy: Optional[pulumi.Input[bool]] = None, unassign_issuables_on_destroy: Optional[pulumi.Input[bool]] = None, user_id: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if expires_at is None and 'expiresAt' in kwargs: + expires_at = kwargs['expiresAt'] + if group_id is None and 'groupId' in kwargs: + group_id = kwargs['groupId'] + if skip_subresources_on_destroy is None and 'skipSubresourcesOnDestroy' in kwargs: + skip_subresources_on_destroy = kwargs['skipSubresourcesOnDestroy'] + if unassign_issuables_on_destroy is None and 'unassignIssuablesOnDestroy' in kwargs: + unassign_issuables_on_destroy = kwargs['unassignIssuablesOnDestroy'] + if user_id is None and 'userId' in kwargs: + user_id = kwargs['userId'] + if access_level is not None: _setter("access_level", access_level) if expires_at is not None: @@ -273,19 +307,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/members.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - test = gitlab.GroupMembership("test", - access_level="guest", - expires_at="2020-12-31", - group_id="12345", - user_id=1337) - ``` - ## Import GitLab group membership can be imported using an id made up of `group_id:user_id`, e.g. @@ -316,19 +337,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/members.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - test = gitlab.GroupMembership("test", - access_level="guest", - expires_at="2020-12-31", - group_id="12345", - user_id=1337) - ``` - ## Import GitLab group membership can be imported using an id made up of `group_id:user_id`, e.g. diff --git a/sdk/python/pulumi_gitlab/group_project_file_template.py b/sdk/python/pulumi_gitlab/group_project_file_template.py index 4896526c..e6a14cb4 100644 --- a/sdk/python/pulumi_gitlab/group_project_file_template.py +++ b/sdk/python/pulumi_gitlab/group_project_file_template.py @@ -31,9 +31,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - file_template_project_id: pulumi.Input[int], - group_id: pulumi.Input[int], - opts: Optional[pulumi.ResourceOptions]=None): + file_template_project_id: Optional[pulumi.Input[int]] = None, + group_id: Optional[pulumi.Input[int]] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if file_template_project_id is None and 'fileTemplateProjectId' in kwargs: + file_template_project_id = kwargs['fileTemplateProjectId'] + if file_template_project_id is None: + raise TypeError("Missing 'file_template_project_id' argument") + if group_id is None and 'groupId' in kwargs: + group_id = kwargs['groupId'] + if group_id is None: + raise TypeError("Missing 'group_id' argument") + _setter("file_template_project_id", file_template_project_id) _setter("group_id", group_id) @@ -86,7 +96,13 @@ def _configure( _setter: Callable[[Any, Any], None], file_template_project_id: Optional[pulumi.Input[int]] = None, group_id: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if file_template_project_id is None and 'fileTemplateProjectId' in kwargs: + file_template_project_id = kwargs['fileTemplateProjectId'] + if group_id is None and 'groupId' in kwargs: + group_id = kwargs['groupId'] + if file_template_project_id is not None: _setter("file_template_project_id", file_template_project_id) if group_id is not None: @@ -138,24 +154,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#update-group) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.Group("foo", - path="group", - description="An example group") - bar = gitlab.Project("bar", - description="contains file templates", - visibility_level="public", - namespace_id=foo.id) - template_link = gitlab.GroupProjectFileTemplate("templateLink", - group_id=foo.id, - file_template_project_id=bar.id) - ``` - :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[int] file_template_project_id: The ID of the project that will be used for file templates. This project must be the direct @@ -180,24 +178,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#update-group) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.Group("foo", - path="group", - description="An example group") - bar = gitlab.Project("bar", - description="contains file templates", - visibility_level="public", - namespace_id=foo.id) - template_link = gitlab.GroupProjectFileTemplate("templateLink", - group_id=foo.id, - file_template_project_id=bar.id) - ``` - :param str resource_name: The name of the resource. :param GroupProjectFileTemplateArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. diff --git a/sdk/python/pulumi_gitlab/group_saml_link.py b/sdk/python/pulumi_gitlab/group_saml_link.py index 30933a71..7da53ff8 100644 --- a/sdk/python/pulumi_gitlab/group_saml_link.py +++ b/sdk/python/pulumi_gitlab/group_saml_link.py @@ -32,10 +32,22 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - access_level: pulumi.Input[str], - group: pulumi.Input[str], - saml_group_name: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + access_level: Optional[pulumi.Input[str]] = None, + group: Optional[pulumi.Input[str]] = None, + saml_group_name: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if access_level is None: + raise TypeError("Missing 'access_level' argument") + if group is None: + raise TypeError("Missing 'group' argument") + if saml_group_name is None and 'samlGroupName' in kwargs: + saml_group_name = kwargs['samlGroupName'] + if saml_group_name is None: + raise TypeError("Missing 'saml_group_name' argument") + _setter("access_level", access_level) _setter("group", group) _setter("saml_group_name", saml_group_name) @@ -101,7 +113,13 @@ def _configure( access_level: Optional[pulumi.Input[str]] = None, group: Optional[pulumi.Input[str]] = None, saml_group_name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if saml_group_name is None and 'samlGroupName' in kwargs: + saml_group_name = kwargs['samlGroupName'] + if access_level is not None: _setter("access_level", access_level) if group is not None: @@ -160,18 +178,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#saml-group-links) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - test = gitlab.GroupSamlLink("test", - access_level="developer", - group="12345", - saml_group_name="samlgroupname1") - ``` - ## Import GitLab group saml links can be imported using an id made up of `group_id:saml_group_name`, e.g. @@ -197,18 +203,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#saml-group-links) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - test = gitlab.GroupSamlLink("test", - access_level="developer", - group="12345", - saml_group_name="samlgroupname1") - ``` - ## Import GitLab group saml links can be imported using an id made up of `group_id:saml_group_name`, e.g. diff --git a/sdk/python/pulumi_gitlab/group_share_group.py b/sdk/python/pulumi_gitlab/group_share_group.py index ddfcd0fe..4c6d7e9e 100644 --- a/sdk/python/pulumi_gitlab/group_share_group.py +++ b/sdk/python/pulumi_gitlab/group_share_group.py @@ -35,11 +35,27 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - group_access: pulumi.Input[str], - group_id: pulumi.Input[str], - share_group_id: pulumi.Input[int], + group_access: Optional[pulumi.Input[str]] = None, + group_id: Optional[pulumi.Input[str]] = None, + share_group_id: Optional[pulumi.Input[int]] = None, expires_at: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if group_access is None and 'groupAccess' in kwargs: + group_access = kwargs['groupAccess'] + if group_access is None: + raise TypeError("Missing 'group_access' argument") + if group_id is None and 'groupId' in kwargs: + group_id = kwargs['groupId'] + if group_id is None: + raise TypeError("Missing 'group_id' argument") + if share_group_id is None and 'shareGroupId' in kwargs: + share_group_id = kwargs['shareGroupId'] + if share_group_id is None: + raise TypeError("Missing 'share_group_id' argument") + if expires_at is None and 'expiresAt' in kwargs: + expires_at = kwargs['expiresAt'] + _setter("group_access", group_access) _setter("group_id", group_id) _setter("share_group_id", share_group_id) @@ -123,7 +139,17 @@ def _configure( group_access: Optional[pulumi.Input[str]] = None, group_id: Optional[pulumi.Input[str]] = None, share_group_id: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if expires_at is None and 'expiresAt' in kwargs: + expires_at = kwargs['expiresAt'] + if group_access is None and 'groupAccess' in kwargs: + group_access = kwargs['groupAccess'] + if group_id is None and 'groupId' in kwargs: + group_id = kwargs['groupId'] + if share_group_id is None and 'shareGroupId' in kwargs: + share_group_id = kwargs['shareGroupId'] + if expires_at is not None: _setter("expires_at", expires_at) if group_access is not None: @@ -197,19 +223,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#share-groups-with-groups) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - test = gitlab.GroupShareGroup("test", - group_id=gitlab_group["foo"]["id"], - share_group_id=gitlab_group["bar"]["id"], - group_access="guest", - expires_at="2099-01-01") - ``` - ## Import GitLab group shares can be imported using an id made up of `mainGroupId:shareGroupId`, e.g. @@ -236,19 +249,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#share-groups-with-groups) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - test = gitlab.GroupShareGroup("test", - group_id=gitlab_group["foo"]["id"], - share_group_id=gitlab_group["bar"]["id"], - group_access="guest", - expires_at="2099-01-01") - ``` - ## Import GitLab group shares can be imported using an id made up of `mainGroupId:shareGroupId`, e.g. diff --git a/sdk/python/pulumi_gitlab/group_variable.py b/sdk/python/pulumi_gitlab/group_variable.py index 27a21999..b14fa2d2 100644 --- a/sdk/python/pulumi_gitlab/group_variable.py +++ b/sdk/python/pulumi_gitlab/group_variable.py @@ -47,15 +47,27 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - group: pulumi.Input[str], - key: pulumi.Input[str], - value: pulumi.Input[str], + group: Optional[pulumi.Input[str]] = None, + key: Optional[pulumi.Input[str]] = None, + value: Optional[pulumi.Input[str]] = None, environment_scope: Optional[pulumi.Input[str]] = None, masked: Optional[pulumi.Input[bool]] = None, protected: Optional[pulumi.Input[bool]] = None, raw: Optional[pulumi.Input[bool]] = None, variable_type: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if group is None: + raise TypeError("Missing 'group' argument") + if key is None: + raise TypeError("Missing 'key' argument") + if value is None: + raise TypeError("Missing 'value' argument") + if environment_scope is None and 'environmentScope' in kwargs: + environment_scope = kwargs['environmentScope'] + if variable_type is None and 'variableType' in kwargs: + variable_type = kwargs['variableType'] + _setter("group", group) _setter("key", key) _setter("value", value) @@ -211,7 +223,13 @@ def _configure( raw: Optional[pulumi.Input[bool]] = None, value: Optional[pulumi.Input[str]] = None, variable_type: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if environment_scope is None and 'environmentScope' in kwargs: + environment_scope = kwargs['environmentScope'] + if variable_type is None and 'variableType' in kwargs: + variable_type = kwargs['variableType'] + if environment_scope is not None: _setter("environment_scope", environment_scope) if group is not None: @@ -345,21 +363,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_level_variables.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.GroupVariable("example", - environment_scope="*", - group="12345", - key="group_variable_key", - masked=False, - protected=False, - value="group_variable_value") - ``` - ## Import GitLab group variables can be imported using an id made up of `groupid:variablename:scope`, e.g. @@ -390,21 +393,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_level_variables.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.GroupVariable("example", - environment_scope="*", - group="12345", - key="group_variable_key", - masked=False, - protected=False, - value="group_variable_value") - ``` - ## Import GitLab group variables can be imported using an id made up of `groupid:variablename:scope`, e.g. diff --git a/sdk/python/pulumi_gitlab/instance_cluster.py b/sdk/python/pulumi_gitlab/instance_cluster.py index e9036dc3..779959a1 100644 --- a/sdk/python/pulumi_gitlab/instance_cluster.py +++ b/sdk/python/pulumi_gitlab/instance_cluster.py @@ -56,8 +56,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kubernetes_api_url: pulumi.Input[str], - kubernetes_token: pulumi.Input[str], + kubernetes_api_url: Optional[pulumi.Input[str]] = None, + kubernetes_token: Optional[pulumi.Input[str]] = None, domain: Optional[pulumi.Input[str]] = None, enabled: Optional[pulumi.Input[bool]] = None, environment_scope: Optional[pulumi.Input[str]] = None, @@ -67,7 +67,27 @@ def _configure( managed: Optional[pulumi.Input[bool]] = None, management_project_id: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if kubernetes_api_url is None and 'kubernetesApiUrl' in kwargs: + kubernetes_api_url = kwargs['kubernetesApiUrl'] + if kubernetes_api_url is None: + raise TypeError("Missing 'kubernetes_api_url' argument") + if kubernetes_token is None and 'kubernetesToken' in kwargs: + kubernetes_token = kwargs['kubernetesToken'] + if kubernetes_token is None: + raise TypeError("Missing 'kubernetes_token' argument") + if environment_scope is None and 'environmentScope' in kwargs: + environment_scope = kwargs['environmentScope'] + if kubernetes_authorization_type is None and 'kubernetesAuthorizationType' in kwargs: + kubernetes_authorization_type = kwargs['kubernetesAuthorizationType'] + if kubernetes_ca_cert is None and 'kubernetesCaCert' in kwargs: + kubernetes_ca_cert = kwargs['kubernetesCaCert'] + if kubernetes_namespace is None and 'kubernetesNamespace' in kwargs: + kubernetes_namespace = kwargs['kubernetesNamespace'] + if management_project_id is None and 'managementProjectId' in kwargs: + management_project_id = kwargs['managementProjectId'] + _setter("kubernetes_api_url", kubernetes_api_url) _setter("kubernetes_token", kubernetes_token) if domain is not None: @@ -294,7 +314,31 @@ def _configure( name: Optional[pulumi.Input[str]] = None, platform_type: Optional[pulumi.Input[str]] = None, provider_type: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if cluster_type is None and 'clusterType' in kwargs: + cluster_type = kwargs['clusterType'] + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if environment_scope is None and 'environmentScope' in kwargs: + environment_scope = kwargs['environmentScope'] + if kubernetes_api_url is None and 'kubernetesApiUrl' in kwargs: + kubernetes_api_url = kwargs['kubernetesApiUrl'] + if kubernetes_authorization_type is None and 'kubernetesAuthorizationType' in kwargs: + kubernetes_authorization_type = kwargs['kubernetesAuthorizationType'] + if kubernetes_ca_cert is None and 'kubernetesCaCert' in kwargs: + kubernetes_ca_cert = kwargs['kubernetesCaCert'] + if kubernetes_namespace is None and 'kubernetesNamespace' in kwargs: + kubernetes_namespace = kwargs['kubernetesNamespace'] + if kubernetes_token is None and 'kubernetesToken' in kwargs: + kubernetes_token = kwargs['kubernetesToken'] + if management_project_id is None and 'managementProjectId' in kwargs: + management_project_id = kwargs['managementProjectId'] + if platform_type is None and 'platformType' in kwargs: + platform_type = kwargs['platformType'] + if provider_type is None and 'providerType' in kwargs: + provider_type = kwargs['providerType'] + if cluster_type is not None: _setter("cluster_type", cluster_type) if created_at is not None: @@ -531,24 +575,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/instance_clusters.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - bar = gitlab.InstanceCluster("bar", - domain="example.com", - enabled=True, - environment_scope="*", - kubernetes_api_url="https://124.124.124", - kubernetes_authorization_type="rbac", - kubernetes_ca_cert="some-cert", - kubernetes_namespace="namespace", - kubernetes_token="some-token", - management_project_id="123456") - ``` - ## Import GitLab instance clusters can be imported using a `clusterid`, e.g. @@ -584,24 +610,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/instance_clusters.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - bar = gitlab.InstanceCluster("bar", - domain="example.com", - enabled=True, - environment_scope="*", - kubernetes_api_url="https://124.124.124", - kubernetes_authorization_type="rbac", - kubernetes_ca_cert="some-cert", - kubernetes_namespace="namespace", - kubernetes_token="some-token", - management_project_id="123456") - ``` - ## Import GitLab instance clusters can be imported using a `clusterid`, e.g. diff --git a/sdk/python/pulumi_gitlab/instance_variable.py b/sdk/python/pulumi_gitlab/instance_variable.py index 7c20bd4d..acef0ebe 100644 --- a/sdk/python/pulumi_gitlab/instance_variable.py +++ b/sdk/python/pulumi_gitlab/instance_variable.py @@ -41,13 +41,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - key: pulumi.Input[str], - value: pulumi.Input[str], + key: Optional[pulumi.Input[str]] = None, + value: Optional[pulumi.Input[str]] = None, masked: Optional[pulumi.Input[bool]] = None, protected: Optional[pulumi.Input[bool]] = None, raw: Optional[pulumi.Input[bool]] = None, variable_type: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if key is None: + raise TypeError("Missing 'key' argument") + if value is None: + raise TypeError("Missing 'value' argument") + if variable_type is None and 'variableType' in kwargs: + variable_type = kwargs['variableType'] + _setter("key", key) _setter("value", value) if masked is not None: @@ -168,7 +176,11 @@ def _configure( raw: Optional[pulumi.Input[bool]] = None, value: Optional[pulumi.Input[str]] = None, variable_type: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if variable_type is None and 'variableType' in kwargs: + variable_type = kwargs['variableType'] + if key is not None: _setter("key", key) if masked is not None: @@ -272,19 +284,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/instance_level_ci_variables.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.InstanceVariable("example", - key="instance_variable_key", - masked=False, - protected=False, - value="instance_variable_value") - ``` - ## Import GitLab instance variables can be imported using an id made up of `variablename`, e.g. @@ -313,19 +312,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/instance_level_ci_variables.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.InstanceVariable("example", - key="instance_variable_key", - masked=False, - protected=False, - value="instance_variable_value") - ``` - ## Import GitLab instance variables can be imported using an id made up of `variablename`, e.g. diff --git a/sdk/python/pulumi_gitlab/integration_custom_issue_tracker.py b/sdk/python/pulumi_gitlab/integration_custom_issue_tracker.py index 8871171f..13d1fd33 100644 --- a/sdk/python/pulumi_gitlab/integration_custom_issue_tracker.py +++ b/sdk/python/pulumi_gitlab/integration_custom_issue_tracker.py @@ -32,10 +32,22 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - issues_url: pulumi.Input[str], - project: pulumi.Input[str], - project_url: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + issues_url: Optional[pulumi.Input[str]] = None, + project: Optional[pulumi.Input[str]] = None, + project_url: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if issues_url is None and 'issuesUrl' in kwargs: + issues_url = kwargs['issuesUrl'] + if issues_url is None: + raise TypeError("Missing 'issues_url' argument") + if project is None: + raise TypeError("Missing 'project' argument") + if project_url is None and 'projectUrl' in kwargs: + project_url = kwargs['projectUrl'] + if project_url is None: + raise TypeError("Missing 'project_url' argument") + _setter("issues_url", issues_url) _setter("project", project) _setter("project_url", project_url) @@ -117,7 +129,17 @@ def _configure( project_url: Optional[pulumi.Input[str]] = None, slug: Optional[pulumi.Input[str]] = None, updated_at: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if issues_url is None and 'issuesUrl' in kwargs: + issues_url = kwargs['issuesUrl'] + if project_url is None and 'projectUrl' in kwargs: + project_url = kwargs['projectUrl'] + if updated_at is None and 'updatedAt' in kwargs: + updated_at = kwargs['updatedAt'] + if active is not None: _setter("active", active) if created_at is not None: @@ -232,21 +254,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#custom-issue-tracker) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - tracker = gitlab.IntegrationCustomIssueTracker("tracker", - project=awesome_project.id, - project_url="https://customtracker.com/issues", - issues_url="https://customtracker.com/TEST-:id") - ``` - ## Import You can import a gitlab_integration_custom_issue_tracker state using the project ID, e.g. @@ -272,21 +279,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#custom-issue-tracker) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - tracker = gitlab.IntegrationCustomIssueTracker("tracker", - project=awesome_project.id, - project_url="https://customtracker.com/issues", - issues_url="https://customtracker.com/TEST-:id") - ``` - ## Import You can import a gitlab_integration_custom_issue_tracker state using the project ID, e.g. diff --git a/sdk/python/pulumi_gitlab/integration_emails_on_push.py b/sdk/python/pulumi_gitlab/integration_emails_on_push.py index a8b40640..92fa1708 100644 --- a/sdk/python/pulumi_gitlab/integration_emails_on_push.py +++ b/sdk/python/pulumi_gitlab/integration_emails_on_push.py @@ -44,14 +44,30 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - project: pulumi.Input[str], - recipients: pulumi.Input[str], + project: Optional[pulumi.Input[str]] = None, + recipients: Optional[pulumi.Input[str]] = None, branches_to_be_notified: Optional[pulumi.Input[str]] = None, disable_diffs: Optional[pulumi.Input[bool]] = None, push_events: Optional[pulumi.Input[bool]] = None, send_from_committer_email: Optional[pulumi.Input[bool]] = None, tag_push_events: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if project is None: + raise TypeError("Missing 'project' argument") + if recipients is None: + raise TypeError("Missing 'recipients' argument") + if branches_to_be_notified is None and 'branchesToBeNotified' in kwargs: + branches_to_be_notified = kwargs['branchesToBeNotified'] + if disable_diffs is None and 'disableDiffs' in kwargs: + disable_diffs = kwargs['disableDiffs'] + if push_events is None and 'pushEvents' in kwargs: + push_events = kwargs['pushEvents'] + if send_from_committer_email is None and 'sendFromCommitterEmail' in kwargs: + send_from_committer_email = kwargs['sendFromCommitterEmail'] + if tag_push_events is None and 'tagPushEvents' in kwargs: + tag_push_events = kwargs['tagPushEvents'] + _setter("project", project) _setter("recipients", recipients) if branches_to_be_notified is not None: @@ -210,7 +226,23 @@ def _configure( tag_push_events: Optional[pulumi.Input[bool]] = None, title: Optional[pulumi.Input[str]] = None, updated_at: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if branches_to_be_notified is None and 'branchesToBeNotified' in kwargs: + branches_to_be_notified = kwargs['branchesToBeNotified'] + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if disable_diffs is None and 'disableDiffs' in kwargs: + disable_diffs = kwargs['disableDiffs'] + if push_events is None and 'pushEvents' in kwargs: + push_events = kwargs['pushEvents'] + if send_from_committer_email is None and 'sendFromCommitterEmail' in kwargs: + send_from_committer_email = kwargs['sendFromCommitterEmail'] + if tag_push_events is None and 'tagPushEvents' in kwargs: + tag_push_events = kwargs['tagPushEvents'] + if updated_at is None and 'updatedAt' in kwargs: + updated_at = kwargs['updatedAt'] + if active is not None: _setter("active", active) if branches_to_be_notified is not None: @@ -399,20 +431,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#emails-on-push) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - emails = gitlab.IntegrationEmailsOnPush("emails", - project=awesome_project.id, - recipients="myrecipient@example.com myotherrecipient@example.com") - ``` - ## Import You can import a gitlab_integration_emails_on_push state using the project ID, e.g. @@ -442,20 +460,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#emails-on-push) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - emails = gitlab.IntegrationEmailsOnPush("emails", - project=awesome_project.id, - recipients="myrecipient@example.com myotherrecipient@example.com") - ``` - ## Import You can import a gitlab_integration_emails_on_push state using the project ID, e.g. diff --git a/sdk/python/pulumi_gitlab/integration_external_wiki.py b/sdk/python/pulumi_gitlab/integration_external_wiki.py index c876d77f..c3ca817f 100644 --- a/sdk/python/pulumi_gitlab/integration_external_wiki.py +++ b/sdk/python/pulumi_gitlab/integration_external_wiki.py @@ -29,9 +29,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - external_wiki_url: pulumi.Input[str], - project: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + external_wiki_url: Optional[pulumi.Input[str]] = None, + project: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if external_wiki_url is None and 'externalWikiUrl' in kwargs: + external_wiki_url = kwargs['externalWikiUrl'] + if external_wiki_url is None: + raise TypeError("Missing 'external_wiki_url' argument") + if project is None: + raise TypeError("Missing 'project' argument") + _setter("external_wiki_url", external_wiki_url) _setter("project", project) @@ -100,7 +108,15 @@ def _configure( slug: Optional[pulumi.Input[str]] = None, title: Optional[pulumi.Input[str]] = None, updated_at: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if external_wiki_url is None and 'externalWikiUrl' in kwargs: + external_wiki_url = kwargs['externalWikiUrl'] + if updated_at is None and 'updatedAt' in kwargs: + updated_at = kwargs['updatedAt'] + if active is not None: _setter("active", active) if created_at is not None: @@ -214,20 +230,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#external-wiki) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - wiki = gitlab.IntegrationExternalWiki("wiki", - project=awesome_project.id, - external_wiki_url="https://MyAwesomeExternalWikiURL.com") - ``` - ## Import You can import a gitlab_integration_external_wiki state using the project ID, e.g. @@ -252,20 +254,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#external-wiki) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - wiki = gitlab.IntegrationExternalWiki("wiki", - project=awesome_project.id, - external_wiki_url="https://MyAwesomeExternalWikiURL.com") - ``` - ## Import You can import a gitlab_integration_external_wiki state using the project ID, e.g. diff --git a/sdk/python/pulumi_gitlab/integration_github.py b/sdk/python/pulumi_gitlab/integration_github.py index f6c452c5..94de5bfa 100644 --- a/sdk/python/pulumi_gitlab/integration_github.py +++ b/sdk/python/pulumi_gitlab/integration_github.py @@ -35,11 +35,23 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - project: pulumi.Input[str], - repository_url: pulumi.Input[str], - token: pulumi.Input[str], + project: Optional[pulumi.Input[str]] = None, + repository_url: Optional[pulumi.Input[str]] = None, + token: Optional[pulumi.Input[str]] = None, static_context: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if project is None: + raise TypeError("Missing 'project' argument") + if repository_url is None and 'repositoryUrl' in kwargs: + repository_url = kwargs['repositoryUrl'] + if repository_url is None: + raise TypeError("Missing 'repository_url' argument") + if token is None: + raise TypeError("Missing 'token' argument") + if static_context is None and 'staticContext' in kwargs: + static_context = kwargs['staticContext'] + _setter("project", project) _setter("repository_url", repository_url) _setter("token", token) @@ -139,7 +151,17 @@ def _configure( title: Optional[pulumi.Input[str]] = None, token: Optional[pulumi.Input[str]] = None, updated_at: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if repository_url is None and 'repositoryUrl' in kwargs: + repository_url = kwargs['repositoryUrl'] + if static_context is None and 'staticContext' in kwargs: + static_context = kwargs['staticContext'] + if updated_at is None and 'updatedAt' in kwargs: + updated_at = kwargs['updatedAt'] + if active is not None: _setter("active", active) if created_at is not None: @@ -271,21 +293,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#github) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - github = gitlab.IntegrationGithub("github", - project=awesome_project.id, - token="REDACTED", - repository_url="https://github.com/gitlabhq/terraform-provider-gitlab") - ``` - ## Import ```sh @@ -316,21 +323,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#github) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - github = gitlab.IntegrationGithub("github", - project=awesome_project.id, - token="REDACTED", - repository_url="https://github.com/gitlabhq/terraform-provider-gitlab") - ``` - ## Import ```sh diff --git a/sdk/python/pulumi_gitlab/integration_jira.py b/sdk/python/pulumi_gitlab/integration_jira.py index 764c2c21..3547d1b0 100644 --- a/sdk/python/pulumi_gitlab/integration_jira.py +++ b/sdk/python/pulumi_gitlab/integration_jira.py @@ -71,10 +71,10 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - password: pulumi.Input[str], - project: pulumi.Input[str], - url: pulumi.Input[str], - username: pulumi.Input[str], + password: Optional[pulumi.Input[str]] = None, + project: Optional[pulumi.Input[str]] = None, + url: Optional[pulumi.Input[str]] = None, + username: Optional[pulumi.Input[str]] = None, api_url: Optional[pulumi.Input[str]] = None, comment_on_event_enabled: Optional[pulumi.Input[bool]] = None, commit_events: Optional[pulumi.Input[bool]] = None, @@ -87,7 +87,41 @@ def _configure( project_key: Optional[pulumi.Input[str]] = None, push_events: Optional[pulumi.Input[bool]] = None, tag_push_events: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if password is None: + raise TypeError("Missing 'password' argument") + if project is None: + raise TypeError("Missing 'project' argument") + if url is None: + raise TypeError("Missing 'url' argument") + if username is None: + raise TypeError("Missing 'username' argument") + if api_url is None and 'apiUrl' in kwargs: + api_url = kwargs['apiUrl'] + if comment_on_event_enabled is None and 'commentOnEventEnabled' in kwargs: + comment_on_event_enabled = kwargs['commentOnEventEnabled'] + if commit_events is None and 'commitEvents' in kwargs: + commit_events = kwargs['commitEvents'] + if issues_events is None and 'issuesEvents' in kwargs: + issues_events = kwargs['issuesEvents'] + if jira_issue_transition_id is None and 'jiraIssueTransitionId' in kwargs: + jira_issue_transition_id = kwargs['jiraIssueTransitionId'] + if job_events is None and 'jobEvents' in kwargs: + job_events = kwargs['jobEvents'] + if merge_requests_events is None and 'mergeRequestsEvents' in kwargs: + merge_requests_events = kwargs['mergeRequestsEvents'] + if note_events is None and 'noteEvents' in kwargs: + note_events = kwargs['noteEvents'] + if pipeline_events is None and 'pipelineEvents' in kwargs: + pipeline_events = kwargs['pipelineEvents'] + if project_key is None and 'projectKey' in kwargs: + project_key = kwargs['projectKey'] + if push_events is None and 'pushEvents' in kwargs: + push_events = kwargs['pushEvents'] + if tag_push_events is None and 'tagPushEvents' in kwargs: + tag_push_events = kwargs['tagPushEvents'] + _setter("password", password) _setter("project", project) _setter("url", url) @@ -402,7 +436,37 @@ def _configure( updated_at: Optional[pulumi.Input[str]] = None, url: Optional[pulumi.Input[str]] = None, username: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if api_url is None and 'apiUrl' in kwargs: + api_url = kwargs['apiUrl'] + if comment_on_event_enabled is None and 'commentOnEventEnabled' in kwargs: + comment_on_event_enabled = kwargs['commentOnEventEnabled'] + if commit_events is None and 'commitEvents' in kwargs: + commit_events = kwargs['commitEvents'] + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if issues_events is None and 'issuesEvents' in kwargs: + issues_events = kwargs['issuesEvents'] + if jira_issue_transition_id is None and 'jiraIssueTransitionId' in kwargs: + jira_issue_transition_id = kwargs['jiraIssueTransitionId'] + if job_events is None and 'jobEvents' in kwargs: + job_events = kwargs['jobEvents'] + if merge_requests_events is None and 'mergeRequestsEvents' in kwargs: + merge_requests_events = kwargs['mergeRequestsEvents'] + if note_events is None and 'noteEvents' in kwargs: + note_events = kwargs['noteEvents'] + if pipeline_events is None and 'pipelineEvents' in kwargs: + pipeline_events = kwargs['pipelineEvents'] + if project_key is None and 'projectKey' in kwargs: + project_key = kwargs['projectKey'] + if push_events is None and 'pushEvents' in kwargs: + push_events = kwargs['pushEvents'] + if tag_push_events is None and 'tagPushEvents' in kwargs: + tag_push_events = kwargs['tagPushEvents'] + if updated_at is None and 'updatedAt' in kwargs: + updated_at = kwargs['updatedAt'] + if active is not None: _setter("active", active) if api_url is not None: @@ -712,22 +776,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/services.html#jira) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - jira = gitlab.IntegrationJira("jira", - project=awesome_project.id, - url="https://jira.example.com", - username="user", - password="mypass") - ``` - ## Import You can import a gitlab_integration_jira state using the project ID, e.g. @@ -766,22 +814,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/services.html#jira) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - jira = gitlab.IntegrationJira("jira", - project=awesome_project.id, - url="https://jira.example.com", - username="user", - password="mypass") - ``` - ## Import You can import a gitlab_integration_jira state using the project ID, e.g. diff --git a/sdk/python/pulumi_gitlab/integration_mattermost.py b/sdk/python/pulumi_gitlab/integration_mattermost.py index dbffd2b2..14c4d705 100644 --- a/sdk/python/pulumi_gitlab/integration_mattermost.py +++ b/sdk/python/pulumi_gitlab/integration_mattermost.py @@ -92,8 +92,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - project: pulumi.Input[str], - webhook: pulumi.Input[str], + project: Optional[pulumi.Input[str]] = None, + webhook: Optional[pulumi.Input[str]] = None, branches_to_be_notified: Optional[pulumi.Input[str]] = None, confidential_issue_channel: Optional[pulumi.Input[str]] = None, confidential_issues_events: Optional[pulumi.Input[bool]] = None, @@ -115,7 +115,53 @@ def _configure( username: Optional[pulumi.Input[str]] = None, wiki_page_channel: Optional[pulumi.Input[str]] = None, wiki_page_events: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if project is None: + raise TypeError("Missing 'project' argument") + if webhook is None: + raise TypeError("Missing 'webhook' argument") + if branches_to_be_notified is None and 'branchesToBeNotified' in kwargs: + branches_to_be_notified = kwargs['branchesToBeNotified'] + if confidential_issue_channel is None and 'confidentialIssueChannel' in kwargs: + confidential_issue_channel = kwargs['confidentialIssueChannel'] + if confidential_issues_events is None and 'confidentialIssuesEvents' in kwargs: + confidential_issues_events = kwargs['confidentialIssuesEvents'] + if confidential_note_channel is None and 'confidentialNoteChannel' in kwargs: + confidential_note_channel = kwargs['confidentialNoteChannel'] + if confidential_note_events is None and 'confidentialNoteEvents' in kwargs: + confidential_note_events = kwargs['confidentialNoteEvents'] + if issue_channel is None and 'issueChannel' in kwargs: + issue_channel = kwargs['issueChannel'] + if issues_events is None and 'issuesEvents' in kwargs: + issues_events = kwargs['issuesEvents'] + if merge_request_channel is None and 'mergeRequestChannel' in kwargs: + merge_request_channel = kwargs['mergeRequestChannel'] + if merge_requests_events is None and 'mergeRequestsEvents' in kwargs: + merge_requests_events = kwargs['mergeRequestsEvents'] + if note_channel is None and 'noteChannel' in kwargs: + note_channel = kwargs['noteChannel'] + if note_events is None and 'noteEvents' in kwargs: + note_events = kwargs['noteEvents'] + if notify_only_broken_pipelines is None and 'notifyOnlyBrokenPipelines' in kwargs: + notify_only_broken_pipelines = kwargs['notifyOnlyBrokenPipelines'] + if pipeline_channel is None and 'pipelineChannel' in kwargs: + pipeline_channel = kwargs['pipelineChannel'] + if pipeline_events is None and 'pipelineEvents' in kwargs: + pipeline_events = kwargs['pipelineEvents'] + if push_channel is None and 'pushChannel' in kwargs: + push_channel = kwargs['pushChannel'] + if push_events is None and 'pushEvents' in kwargs: + push_events = kwargs['pushEvents'] + if tag_push_channel is None and 'tagPushChannel' in kwargs: + tag_push_channel = kwargs['tagPushChannel'] + if tag_push_events is None and 'tagPushEvents' in kwargs: + tag_push_events = kwargs['tagPushEvents'] + if wiki_page_channel is None and 'wikiPageChannel' in kwargs: + wiki_page_channel = kwargs['wikiPageChannel'] + if wiki_page_events is None and 'wikiPageEvents' in kwargs: + wiki_page_events = kwargs['wikiPageEvents'] + _setter("project", project) _setter("webhook", webhook) if branches_to_be_notified is not None: @@ -542,7 +588,49 @@ def _configure( webhook: Optional[pulumi.Input[str]] = None, wiki_page_channel: Optional[pulumi.Input[str]] = None, wiki_page_events: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if branches_to_be_notified is None and 'branchesToBeNotified' in kwargs: + branches_to_be_notified = kwargs['branchesToBeNotified'] + if confidential_issue_channel is None and 'confidentialIssueChannel' in kwargs: + confidential_issue_channel = kwargs['confidentialIssueChannel'] + if confidential_issues_events is None and 'confidentialIssuesEvents' in kwargs: + confidential_issues_events = kwargs['confidentialIssuesEvents'] + if confidential_note_channel is None and 'confidentialNoteChannel' in kwargs: + confidential_note_channel = kwargs['confidentialNoteChannel'] + if confidential_note_events is None and 'confidentialNoteEvents' in kwargs: + confidential_note_events = kwargs['confidentialNoteEvents'] + if issue_channel is None and 'issueChannel' in kwargs: + issue_channel = kwargs['issueChannel'] + if issues_events is None and 'issuesEvents' in kwargs: + issues_events = kwargs['issuesEvents'] + if merge_request_channel is None and 'mergeRequestChannel' in kwargs: + merge_request_channel = kwargs['mergeRequestChannel'] + if merge_requests_events is None and 'mergeRequestsEvents' in kwargs: + merge_requests_events = kwargs['mergeRequestsEvents'] + if note_channel is None and 'noteChannel' in kwargs: + note_channel = kwargs['noteChannel'] + if note_events is None and 'noteEvents' in kwargs: + note_events = kwargs['noteEvents'] + if notify_only_broken_pipelines is None and 'notifyOnlyBrokenPipelines' in kwargs: + notify_only_broken_pipelines = kwargs['notifyOnlyBrokenPipelines'] + if pipeline_channel is None and 'pipelineChannel' in kwargs: + pipeline_channel = kwargs['pipelineChannel'] + if pipeline_events is None and 'pipelineEvents' in kwargs: + pipeline_events = kwargs['pipelineEvents'] + if push_channel is None and 'pushChannel' in kwargs: + push_channel = kwargs['pushChannel'] + if push_events is None and 'pushEvents' in kwargs: + push_events = kwargs['pushEvents'] + if tag_push_channel is None and 'tagPushChannel' in kwargs: + tag_push_channel = kwargs['tagPushChannel'] + if tag_push_events is None and 'tagPushEvents' in kwargs: + tag_push_events = kwargs['tagPushEvents'] + if wiki_page_channel is None and 'wikiPageChannel' in kwargs: + wiki_page_channel = kwargs['wikiPageChannel'] + if wiki_page_events is None and 'wikiPageEvents' in kwargs: + wiki_page_events = kwargs['wikiPageEvents'] + if branches_to_be_notified is not None: _setter("branches_to_be_notified", branches_to_be_notified) if confidential_issue_channel is not None: @@ -901,23 +989,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#mattermost-notifications) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - mattermost = gitlab.IntegrationMattermost("mattermost", - project=awesome_project.id, - webhook="https://webhook.com", - username="myuser", - push_events=True, - push_channel="push_chan") - ``` - ## Import You can import a gitlab_integration_mattermost.mattermost state using the project ID, e.g. @@ -963,23 +1034,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#mattermost-notifications) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - mattermost = gitlab.IntegrationMattermost("mattermost", - project=awesome_project.id, - webhook="https://webhook.com", - username="myuser", - push_events=True, - push_channel="push_chan") - ``` - ## Import You can import a gitlab_integration_mattermost.mattermost state using the project ID, e.g. diff --git a/sdk/python/pulumi_gitlab/integration_microsoft_teams.py b/sdk/python/pulumi_gitlab/integration_microsoft_teams.py index ed52e372..26529163 100644 --- a/sdk/python/pulumi_gitlab/integration_microsoft_teams.py +++ b/sdk/python/pulumi_gitlab/integration_microsoft_teams.py @@ -62,8 +62,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - project: pulumi.Input[str], - webhook: pulumi.Input[str], + project: Optional[pulumi.Input[str]] = None, + webhook: Optional[pulumi.Input[str]] = None, branches_to_be_notified: Optional[pulumi.Input[str]] = None, confidential_issues_events: Optional[pulumi.Input[bool]] = None, confidential_note_events: Optional[pulumi.Input[bool]] = None, @@ -75,7 +75,35 @@ def _configure( push_events: Optional[pulumi.Input[bool]] = None, tag_push_events: Optional[pulumi.Input[bool]] = None, wiki_page_events: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if project is None: + raise TypeError("Missing 'project' argument") + if webhook is None: + raise TypeError("Missing 'webhook' argument") + if branches_to_be_notified is None and 'branchesToBeNotified' in kwargs: + branches_to_be_notified = kwargs['branchesToBeNotified'] + if confidential_issues_events is None and 'confidentialIssuesEvents' in kwargs: + confidential_issues_events = kwargs['confidentialIssuesEvents'] + if confidential_note_events is None and 'confidentialNoteEvents' in kwargs: + confidential_note_events = kwargs['confidentialNoteEvents'] + if issues_events is None and 'issuesEvents' in kwargs: + issues_events = kwargs['issuesEvents'] + if merge_requests_events is None and 'mergeRequestsEvents' in kwargs: + merge_requests_events = kwargs['mergeRequestsEvents'] + if note_events is None and 'noteEvents' in kwargs: + note_events = kwargs['noteEvents'] + if notify_only_broken_pipelines is None and 'notifyOnlyBrokenPipelines' in kwargs: + notify_only_broken_pipelines = kwargs['notifyOnlyBrokenPipelines'] + if pipeline_events is None and 'pipelineEvents' in kwargs: + pipeline_events = kwargs['pipelineEvents'] + if push_events is None and 'pushEvents' in kwargs: + push_events = kwargs['pushEvents'] + if tag_push_events is None and 'tagPushEvents' in kwargs: + tag_push_events = kwargs['tagPushEvents'] + if wiki_page_events is None and 'wikiPageEvents' in kwargs: + wiki_page_events = kwargs['wikiPageEvents'] + _setter("project", project) _setter("webhook", webhook) if branches_to_be_notified is not None: @@ -334,7 +362,35 @@ def _configure( updated_at: Optional[pulumi.Input[str]] = None, webhook: Optional[pulumi.Input[str]] = None, wiki_page_events: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if branches_to_be_notified is None and 'branchesToBeNotified' in kwargs: + branches_to_be_notified = kwargs['branchesToBeNotified'] + if confidential_issues_events is None and 'confidentialIssuesEvents' in kwargs: + confidential_issues_events = kwargs['confidentialIssuesEvents'] + if confidential_note_events is None and 'confidentialNoteEvents' in kwargs: + confidential_note_events = kwargs['confidentialNoteEvents'] + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if issues_events is None and 'issuesEvents' in kwargs: + issues_events = kwargs['issuesEvents'] + if merge_requests_events is None and 'mergeRequestsEvents' in kwargs: + merge_requests_events = kwargs['mergeRequestsEvents'] + if note_events is None and 'noteEvents' in kwargs: + note_events = kwargs['noteEvents'] + if notify_only_broken_pipelines is None and 'notifyOnlyBrokenPipelines' in kwargs: + notify_only_broken_pipelines = kwargs['notifyOnlyBrokenPipelines'] + if pipeline_events is None and 'pipelineEvents' in kwargs: + pipeline_events = kwargs['pipelineEvents'] + if push_events is None and 'pushEvents' in kwargs: + push_events = kwargs['pushEvents'] + if tag_push_events is None and 'tagPushEvents' in kwargs: + tag_push_events = kwargs['tagPushEvents'] + if updated_at is None and 'updatedAt' in kwargs: + updated_at = kwargs['updatedAt'] + if wiki_page_events is None and 'wikiPageEvents' in kwargs: + wiki_page_events = kwargs['wikiPageEvents'] + if active is not None: _setter("active", active) if branches_to_be_notified is not None: @@ -585,21 +641,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#microsoft-teams) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - teams = gitlab.IntegrationMicrosoftTeams("teams", - project=awesome_project.id, - webhook="https://testurl.com/?token=XYZ", - push_events=True) - ``` - ## Import You can import a gitlab_integration_microsoft_teams state using the project ID, e.g. @@ -635,21 +676,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#microsoft-teams) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - teams = gitlab.IntegrationMicrosoftTeams("teams", - project=awesome_project.id, - webhook="https://testurl.com/?token=XYZ", - push_events=True) - ``` - ## Import You can import a gitlab_integration_microsoft_teams state using the project ID, e.g. diff --git a/sdk/python/pulumi_gitlab/integration_pipelines_email.py b/sdk/python/pulumi_gitlab/integration_pipelines_email.py index 38b299ab..796a1bb7 100644 --- a/sdk/python/pulumi_gitlab/integration_pipelines_email.py +++ b/sdk/python/pulumi_gitlab/integration_pipelines_email.py @@ -35,11 +35,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - project: pulumi.Input[str], - recipients: pulumi.Input[Sequence[pulumi.Input[str]]], + project: Optional[pulumi.Input[str]] = None, + recipients: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, branches_to_be_notified: Optional[pulumi.Input[str]] = None, notify_only_broken_pipelines: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if project is None: + raise TypeError("Missing 'project' argument") + if recipients is None: + raise TypeError("Missing 'recipients' argument") + if branches_to_be_notified is None and 'branchesToBeNotified' in kwargs: + branches_to_be_notified = kwargs['branchesToBeNotified'] + if notify_only_broken_pipelines is None and 'notifyOnlyBrokenPipelines' in kwargs: + notify_only_broken_pipelines = kwargs['notifyOnlyBrokenPipelines'] + _setter("project", project) _setter("recipients", recipients) if branches_to_be_notified is not None: @@ -124,7 +134,13 @@ def _configure( notify_only_broken_pipelines: Optional[pulumi.Input[bool]] = None, project: Optional[pulumi.Input[str]] = None, recipients: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if branches_to_be_notified is None and 'branchesToBeNotified' in kwargs: + branches_to_be_notified = kwargs['branchesToBeNotified'] + if notify_only_broken_pipelines is None and 'notifyOnlyBrokenPipelines' in kwargs: + notify_only_broken_pipelines = kwargs['notifyOnlyBrokenPipelines'] + if branches_to_be_notified is not None: _setter("branches_to_be_notified", branches_to_be_notified) if notify_only_broken_pipelines is not None: @@ -198,22 +214,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#pipeline-emails) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - email = gitlab.IntegrationPipelinesEmail("email", - project=awesome_project.id, - recipients=["gitlab@user.create"], - notify_only_broken_pipelines=True, - branches_to_be_notified="all") - ``` - ## Import You can import a gitlab_integration_pipelines_email state using the project ID, e.g. @@ -240,22 +240,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#pipeline-emails) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - email = gitlab.IntegrationPipelinesEmail("email", - project=awesome_project.id, - recipients=["gitlab@user.create"], - notify_only_broken_pipelines=True, - branches_to_be_notified="all") - ``` - ## Import You can import a gitlab_integration_pipelines_email state using the project ID, e.g. diff --git a/sdk/python/pulumi_gitlab/integration_slack.py b/sdk/python/pulumi_gitlab/integration_slack.py index f5c28b56..530aa8a1 100644 --- a/sdk/python/pulumi_gitlab/integration_slack.py +++ b/sdk/python/pulumi_gitlab/integration_slack.py @@ -92,8 +92,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - project: pulumi.Input[str], - webhook: pulumi.Input[str], + project: Optional[pulumi.Input[str]] = None, + webhook: Optional[pulumi.Input[str]] = None, branches_to_be_notified: Optional[pulumi.Input[str]] = None, confidential_issue_channel: Optional[pulumi.Input[str]] = None, confidential_issues_events: Optional[pulumi.Input[bool]] = None, @@ -115,7 +115,53 @@ def _configure( username: Optional[pulumi.Input[str]] = None, wiki_page_channel: Optional[pulumi.Input[str]] = None, wiki_page_events: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if project is None: + raise TypeError("Missing 'project' argument") + if webhook is None: + raise TypeError("Missing 'webhook' argument") + if branches_to_be_notified is None and 'branchesToBeNotified' in kwargs: + branches_to_be_notified = kwargs['branchesToBeNotified'] + if confidential_issue_channel is None and 'confidentialIssueChannel' in kwargs: + confidential_issue_channel = kwargs['confidentialIssueChannel'] + if confidential_issues_events is None and 'confidentialIssuesEvents' in kwargs: + confidential_issues_events = kwargs['confidentialIssuesEvents'] + if confidential_note_events is None and 'confidentialNoteEvents' in kwargs: + confidential_note_events = kwargs['confidentialNoteEvents'] + if issue_channel is None and 'issueChannel' in kwargs: + issue_channel = kwargs['issueChannel'] + if issues_events is None and 'issuesEvents' in kwargs: + issues_events = kwargs['issuesEvents'] + if merge_request_channel is None and 'mergeRequestChannel' in kwargs: + merge_request_channel = kwargs['mergeRequestChannel'] + if merge_requests_events is None and 'mergeRequestsEvents' in kwargs: + merge_requests_events = kwargs['mergeRequestsEvents'] + if note_channel is None and 'noteChannel' in kwargs: + note_channel = kwargs['noteChannel'] + if note_events is None and 'noteEvents' in kwargs: + note_events = kwargs['noteEvents'] + if notify_only_broken_pipelines is None and 'notifyOnlyBrokenPipelines' in kwargs: + notify_only_broken_pipelines = kwargs['notifyOnlyBrokenPipelines'] + if notify_only_default_branch is None and 'notifyOnlyDefaultBranch' in kwargs: + notify_only_default_branch = kwargs['notifyOnlyDefaultBranch'] + if pipeline_channel is None and 'pipelineChannel' in kwargs: + pipeline_channel = kwargs['pipelineChannel'] + if pipeline_events is None and 'pipelineEvents' in kwargs: + pipeline_events = kwargs['pipelineEvents'] + if push_channel is None and 'pushChannel' in kwargs: + push_channel = kwargs['pushChannel'] + if push_events is None and 'pushEvents' in kwargs: + push_events = kwargs['pushEvents'] + if tag_push_channel is None and 'tagPushChannel' in kwargs: + tag_push_channel = kwargs['tagPushChannel'] + if tag_push_events is None and 'tagPushEvents' in kwargs: + tag_push_events = kwargs['tagPushEvents'] + if wiki_page_channel is None and 'wikiPageChannel' in kwargs: + wiki_page_channel = kwargs['wikiPageChannel'] + if wiki_page_events is None and 'wikiPageEvents' in kwargs: + wiki_page_events = kwargs['wikiPageEvents'] + _setter("project", project) _setter("webhook", webhook) if branches_to_be_notified is not None: @@ -552,7 +598,51 @@ def _configure( webhook: Optional[pulumi.Input[str]] = None, wiki_page_channel: Optional[pulumi.Input[str]] = None, wiki_page_events: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if branches_to_be_notified is None and 'branchesToBeNotified' in kwargs: + branches_to_be_notified = kwargs['branchesToBeNotified'] + if confidential_issue_channel is None and 'confidentialIssueChannel' in kwargs: + confidential_issue_channel = kwargs['confidentialIssueChannel'] + if confidential_issues_events is None and 'confidentialIssuesEvents' in kwargs: + confidential_issues_events = kwargs['confidentialIssuesEvents'] + if confidential_note_events is None and 'confidentialNoteEvents' in kwargs: + confidential_note_events = kwargs['confidentialNoteEvents'] + if issue_channel is None and 'issueChannel' in kwargs: + issue_channel = kwargs['issueChannel'] + if issues_events is None and 'issuesEvents' in kwargs: + issues_events = kwargs['issuesEvents'] + if job_events is None and 'jobEvents' in kwargs: + job_events = kwargs['jobEvents'] + if merge_request_channel is None and 'mergeRequestChannel' in kwargs: + merge_request_channel = kwargs['mergeRequestChannel'] + if merge_requests_events is None and 'mergeRequestsEvents' in kwargs: + merge_requests_events = kwargs['mergeRequestsEvents'] + if note_channel is None and 'noteChannel' in kwargs: + note_channel = kwargs['noteChannel'] + if note_events is None and 'noteEvents' in kwargs: + note_events = kwargs['noteEvents'] + if notify_only_broken_pipelines is None and 'notifyOnlyBrokenPipelines' in kwargs: + notify_only_broken_pipelines = kwargs['notifyOnlyBrokenPipelines'] + if notify_only_default_branch is None and 'notifyOnlyDefaultBranch' in kwargs: + notify_only_default_branch = kwargs['notifyOnlyDefaultBranch'] + if pipeline_channel is None and 'pipelineChannel' in kwargs: + pipeline_channel = kwargs['pipelineChannel'] + if pipeline_events is None and 'pipelineEvents' in kwargs: + pipeline_events = kwargs['pipelineEvents'] + if push_channel is None and 'pushChannel' in kwargs: + push_channel = kwargs['pushChannel'] + if push_events is None and 'pushEvents' in kwargs: + push_events = kwargs['pushEvents'] + if tag_push_channel is None and 'tagPushChannel' in kwargs: + tag_push_channel = kwargs['tagPushChannel'] + if tag_push_events is None and 'tagPushEvents' in kwargs: + tag_push_events = kwargs['tagPushEvents'] + if wiki_page_channel is None and 'wikiPageChannel' in kwargs: + wiki_page_channel = kwargs['wikiPageChannel'] + if wiki_page_events is None and 'wikiPageEvents' in kwargs: + wiki_page_events = kwargs['wikiPageEvents'] + if branches_to_be_notified is not None: _setter("branches_to_be_notified", branches_to_be_notified) if confidential_issue_channel is not None: @@ -931,23 +1021,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#slack-notifications) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - slack = gitlab.IntegrationSlack("slack", - project=awesome_project.id, - webhook="https://webhook.com", - username="myuser", - push_events=True, - push_channel="push_chan") - ``` - ## Import You can import a gitlab_integration_slack.slack state using the project ID, e.g. @@ -993,23 +1066,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#slack-notifications) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - slack = gitlab.IntegrationSlack("slack", - project=awesome_project.id, - webhook="https://webhook.com", - username="myuser", - push_events=True, - push_channel="push_chan") - ``` - ## Import You can import a gitlab_integration_slack.slack state using the project ID, e.g. diff --git a/sdk/python/pulumi_gitlab/label.py b/sdk/python/pulumi_gitlab/label.py index 9d499282..77211378 100644 --- a/sdk/python/pulumi_gitlab/label.py +++ b/sdk/python/pulumi_gitlab/label.py @@ -35,11 +35,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - color: pulumi.Input[str], - project: pulumi.Input[str], + color: Optional[pulumi.Input[str]] = None, + project: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if color is None: + raise TypeError("Missing 'color' argument") + if project is None: + raise TypeError("Missing 'project' argument") + _setter("color", color) _setter("project", project) if description is not None: @@ -128,7 +134,11 @@ def _configure( label_id: Optional[pulumi.Input[int]] = None, name: Optional[pulumi.Input[str]] = None, project: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if label_id is None and 'labelId' in kwargs: + label_id = kwargs['labelId'] + if color is not None: _setter("color", color) if description is not None: diff --git a/sdk/python/pulumi_gitlab/outputs.py b/sdk/python/pulumi_gitlab/outputs.py index 33946d56..d6f8bf36 100644 --- a/sdk/python/pulumi_gitlab/outputs.py +++ b/sdk/python/pulumi_gitlab/outputs.py @@ -144,7 +144,25 @@ def _configure( parent_ids: Optional[Sequence[str]] = None, short_id: Optional[str] = None, title: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if author_email is None and 'authorEmail' in kwargs: + author_email = kwargs['authorEmail'] + if author_name is None and 'authorName' in kwargs: + author_name = kwargs['authorName'] + if authored_date is None and 'authoredDate' in kwargs: + authored_date = kwargs['authoredDate'] + if committed_date is None and 'committedDate' in kwargs: + committed_date = kwargs['committedDate'] + if committer_email is None and 'committerEmail' in kwargs: + committer_email = kwargs['committerEmail'] + if committer_name is None and 'committerName' in kwargs: + committer_name = kwargs['committerName'] + if parent_ids is None and 'parentIds' in kwargs: + parent_ids = kwargs['parentIds'] + if short_id is None and 'shortId' in kwargs: + short_id = kwargs['shortId'] + if author_email is not None: _setter("author_email", author_email) if author_name is not None: @@ -274,7 +292,17 @@ def _configure( access_level_description: Optional[str] = None, group_id: Optional[int] = None, user_id: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if access_level_description is None and 'accessLevelDescription' in kwargs: + access_level_description = kwargs['accessLevelDescription'] + if group_id is None and 'groupId' in kwargs: + group_id = kwargs['groupId'] + if user_id is None and 'userId' in kwargs: + user_id = kwargs['userId'] + if access_level is not None: _setter("access_level", access_level) if access_level_description is not None: @@ -367,7 +395,17 @@ def _configure( access_level_description: Optional[str] = None, group_id: Optional[int] = None, user_id: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if access_level_description is None and 'accessLevelDescription' in kwargs: + access_level_description = kwargs['accessLevelDescription'] + if group_id is None and 'groupId' in kwargs: + group_id = kwargs['groupId'] + if user_id is None and 'userId' in kwargs: + user_id = kwargs['userId'] + if access_level is not None: _setter("access_level", access_level) if access_level_description is not None: @@ -460,7 +498,17 @@ def _configure( access_level_description: Optional[str] = None, group_id: Optional[int] = None, user_id: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if access_level_description is None and 'accessLevelDescription' in kwargs: + access_level_description = kwargs['accessLevelDescription'] + if group_id is None and 'groupId' in kwargs: + group_id = kwargs['groupId'] + if user_id is None and 'userId' in kwargs: + user_id = kwargs['userId'] + if access_level is not None: _setter("access_level", access_level) if access_level_description is not None: @@ -543,7 +591,11 @@ def _configure( id: Optional[int] = None, label_id: Optional[int] = None, position: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if label_id is None and 'labelId' in kwargs: + label_id = kwargs['labelId'] + if id is not None: _setter("id", id) if label_id is not None: @@ -616,7 +668,11 @@ def _configure( id: Optional[int] = None, label_id: Optional[int] = None, position: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if label_id is None and 'labelId' in kwargs: + label_id = kwargs['labelId'] + if id is not None: _setter("id", id) if label_id is not None: @@ -719,7 +775,21 @@ def _configure( name_regex_keep: Optional[str] = None, next_run_at: Optional[str] = None, older_than: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if keep_n is None and 'keepN' in kwargs: + keep_n = kwargs['keepN'] + if name_regex is None and 'nameRegex' in kwargs: + name_regex = kwargs['nameRegex'] + if name_regex_delete is None and 'nameRegexDelete' in kwargs: + name_regex_delete = kwargs['nameRegexDelete'] + if name_regex_keep is None and 'nameRegexKeep' in kwargs: + name_regex_keep = kwargs['nameRegexKeep'] + if next_run_at is None and 'nextRunAt' in kwargs: + next_run_at = kwargs['nextRunAt'] + if older_than is None and 'olderThan' in kwargs: + older_than = kwargs['olderThan'] + if cadence is not None: _setter("cadence", cadence) if enabled is not None: @@ -863,7 +933,17 @@ def _configure( label_id: Optional[int] = None, milestone_id: Optional[int] = None, position: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if assignee_id is None and 'assigneeId' in kwargs: + assignee_id = kwargs['assigneeId'] + if iteration_id is None and 'iterationId' in kwargs: + iteration_id = kwargs['iterationId'] + if label_id is None and 'labelId' in kwargs: + label_id = kwargs['labelId'] + if milestone_id is None and 'milestoneId' in kwargs: + milestone_id = kwargs['milestoneId'] + if assignee_id is not None: _setter("assignee_id", assignee_id) if id is not None: @@ -958,7 +1038,11 @@ def _configure( _setter: Callable[[Any, Any], None], completed_count: Optional[int] = None, count: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if completed_count is None and 'completedCount' in kwargs: + completed_count = kwargs['completedCount'] + if completed_count is not None: _setter("completed_count", completed_count) if count is not None: @@ -1035,7 +1119,19 @@ def _configure( id: Optional[int] = None, required_approvals: Optional[int] = None, user_id: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if access_level_description is None and 'accessLevelDescription' in kwargs: + access_level_description = kwargs['accessLevelDescription'] + if group_id is None and 'groupId' in kwargs: + group_id = kwargs['groupId'] + if required_approvals is None and 'requiredApprovals' in kwargs: + required_approvals = kwargs['requiredApprovals'] + if user_id is None and 'userId' in kwargs: + user_id = kwargs['userId'] + if access_level is not None: _setter("access_level", access_level) if access_level_description is not None: @@ -1152,7 +1248,17 @@ def _configure( group_id: Optional[int] = None, id: Optional[int] = None, user_id: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if access_level_description is None and 'accessLevelDescription' in kwargs: + access_level_description = kwargs['accessLevelDescription'] + if group_id is None and 'groupId' in kwargs: + group_id = kwargs['groupId'] + if user_id is None and 'userId' in kwargs: + user_id = kwargs['userId'] + if access_level is not None: _setter("access_level", access_level) if access_level_description is not None: @@ -1297,7 +1403,31 @@ def _configure( member_check: Optional[bool] = None, prevent_secrets: Optional[bool] = None, reject_unsigned_commits: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if author_email_regex is None and 'authorEmailRegex' in kwargs: + author_email_regex = kwargs['authorEmailRegex'] + if branch_name_regex is None and 'branchNameRegex' in kwargs: + branch_name_regex = kwargs['branchNameRegex'] + if commit_committer_check is None and 'commitCommitterCheck' in kwargs: + commit_committer_check = kwargs['commitCommitterCheck'] + if commit_message_negative_regex is None and 'commitMessageNegativeRegex' in kwargs: + commit_message_negative_regex = kwargs['commitMessageNegativeRegex'] + if commit_message_regex is None and 'commitMessageRegex' in kwargs: + commit_message_regex = kwargs['commitMessageRegex'] + if deny_delete_tag is None and 'denyDeleteTag' in kwargs: + deny_delete_tag = kwargs['denyDeleteTag'] + if file_name_regex is None and 'fileNameRegex' in kwargs: + file_name_regex = kwargs['fileNameRegex'] + if max_file_size is None and 'maxFileSize' in kwargs: + max_file_size = kwargs['maxFileSize'] + if member_check is None and 'memberCheck' in kwargs: + member_check = kwargs['memberCheck'] + if prevent_secrets is None and 'preventSecrets' in kwargs: + prevent_secrets = kwargs['preventSecrets'] + if reject_unsigned_commits is None and 'rejectUnsignedCommits' in kwargs: + reject_unsigned_commits = kwargs['rejectUnsignedCommits'] + if author_email_regex is not None: _setter("author_email_regex", author_email_regex) if branch_name_regex is not None: @@ -1483,7 +1613,25 @@ def _configure( parent_ids: Optional[Sequence[str]] = None, short_id: Optional[str] = None, title: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if author_email is None and 'authorEmail' in kwargs: + author_email = kwargs['authorEmail'] + if author_name is None and 'authorName' in kwargs: + author_name = kwargs['authorName'] + if authored_date is None and 'authoredDate' in kwargs: + authored_date = kwargs['authoredDate'] + if committed_date is None and 'committedDate' in kwargs: + committed_date = kwargs['committedDate'] + if committer_email is None and 'committerEmail' in kwargs: + committer_email = kwargs['committerEmail'] + if committer_name is None and 'committerName' in kwargs: + committer_name = kwargs['committerName'] + if parent_ids is None and 'parentIds' in kwargs: + parent_ids = kwargs['parentIds'] + if short_id is None and 'shortId' in kwargs: + short_id = kwargs['shortId'] + if author_email is not None: _setter("author_email", author_email) if author_name is not None: @@ -1595,7 +1743,11 @@ def _configure( _setter: Callable[[Any, Any], None], description: Optional[str] = None, tag_name: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if tag_name is None and 'tagName' in kwargs: + tag_name = kwargs['tagName'] + if description is not None: _setter("description", description) if tag_name is not None: @@ -1662,7 +1814,17 @@ def _configure( access_level_description: Optional[str] = None, group_id: Optional[int] = None, user_id: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if access_level_description is None and 'accessLevelDescription' in kwargs: + access_level_description = kwargs['accessLevelDescription'] + if group_id is None and 'groupId' in kwargs: + group_id = kwargs['groupId'] + if user_id is None and 'userId' in kwargs: + user_id = kwargs['userId'] + if access_level is not None: _setter("access_level", access_level) if access_level_description is not None: @@ -1736,18 +1898,58 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - author_email: str, - author_name: str, - authored_date: str, - committed_date: str, - committer_email: str, - committer_name: str, - id: str, - message: str, - parent_ids: Sequence[str], - short_id: str, - title: str, - opts: Optional[pulumi.ResourceOptions]=None): + author_email: Optional[str] = None, + author_name: Optional[str] = None, + authored_date: Optional[str] = None, + committed_date: Optional[str] = None, + committer_email: Optional[str] = None, + committer_name: Optional[str] = None, + id: Optional[str] = None, + message: Optional[str] = None, + parent_ids: Optional[Sequence[str]] = None, + short_id: Optional[str] = None, + title: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if author_email is None and 'authorEmail' in kwargs: + author_email = kwargs['authorEmail'] + if author_email is None: + raise TypeError("Missing 'author_email' argument") + if author_name is None and 'authorName' in kwargs: + author_name = kwargs['authorName'] + if author_name is None: + raise TypeError("Missing 'author_name' argument") + if authored_date is None and 'authoredDate' in kwargs: + authored_date = kwargs['authoredDate'] + if authored_date is None: + raise TypeError("Missing 'authored_date' argument") + if committed_date is None and 'committedDate' in kwargs: + committed_date = kwargs['committedDate'] + if committed_date is None: + raise TypeError("Missing 'committed_date' argument") + if committer_email is None and 'committerEmail' in kwargs: + committer_email = kwargs['committerEmail'] + if committer_email is None: + raise TypeError("Missing 'committer_email' argument") + if committer_name is None and 'committerName' in kwargs: + committer_name = kwargs['committerName'] + if committer_name is None: + raise TypeError("Missing 'committer_name' argument") + if id is None: + raise TypeError("Missing 'id' argument") + if message is None: + raise TypeError("Missing 'message' argument") + if parent_ids is None and 'parentIds' in kwargs: + parent_ids = kwargs['parentIds'] + if parent_ids is None: + raise TypeError("Missing 'parent_ids' argument") + if short_id is None and 'shortId' in kwargs: + short_id = kwargs['shortId'] + if short_id is None: + raise TypeError("Missing 'short_id' argument") + if title is None: + raise TypeError("Missing 'title' argument") + _setter("author_email", author_email) _setter("author_name", author_name) _setter("authored_date", authored_date) @@ -1835,12 +2037,30 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - agent_id: int, - created_at: str, - created_by_user_id: int, - name: str, - project: str, - opts: Optional[pulumi.ResourceOptions]=None): + agent_id: Optional[int] = None, + created_at: Optional[str] = None, + created_by_user_id: Optional[int] = None, + name: Optional[str] = None, + project: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if agent_id is None and 'agentId' in kwargs: + agent_id = kwargs['agentId'] + if agent_id is None: + raise TypeError("Missing 'agent_id' argument") + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if created_at is None: + raise TypeError("Missing 'created_at' argument") + if created_by_user_id is None and 'createdByUserId' in kwargs: + created_by_user_id = kwargs['createdByUserId'] + if created_by_user_id is None: + raise TypeError("Missing 'created_by_user_id' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if project is None: + raise TypeError("Missing 'project' argument") + _setter("agent_id", agent_id) _setter("created_at", created_at) _setter("created_by_user_id", created_by_user_id) @@ -1922,27 +2142,103 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - confidential_issues_events: bool, - confidential_note_events: bool, - deployment_events: bool, - enable_ssl_verification: bool, - group: str, - group_id: int, - hook_id: int, - issues_events: bool, - job_events: bool, - merge_requests_events: bool, - note_events: bool, - pipeline_events: bool, - push_events: bool, - push_events_branch_filter: str, - releases_events: bool, - subgroup_events: bool, - tag_push_events: bool, - token: str, - url: str, - wiki_page_events: bool, - opts: Optional[pulumi.ResourceOptions]=None): + confidential_issues_events: Optional[bool] = None, + confidential_note_events: Optional[bool] = None, + deployment_events: Optional[bool] = None, + enable_ssl_verification: Optional[bool] = None, + group: Optional[str] = None, + group_id: Optional[int] = None, + hook_id: Optional[int] = None, + issues_events: Optional[bool] = None, + job_events: Optional[bool] = None, + merge_requests_events: Optional[bool] = None, + note_events: Optional[bool] = None, + pipeline_events: Optional[bool] = None, + push_events: Optional[bool] = None, + push_events_branch_filter: Optional[str] = None, + releases_events: Optional[bool] = None, + subgroup_events: Optional[bool] = None, + tag_push_events: Optional[bool] = None, + token: Optional[str] = None, + url: Optional[str] = None, + wiki_page_events: Optional[bool] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if confidential_issues_events is None and 'confidentialIssuesEvents' in kwargs: + confidential_issues_events = kwargs['confidentialIssuesEvents'] + if confidential_issues_events is None: + raise TypeError("Missing 'confidential_issues_events' argument") + if confidential_note_events is None and 'confidentialNoteEvents' in kwargs: + confidential_note_events = kwargs['confidentialNoteEvents'] + if confidential_note_events is None: + raise TypeError("Missing 'confidential_note_events' argument") + if deployment_events is None and 'deploymentEvents' in kwargs: + deployment_events = kwargs['deploymentEvents'] + if deployment_events is None: + raise TypeError("Missing 'deployment_events' argument") + if enable_ssl_verification is None and 'enableSslVerification' in kwargs: + enable_ssl_verification = kwargs['enableSslVerification'] + if enable_ssl_verification is None: + raise TypeError("Missing 'enable_ssl_verification' argument") + if group is None: + raise TypeError("Missing 'group' argument") + if group_id is None and 'groupId' in kwargs: + group_id = kwargs['groupId'] + if group_id is None: + raise TypeError("Missing 'group_id' argument") + if hook_id is None and 'hookId' in kwargs: + hook_id = kwargs['hookId'] + if hook_id is None: + raise TypeError("Missing 'hook_id' argument") + if issues_events is None and 'issuesEvents' in kwargs: + issues_events = kwargs['issuesEvents'] + if issues_events is None: + raise TypeError("Missing 'issues_events' argument") + if job_events is None and 'jobEvents' in kwargs: + job_events = kwargs['jobEvents'] + if job_events is None: + raise TypeError("Missing 'job_events' argument") + if merge_requests_events is None and 'mergeRequestsEvents' in kwargs: + merge_requests_events = kwargs['mergeRequestsEvents'] + if merge_requests_events is None: + raise TypeError("Missing 'merge_requests_events' argument") + if note_events is None and 'noteEvents' in kwargs: + note_events = kwargs['noteEvents'] + if note_events is None: + raise TypeError("Missing 'note_events' argument") + if pipeline_events is None and 'pipelineEvents' in kwargs: + pipeline_events = kwargs['pipelineEvents'] + if pipeline_events is None: + raise TypeError("Missing 'pipeline_events' argument") + if push_events is None and 'pushEvents' in kwargs: + push_events = kwargs['pushEvents'] + if push_events is None: + raise TypeError("Missing 'push_events' argument") + if push_events_branch_filter is None and 'pushEventsBranchFilter' in kwargs: + push_events_branch_filter = kwargs['pushEventsBranchFilter'] + if push_events_branch_filter is None: + raise TypeError("Missing 'push_events_branch_filter' argument") + if releases_events is None and 'releasesEvents' in kwargs: + releases_events = kwargs['releasesEvents'] + if releases_events is None: + raise TypeError("Missing 'releases_events' argument") + if subgroup_events is None and 'subgroupEvents' in kwargs: + subgroup_events = kwargs['subgroupEvents'] + if subgroup_events is None: + raise TypeError("Missing 'subgroup_events' argument") + if tag_push_events is None and 'tagPushEvents' in kwargs: + tag_push_events = kwargs['tagPushEvents'] + if tag_push_events is None: + raise TypeError("Missing 'tag_push_events' argument") + if token is None: + raise TypeError("Missing 'token' argument") + if url is None: + raise TypeError("Missing 'url' argument") + if wiki_page_events is None and 'wikiPageEvents' in kwargs: + wiki_page_events = kwargs['wikiPageEvents'] + if wiki_page_events is None: + raise TypeError("Missing 'wiki_page_events' argument") + _setter("confidential_issues_events", confidential_issues_events) _setter("confidential_note_events", confidential_note_events) _setter("deployment_events", deployment_events) @@ -2090,15 +2386,41 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - access_level: str, - avatar_url: str, - expires_at: str, - id: int, - name: str, - state: str, - username: str, - web_url: str, - opts: Optional[pulumi.ResourceOptions]=None): + access_level: Optional[str] = None, + avatar_url: Optional[str] = None, + expires_at: Optional[str] = None, + id: Optional[int] = None, + name: Optional[str] = None, + state: Optional[str] = None, + username: Optional[str] = None, + web_url: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if access_level is None: + raise TypeError("Missing 'access_level' argument") + if avatar_url is None and 'avatarUrl' in kwargs: + avatar_url = kwargs['avatarUrl'] + if avatar_url is None: + raise TypeError("Missing 'avatar_url' argument") + if expires_at is None and 'expiresAt' in kwargs: + expires_at = kwargs['expiresAt'] + if expires_at is None: + raise TypeError("Missing 'expires_at' argument") + if id is None: + raise TypeError("Missing 'id' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if state is None: + raise TypeError("Missing 'state' argument") + if username is None: + raise TypeError("Missing 'username' argument") + if web_url is None and 'webUrl' in kwargs: + web_url = kwargs['webUrl'] + if web_url is None: + raise TypeError("Missing 'web_url' argument") + _setter("access_level", access_level) _setter("avatar_url", avatar_url) _setter("expires_at", expires_at) @@ -2210,33 +2532,129 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - auto_devops_enabled: bool, - avatar_url: str, - created_at: str, - default_branch_protection: int, - description: str, - emails_disabled: bool, - file_template_project_id: int, - full_name: str, - full_path: str, - group_id: int, - ip_restriction_ranges: str, - lfs_enabled: bool, - mentions_disabled: bool, - name: str, - parent_id: int, - path: str, - project_creation_level: str, - request_access_enabled: bool, - require_two_factor_authentication: bool, - share_with_group_lock: bool, - statistics: Mapping[str, str], - subgroup_creation_level: str, - two_factor_grace_period: int, - visibility: str, - web_url: str, - wiki_access_level: str, - opts: Optional[pulumi.ResourceOptions]=None): + auto_devops_enabled: Optional[bool] = None, + avatar_url: Optional[str] = None, + created_at: Optional[str] = None, + default_branch_protection: Optional[int] = None, + description: Optional[str] = None, + emails_disabled: Optional[bool] = None, + file_template_project_id: Optional[int] = None, + full_name: Optional[str] = None, + full_path: Optional[str] = None, + group_id: Optional[int] = None, + ip_restriction_ranges: Optional[str] = None, + lfs_enabled: Optional[bool] = None, + mentions_disabled: Optional[bool] = None, + name: Optional[str] = None, + parent_id: Optional[int] = None, + path: Optional[str] = None, + project_creation_level: Optional[str] = None, + request_access_enabled: Optional[bool] = None, + require_two_factor_authentication: Optional[bool] = None, + share_with_group_lock: Optional[bool] = None, + statistics: Optional[Mapping[str, str]] = None, + subgroup_creation_level: Optional[str] = None, + two_factor_grace_period: Optional[int] = None, + visibility: Optional[str] = None, + web_url: Optional[str] = None, + wiki_access_level: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if auto_devops_enabled is None and 'autoDevopsEnabled' in kwargs: + auto_devops_enabled = kwargs['autoDevopsEnabled'] + if auto_devops_enabled is None: + raise TypeError("Missing 'auto_devops_enabled' argument") + if avatar_url is None and 'avatarUrl' in kwargs: + avatar_url = kwargs['avatarUrl'] + if avatar_url is None: + raise TypeError("Missing 'avatar_url' argument") + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if created_at is None: + raise TypeError("Missing 'created_at' argument") + if default_branch_protection is None and 'defaultBranchProtection' in kwargs: + default_branch_protection = kwargs['defaultBranchProtection'] + if default_branch_protection is None: + raise TypeError("Missing 'default_branch_protection' argument") + if description is None: + raise TypeError("Missing 'description' argument") + if emails_disabled is None and 'emailsDisabled' in kwargs: + emails_disabled = kwargs['emailsDisabled'] + if emails_disabled is None: + raise TypeError("Missing 'emails_disabled' argument") + if file_template_project_id is None and 'fileTemplateProjectId' in kwargs: + file_template_project_id = kwargs['fileTemplateProjectId'] + if file_template_project_id is None: + raise TypeError("Missing 'file_template_project_id' argument") + if full_name is None and 'fullName' in kwargs: + full_name = kwargs['fullName'] + if full_name is None: + raise TypeError("Missing 'full_name' argument") + if full_path is None and 'fullPath' in kwargs: + full_path = kwargs['fullPath'] + if full_path is None: + raise TypeError("Missing 'full_path' argument") + if group_id is None and 'groupId' in kwargs: + group_id = kwargs['groupId'] + if group_id is None: + raise TypeError("Missing 'group_id' argument") + if ip_restriction_ranges is None and 'ipRestrictionRanges' in kwargs: + ip_restriction_ranges = kwargs['ipRestrictionRanges'] + if ip_restriction_ranges is None: + raise TypeError("Missing 'ip_restriction_ranges' argument") + if lfs_enabled is None and 'lfsEnabled' in kwargs: + lfs_enabled = kwargs['lfsEnabled'] + if lfs_enabled is None: + raise TypeError("Missing 'lfs_enabled' argument") + if mentions_disabled is None and 'mentionsDisabled' in kwargs: + mentions_disabled = kwargs['mentionsDisabled'] + if mentions_disabled is None: + raise TypeError("Missing 'mentions_disabled' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if parent_id is None and 'parentId' in kwargs: + parent_id = kwargs['parentId'] + if parent_id is None: + raise TypeError("Missing 'parent_id' argument") + if path is None: + raise TypeError("Missing 'path' argument") + if project_creation_level is None and 'projectCreationLevel' in kwargs: + project_creation_level = kwargs['projectCreationLevel'] + if project_creation_level is None: + raise TypeError("Missing 'project_creation_level' argument") + if request_access_enabled is None and 'requestAccessEnabled' in kwargs: + request_access_enabled = kwargs['requestAccessEnabled'] + if request_access_enabled is None: + raise TypeError("Missing 'request_access_enabled' argument") + if require_two_factor_authentication is None and 'requireTwoFactorAuthentication' in kwargs: + require_two_factor_authentication = kwargs['requireTwoFactorAuthentication'] + if require_two_factor_authentication is None: + raise TypeError("Missing 'require_two_factor_authentication' argument") + if share_with_group_lock is None and 'shareWithGroupLock' in kwargs: + share_with_group_lock = kwargs['shareWithGroupLock'] + if share_with_group_lock is None: + raise TypeError("Missing 'share_with_group_lock' argument") + if statistics is None: + raise TypeError("Missing 'statistics' argument") + if subgroup_creation_level is None and 'subgroupCreationLevel' in kwargs: + subgroup_creation_level = kwargs['subgroupCreationLevel'] + if subgroup_creation_level is None: + raise TypeError("Missing 'subgroup_creation_level' argument") + if two_factor_grace_period is None and 'twoFactorGracePeriod' in kwargs: + two_factor_grace_period = kwargs['twoFactorGracePeriod'] + if two_factor_grace_period is None: + raise TypeError("Missing 'two_factor_grace_period' argument") + if visibility is None: + raise TypeError("Missing 'visibility' argument") + if web_url is None and 'webUrl' in kwargs: + web_url = kwargs['webUrl'] + if web_url is None: + raise TypeError("Missing 'web_url' argument") + if wiki_access_level is None and 'wikiAccessLevel' in kwargs: + wiki_access_level = kwargs['wikiAccessLevel'] + if wiki_access_level is None: + raise TypeError("Missing 'wiki_access_level' argument") + _setter("auto_devops_enabled", auto_devops_enabled) _setter("avatar_url", avatar_url) _setter("created_at", created_at) @@ -2420,15 +2838,37 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - environment_scope: str, - group: str, - key: str, - masked: bool, - protected: bool, - raw: bool, - value: str, - variable_type: str, - opts: Optional[pulumi.ResourceOptions]=None): + environment_scope: Optional[str] = None, + group: Optional[str] = None, + key: Optional[str] = None, + masked: Optional[bool] = None, + protected: Optional[bool] = None, + raw: Optional[bool] = None, + value: Optional[str] = None, + variable_type: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if environment_scope is None and 'environmentScope' in kwargs: + environment_scope = kwargs['environmentScope'] + if environment_scope is None: + raise TypeError("Missing 'environment_scope' argument") + if group is None: + raise TypeError("Missing 'group' argument") + if key is None: + raise TypeError("Missing 'key' argument") + if masked is None: + raise TypeError("Missing 'masked' argument") + if protected is None: + raise TypeError("Missing 'protected' argument") + if raw is None: + raise TypeError("Missing 'raw' argument") + if value is None: + raise TypeError("Missing 'value' argument") + if variable_type is None and 'variableType' in kwargs: + variable_type = kwargs['variableType'] + if variable_type is None: + raise TypeError("Missing 'variable_type' argument") + _setter("environment_scope", environment_scope) _setter("group", group) _setter("key", key) @@ -2518,22 +2958,78 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - default_branch_protection: int, - description: str, - full_name: str, - full_path: str, - group_id: int, - lfs_enabled: bool, - name: str, - parent_id: int, - path: str, - prevent_forking_outside_group: bool, - request_access_enabled: bool, - runners_token: str, - visibility_level: str, - web_url: str, - wiki_access_level: str, - opts: Optional[pulumi.ResourceOptions]=None): + default_branch_protection: Optional[int] = None, + description: Optional[str] = None, + full_name: Optional[str] = None, + full_path: Optional[str] = None, + group_id: Optional[int] = None, + lfs_enabled: Optional[bool] = None, + name: Optional[str] = None, + parent_id: Optional[int] = None, + path: Optional[str] = None, + prevent_forking_outside_group: Optional[bool] = None, + request_access_enabled: Optional[bool] = None, + runners_token: Optional[str] = None, + visibility_level: Optional[str] = None, + web_url: Optional[str] = None, + wiki_access_level: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if default_branch_protection is None and 'defaultBranchProtection' in kwargs: + default_branch_protection = kwargs['defaultBranchProtection'] + if default_branch_protection is None: + raise TypeError("Missing 'default_branch_protection' argument") + if description is None: + raise TypeError("Missing 'description' argument") + if full_name is None and 'fullName' in kwargs: + full_name = kwargs['fullName'] + if full_name is None: + raise TypeError("Missing 'full_name' argument") + if full_path is None and 'fullPath' in kwargs: + full_path = kwargs['fullPath'] + if full_path is None: + raise TypeError("Missing 'full_path' argument") + if group_id is None and 'groupId' in kwargs: + group_id = kwargs['groupId'] + if group_id is None: + raise TypeError("Missing 'group_id' argument") + if lfs_enabled is None and 'lfsEnabled' in kwargs: + lfs_enabled = kwargs['lfsEnabled'] + if lfs_enabled is None: + raise TypeError("Missing 'lfs_enabled' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if parent_id is None and 'parentId' in kwargs: + parent_id = kwargs['parentId'] + if parent_id is None: + raise TypeError("Missing 'parent_id' argument") + if path is None: + raise TypeError("Missing 'path' argument") + if prevent_forking_outside_group is None and 'preventForkingOutsideGroup' in kwargs: + prevent_forking_outside_group = kwargs['preventForkingOutsideGroup'] + if prevent_forking_outside_group is None: + raise TypeError("Missing 'prevent_forking_outside_group' argument") + if request_access_enabled is None and 'requestAccessEnabled' in kwargs: + request_access_enabled = kwargs['requestAccessEnabled'] + if request_access_enabled is None: + raise TypeError("Missing 'request_access_enabled' argument") + if runners_token is None and 'runnersToken' in kwargs: + runners_token = kwargs['runnersToken'] + if runners_token is None: + raise TypeError("Missing 'runners_token' argument") + if visibility_level is None and 'visibilityLevel' in kwargs: + visibility_level = kwargs['visibilityLevel'] + if visibility_level is None: + raise TypeError("Missing 'visibility_level' argument") + if web_url is None and 'webUrl' in kwargs: + web_url = kwargs['webUrl'] + if web_url is None: + raise TypeError("Missing 'web_url' argument") + if wiki_access_level is None and 'wikiAccessLevel' in kwargs: + wiki_access_level = kwargs['wikiAccessLevel'] + if wiki_access_level is None: + raise TypeError("Missing 'wiki_access_level' argument") + _setter("default_branch_protection", default_branch_protection) _setter("description", description) _setter("full_name", full_name) @@ -2647,13 +3143,31 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - created_at: str, - fingerprint: str, - id: int, - key: str, - projects_with_write_accesses: Sequence['outputs.GetInstanceDeployKeysDeployKeyProjectsWithWriteAccessResult'], - title: str, - opts: Optional[pulumi.ResourceOptions]=None): + created_at: Optional[str] = None, + fingerprint: Optional[str] = None, + id: Optional[int] = None, + key: Optional[str] = None, + projects_with_write_accesses: Optional[Sequence['outputs.GetInstanceDeployKeysDeployKeyProjectsWithWriteAccessResult']] = None, + title: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if created_at is None: + raise TypeError("Missing 'created_at' argument") + if fingerprint is None: + raise TypeError("Missing 'fingerprint' argument") + if id is None: + raise TypeError("Missing 'id' argument") + if key is None: + raise TypeError("Missing 'key' argument") + if projects_with_write_accesses is None and 'projectsWithWriteAccesses' in kwargs: + projects_with_write_accesses = kwargs['projectsWithWriteAccesses'] + if projects_with_write_accesses is None: + raise TypeError("Missing 'projects_with_write_accesses' argument") + if title is None: + raise TypeError("Missing 'title' argument") + _setter("created_at", created_at) _setter("fingerprint", fingerprint) _setter("id", id) @@ -2715,14 +3229,36 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - created_at: str, - description: str, - id: int, - name: str, - name_with_namespace: str, - path: str, - path_with_namespace: str, - opts: Optional[pulumi.ResourceOptions]=None): + created_at: Optional[str] = None, + description: Optional[str] = None, + id: Optional[int] = None, + name: Optional[str] = None, + name_with_namespace: Optional[str] = None, + path: Optional[str] = None, + path_with_namespace: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if created_at is None: + raise TypeError("Missing 'created_at' argument") + if description is None: + raise TypeError("Missing 'description' argument") + if id is None: + raise TypeError("Missing 'id' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if name_with_namespace is None and 'nameWithNamespace' in kwargs: + name_with_namespace = kwargs['nameWithNamespace'] + if name_with_namespace is None: + raise TypeError("Missing 'name_with_namespace' argument") + if path is None: + raise TypeError("Missing 'path' argument") + if path_with_namespace is None and 'pathWithNamespace' in kwargs: + path_with_namespace = kwargs['pathWithNamespace'] + if path_with_namespace is None: + raise TypeError("Missing 'path_with_namespace' argument") + _setter("created_at", created_at) _setter("description", description) _setter("id", id) @@ -2788,13 +3324,29 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - key: str, - masked: bool, - protected: bool, - raw: bool, - value: str, - variable_type: str, - opts: Optional[pulumi.ResourceOptions]=None): + key: Optional[str] = None, + masked: Optional[bool] = None, + protected: Optional[bool] = None, + raw: Optional[bool] = None, + value: Optional[str] = None, + variable_type: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if key is None: + raise TypeError("Missing 'key' argument") + if masked is None: + raise TypeError("Missing 'masked' argument") + if protected is None: + raise TypeError("Missing 'protected' argument") + if raw is None: + raise TypeError("Missing 'raw' argument") + if value is None: + raise TypeError("Missing 'value' argument") + if variable_type is None and 'variableType' in kwargs: + variable_type = kwargs['variableType'] + if variable_type is None: + raise TypeError("Missing 'variable_type' argument") + _setter("key", key) _setter("masked", masked) _setter("protected", protected) @@ -2853,10 +3405,20 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - enabled: bool, - external_url: str, - version: str, - opts: Optional[pulumi.ResourceOptions]=None): + enabled: Optional[bool] = None, + external_url: Optional[str] = None, + version: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if enabled is None: + raise TypeError("Missing 'enabled' argument") + if external_url is None and 'externalUrl' in kwargs: + external_url = kwargs['externalUrl'] + if external_url is None: + raise TypeError("Missing 'external_url' argument") + if version is None: + raise TypeError("Missing 'version' argument") + _setter("enabled", enabled) _setter("external_url", external_url) _setter("version", version) @@ -2913,16 +3475,44 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - can_push: bool, - commits: Sequence['outputs.GetProjectBranchesBranchCommitResult'], - default: bool, - developers_can_merge: bool, - developers_can_push: bool, - merged: bool, - name: str, - protected: bool, - web_url: str, - opts: Optional[pulumi.ResourceOptions]=None): + can_push: Optional[bool] = None, + commits: Optional[Sequence['outputs.GetProjectBranchesBranchCommitResult']] = None, + default: Optional[bool] = None, + developers_can_merge: Optional[bool] = None, + developers_can_push: Optional[bool] = None, + merged: Optional[bool] = None, + name: Optional[str] = None, + protected: Optional[bool] = None, + web_url: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if can_push is None and 'canPush' in kwargs: + can_push = kwargs['canPush'] + if can_push is None: + raise TypeError("Missing 'can_push' argument") + if commits is None: + raise TypeError("Missing 'commits' argument") + if default is None: + raise TypeError("Missing 'default' argument") + if developers_can_merge is None and 'developersCanMerge' in kwargs: + developers_can_merge = kwargs['developersCanMerge'] + if developers_can_merge is None: + raise TypeError("Missing 'developers_can_merge' argument") + if developers_can_push is None and 'developersCanPush' in kwargs: + developers_can_push = kwargs['developersCanPush'] + if developers_can_push is None: + raise TypeError("Missing 'developers_can_push' argument") + if merged is None: + raise TypeError("Missing 'merged' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if protected is None: + raise TypeError("Missing 'protected' argument") + if web_url is None and 'webUrl' in kwargs: + web_url = kwargs['webUrl'] + if web_url is None: + raise TypeError("Missing 'web_url' argument") + _setter("can_push", can_push) _setter("commits", commits) _setter("default", default) @@ -3010,18 +3600,58 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - author_email: str, - author_name: str, - authored_date: str, - committed_date: str, - committer_email: str, - committer_name: str, - id: str, - message: str, - parent_ids: Sequence[str], - short_id: str, - title: str, - opts: Optional[pulumi.ResourceOptions]=None): + author_email: Optional[str] = None, + author_name: Optional[str] = None, + authored_date: Optional[str] = None, + committed_date: Optional[str] = None, + committer_email: Optional[str] = None, + committer_name: Optional[str] = None, + id: Optional[str] = None, + message: Optional[str] = None, + parent_ids: Optional[Sequence[str]] = None, + short_id: Optional[str] = None, + title: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if author_email is None and 'authorEmail' in kwargs: + author_email = kwargs['authorEmail'] + if author_email is None: + raise TypeError("Missing 'author_email' argument") + if author_name is None and 'authorName' in kwargs: + author_name = kwargs['authorName'] + if author_name is None: + raise TypeError("Missing 'author_name' argument") + if authored_date is None and 'authoredDate' in kwargs: + authored_date = kwargs['authoredDate'] + if authored_date is None: + raise TypeError("Missing 'authored_date' argument") + if committed_date is None and 'committedDate' in kwargs: + committed_date = kwargs['committedDate'] + if committed_date is None: + raise TypeError("Missing 'committed_date' argument") + if committer_email is None and 'committerEmail' in kwargs: + committer_email = kwargs['committerEmail'] + if committer_email is None: + raise TypeError("Missing 'committer_email' argument") + if committer_name is None and 'committerName' in kwargs: + committer_name = kwargs['committerName'] + if committer_name is None: + raise TypeError("Missing 'committer_name' argument") + if id is None: + raise TypeError("Missing 'id' argument") + if message is None: + raise TypeError("Missing 'message' argument") + if parent_ids is None and 'parentIds' in kwargs: + parent_ids = kwargs['parentIds'] + if parent_ids is None: + raise TypeError("Missing 'parent_ids' argument") + if short_id is None and 'shortId' in kwargs: + short_id = kwargs['shortId'] + if short_id is None: + raise TypeError("Missing 'short_id' argument") + if title is None: + raise TypeError("Missing 'title' argument") + _setter("author_email", author_email) _setter("author_name", author_name) _setter("authored_date", authored_date) @@ -3115,15 +3745,45 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - cadence: str, - enabled: bool, - keep_n: int, - name_regex: str, - name_regex_delete: str, - name_regex_keep: str, - next_run_at: str, - older_than: str, - opts: Optional[pulumi.ResourceOptions]=None): + cadence: Optional[str] = None, + enabled: Optional[bool] = None, + keep_n: Optional[int] = None, + name_regex: Optional[str] = None, + name_regex_delete: Optional[str] = None, + name_regex_keep: Optional[str] = None, + next_run_at: Optional[str] = None, + older_than: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if cadence is None: + raise TypeError("Missing 'cadence' argument") + if enabled is None: + raise TypeError("Missing 'enabled' argument") + if keep_n is None and 'keepN' in kwargs: + keep_n = kwargs['keepN'] + if keep_n is None: + raise TypeError("Missing 'keep_n' argument") + if name_regex is None and 'nameRegex' in kwargs: + name_regex = kwargs['nameRegex'] + if name_regex is None: + raise TypeError("Missing 'name_regex' argument") + if name_regex_delete is None and 'nameRegexDelete' in kwargs: + name_regex_delete = kwargs['nameRegexDelete'] + if name_regex_delete is None: + raise TypeError("Missing 'name_regex_delete' argument") + if name_regex_keep is None and 'nameRegexKeep' in kwargs: + name_regex_keep = kwargs['nameRegexKeep'] + if name_regex_keep is None: + raise TypeError("Missing 'name_regex_keep' argument") + if next_run_at is None and 'nextRunAt' in kwargs: + next_run_at = kwargs['nextRunAt'] + if next_run_at is None: + raise TypeError("Missing 'next_run_at' argument") + if older_than is None and 'olderThan' in kwargs: + older_than = kwargs['olderThan'] + if older_than is None: + raise TypeError("Missing 'older_than' argument") + _setter("cadence", cadence) _setter("enabled", enabled) _setter("keep_n", keep_n) @@ -3224,26 +3884,98 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - confidential_issues_events: bool, - confidential_note_events: bool, - deployment_events: bool, - enable_ssl_verification: bool, - hook_id: int, - issues_events: bool, - job_events: bool, - merge_requests_events: bool, - note_events: bool, - pipeline_events: bool, - project: str, - project_id: int, - push_events: bool, - push_events_branch_filter: str, - releases_events: bool, - tag_push_events: bool, - token: str, - url: str, - wiki_page_events: bool, - opts: Optional[pulumi.ResourceOptions]=None): + confidential_issues_events: Optional[bool] = None, + confidential_note_events: Optional[bool] = None, + deployment_events: Optional[bool] = None, + enable_ssl_verification: Optional[bool] = None, + hook_id: Optional[int] = None, + issues_events: Optional[bool] = None, + job_events: Optional[bool] = None, + merge_requests_events: Optional[bool] = None, + note_events: Optional[bool] = None, + pipeline_events: Optional[bool] = None, + project: Optional[str] = None, + project_id: Optional[int] = None, + push_events: Optional[bool] = None, + push_events_branch_filter: Optional[str] = None, + releases_events: Optional[bool] = None, + tag_push_events: Optional[bool] = None, + token: Optional[str] = None, + url: Optional[str] = None, + wiki_page_events: Optional[bool] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if confidential_issues_events is None and 'confidentialIssuesEvents' in kwargs: + confidential_issues_events = kwargs['confidentialIssuesEvents'] + if confidential_issues_events is None: + raise TypeError("Missing 'confidential_issues_events' argument") + if confidential_note_events is None and 'confidentialNoteEvents' in kwargs: + confidential_note_events = kwargs['confidentialNoteEvents'] + if confidential_note_events is None: + raise TypeError("Missing 'confidential_note_events' argument") + if deployment_events is None and 'deploymentEvents' in kwargs: + deployment_events = kwargs['deploymentEvents'] + if deployment_events is None: + raise TypeError("Missing 'deployment_events' argument") + if enable_ssl_verification is None and 'enableSslVerification' in kwargs: + enable_ssl_verification = kwargs['enableSslVerification'] + if enable_ssl_verification is None: + raise TypeError("Missing 'enable_ssl_verification' argument") + if hook_id is None and 'hookId' in kwargs: + hook_id = kwargs['hookId'] + if hook_id is None: + raise TypeError("Missing 'hook_id' argument") + if issues_events is None and 'issuesEvents' in kwargs: + issues_events = kwargs['issuesEvents'] + if issues_events is None: + raise TypeError("Missing 'issues_events' argument") + if job_events is None and 'jobEvents' in kwargs: + job_events = kwargs['jobEvents'] + if job_events is None: + raise TypeError("Missing 'job_events' argument") + if merge_requests_events is None and 'mergeRequestsEvents' in kwargs: + merge_requests_events = kwargs['mergeRequestsEvents'] + if merge_requests_events is None: + raise TypeError("Missing 'merge_requests_events' argument") + if note_events is None and 'noteEvents' in kwargs: + note_events = kwargs['noteEvents'] + if note_events is None: + raise TypeError("Missing 'note_events' argument") + if pipeline_events is None and 'pipelineEvents' in kwargs: + pipeline_events = kwargs['pipelineEvents'] + if pipeline_events is None: + raise TypeError("Missing 'pipeline_events' argument") + if project is None: + raise TypeError("Missing 'project' argument") + if project_id is None and 'projectId' in kwargs: + project_id = kwargs['projectId'] + if project_id is None: + raise TypeError("Missing 'project_id' argument") + if push_events is None and 'pushEvents' in kwargs: + push_events = kwargs['pushEvents'] + if push_events is None: + raise TypeError("Missing 'push_events' argument") + if push_events_branch_filter is None and 'pushEventsBranchFilter' in kwargs: + push_events_branch_filter = kwargs['pushEventsBranchFilter'] + if push_events_branch_filter is None: + raise TypeError("Missing 'push_events_branch_filter' argument") + if releases_events is None and 'releasesEvents' in kwargs: + releases_events = kwargs['releasesEvents'] + if releases_events is None: + raise TypeError("Missing 'releases_events' argument") + if tag_push_events is None and 'tagPushEvents' in kwargs: + tag_push_events = kwargs['tagPushEvents'] + if tag_push_events is None: + raise TypeError("Missing 'tag_push_events' argument") + if token is None: + raise TypeError("Missing 'token' argument") + if url is None: + raise TypeError("Missing 'url' argument") + if wiki_page_events is None and 'wikiPageEvents' in kwargs: + wiki_page_events = kwargs['wikiPageEvents'] + if wiki_page_events is None: + raise TypeError("Missing 'wiki_page_events' argument") + _setter("confidential_issues_events", confidential_issues_events) _setter("confidential_note_events", confidential_note_events) _setter("deployment_events", deployment_events) @@ -3373,9 +4105,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - completed_count: int, - count: int, - opts: Optional[pulumi.ResourceOptions]=None): + completed_count: Optional[int] = None, + count: Optional[int] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if completed_count is None and 'completedCount' in kwargs: + completed_count = kwargs['completedCount'] + if completed_count is None: + raise TypeError("Missing 'completed_count' argument") + if count is None: + raise TypeError("Missing 'count' argument") + _setter("completed_count", completed_count) _setter("count", count) @@ -3477,46 +4217,178 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - assignee_ids: Sequence[int], - author_id: int, - closed_at: str, - closed_by_user_id: int, - confidential: bool, - created_at: str, - description: str, - discussion_locked: bool, - discussion_to_resolve: str, - downvotes: int, - due_date: str, - epic_id: int, - epic_issue_id: int, - external_id: str, - human_time_estimate: str, - human_total_time_spent: str, - iid: int, - issue_id: int, - issue_link_id: int, - issue_type: str, - labels: Sequence[str], - links: Mapping[str, str], - merge_request_to_resolve_discussions_of: int, - merge_requests_count: int, - milestone_id: int, - moved_to_id: int, - project: str, - references: Mapping[str, str], - state: str, - subscribed: bool, - task_completion_statuses: Sequence['outputs.GetProjectIssuesIssueTaskCompletionStatusResult'], - time_estimate: int, - title: str, - total_time_spent: int, - updated_at: str, - upvotes: int, - user_notes_count: int, - web_url: str, - weight: int, - opts: Optional[pulumi.ResourceOptions]=None): + assignee_ids: Optional[Sequence[int]] = None, + author_id: Optional[int] = None, + closed_at: Optional[str] = None, + closed_by_user_id: Optional[int] = None, + confidential: Optional[bool] = None, + created_at: Optional[str] = None, + description: Optional[str] = None, + discussion_locked: Optional[bool] = None, + discussion_to_resolve: Optional[str] = None, + downvotes: Optional[int] = None, + due_date: Optional[str] = None, + epic_id: Optional[int] = None, + epic_issue_id: Optional[int] = None, + external_id: Optional[str] = None, + human_time_estimate: Optional[str] = None, + human_total_time_spent: Optional[str] = None, + iid: Optional[int] = None, + issue_id: Optional[int] = None, + issue_link_id: Optional[int] = None, + issue_type: Optional[str] = None, + labels: Optional[Sequence[str]] = None, + links: Optional[Mapping[str, str]] = None, + merge_request_to_resolve_discussions_of: Optional[int] = None, + merge_requests_count: Optional[int] = None, + milestone_id: Optional[int] = None, + moved_to_id: Optional[int] = None, + project: Optional[str] = None, + references: Optional[Mapping[str, str]] = None, + state: Optional[str] = None, + subscribed: Optional[bool] = None, + task_completion_statuses: Optional[Sequence['outputs.GetProjectIssuesIssueTaskCompletionStatusResult']] = None, + time_estimate: Optional[int] = None, + title: Optional[str] = None, + total_time_spent: Optional[int] = None, + updated_at: Optional[str] = None, + upvotes: Optional[int] = None, + user_notes_count: Optional[int] = None, + web_url: Optional[str] = None, + weight: Optional[int] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if assignee_ids is None and 'assigneeIds' in kwargs: + assignee_ids = kwargs['assigneeIds'] + if assignee_ids is None: + raise TypeError("Missing 'assignee_ids' argument") + if author_id is None and 'authorId' in kwargs: + author_id = kwargs['authorId'] + if author_id is None: + raise TypeError("Missing 'author_id' argument") + if closed_at is None and 'closedAt' in kwargs: + closed_at = kwargs['closedAt'] + if closed_at is None: + raise TypeError("Missing 'closed_at' argument") + if closed_by_user_id is None and 'closedByUserId' in kwargs: + closed_by_user_id = kwargs['closedByUserId'] + if closed_by_user_id is None: + raise TypeError("Missing 'closed_by_user_id' argument") + if confidential is None: + raise TypeError("Missing 'confidential' argument") + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if created_at is None: + raise TypeError("Missing 'created_at' argument") + if description is None: + raise TypeError("Missing 'description' argument") + if discussion_locked is None and 'discussionLocked' in kwargs: + discussion_locked = kwargs['discussionLocked'] + if discussion_locked is None: + raise TypeError("Missing 'discussion_locked' argument") + if discussion_to_resolve is None and 'discussionToResolve' in kwargs: + discussion_to_resolve = kwargs['discussionToResolve'] + if discussion_to_resolve is None: + raise TypeError("Missing 'discussion_to_resolve' argument") + if downvotes is None: + raise TypeError("Missing 'downvotes' argument") + if due_date is None and 'dueDate' in kwargs: + due_date = kwargs['dueDate'] + if due_date is None: + raise TypeError("Missing 'due_date' argument") + if epic_id is None and 'epicId' in kwargs: + epic_id = kwargs['epicId'] + if epic_id is None: + raise TypeError("Missing 'epic_id' argument") + if epic_issue_id is None and 'epicIssueId' in kwargs: + epic_issue_id = kwargs['epicIssueId'] + if epic_issue_id is None: + raise TypeError("Missing 'epic_issue_id' argument") + if external_id is None and 'externalId' in kwargs: + external_id = kwargs['externalId'] + if external_id is None: + raise TypeError("Missing 'external_id' argument") + if human_time_estimate is None and 'humanTimeEstimate' in kwargs: + human_time_estimate = kwargs['humanTimeEstimate'] + if human_time_estimate is None: + raise TypeError("Missing 'human_time_estimate' argument") + if human_total_time_spent is None and 'humanTotalTimeSpent' in kwargs: + human_total_time_spent = kwargs['humanTotalTimeSpent'] + if human_total_time_spent is None: + raise TypeError("Missing 'human_total_time_spent' argument") + if iid is None: + raise TypeError("Missing 'iid' argument") + if issue_id is None and 'issueId' in kwargs: + issue_id = kwargs['issueId'] + if issue_id is None: + raise TypeError("Missing 'issue_id' argument") + if issue_link_id is None and 'issueLinkId' in kwargs: + issue_link_id = kwargs['issueLinkId'] + if issue_link_id is None: + raise TypeError("Missing 'issue_link_id' argument") + if issue_type is None and 'issueType' in kwargs: + issue_type = kwargs['issueType'] + if issue_type is None: + raise TypeError("Missing 'issue_type' argument") + if labels is None: + raise TypeError("Missing 'labels' argument") + if links is None: + raise TypeError("Missing 'links' argument") + if merge_request_to_resolve_discussions_of is None and 'mergeRequestToResolveDiscussionsOf' in kwargs: + merge_request_to_resolve_discussions_of = kwargs['mergeRequestToResolveDiscussionsOf'] + if merge_request_to_resolve_discussions_of is None: + raise TypeError("Missing 'merge_request_to_resolve_discussions_of' argument") + if merge_requests_count is None and 'mergeRequestsCount' in kwargs: + merge_requests_count = kwargs['mergeRequestsCount'] + if merge_requests_count is None: + raise TypeError("Missing 'merge_requests_count' argument") + if milestone_id is None and 'milestoneId' in kwargs: + milestone_id = kwargs['milestoneId'] + if milestone_id is None: + raise TypeError("Missing 'milestone_id' argument") + if moved_to_id is None and 'movedToId' in kwargs: + moved_to_id = kwargs['movedToId'] + if moved_to_id is None: + raise TypeError("Missing 'moved_to_id' argument") + if project is None: + raise TypeError("Missing 'project' argument") + if references is None: + raise TypeError("Missing 'references' argument") + if state is None: + raise TypeError("Missing 'state' argument") + if subscribed is None: + raise TypeError("Missing 'subscribed' argument") + if task_completion_statuses is None and 'taskCompletionStatuses' in kwargs: + task_completion_statuses = kwargs['taskCompletionStatuses'] + if task_completion_statuses is None: + raise TypeError("Missing 'task_completion_statuses' argument") + if time_estimate is None and 'timeEstimate' in kwargs: + time_estimate = kwargs['timeEstimate'] + if time_estimate is None: + raise TypeError("Missing 'time_estimate' argument") + if title is None: + raise TypeError("Missing 'title' argument") + if total_time_spent is None and 'totalTimeSpent' in kwargs: + total_time_spent = kwargs['totalTimeSpent'] + if total_time_spent is None: + raise TypeError("Missing 'total_time_spent' argument") + if updated_at is None and 'updatedAt' in kwargs: + updated_at = kwargs['updatedAt'] + if updated_at is None: + raise TypeError("Missing 'updated_at' argument") + if upvotes is None: + raise TypeError("Missing 'upvotes' argument") + if user_notes_count is None and 'userNotesCount' in kwargs: + user_notes_count = kwargs['userNotesCount'] + if user_notes_count is None: + raise TypeError("Missing 'user_notes_count' argument") + if web_url is None and 'webUrl' in kwargs: + web_url = kwargs['webUrl'] + if web_url is None: + raise TypeError("Missing 'web_url' argument") + if weight is None: + raise TypeError("Missing 'weight' argument") + _setter("assignee_ids", assignee_ids) _setter("author_id", author_id) _setter("closed_at", closed_at) @@ -3766,9 +4638,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - completed_count: int, - count: int, - opts: Optional[pulumi.ResourceOptions]=None): + completed_count: Optional[int] = None, + count: Optional[int] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if completed_count is None and 'completedCount' in kwargs: + completed_count = kwargs['completedCount'] + if completed_count is None: + raise TypeError("Missing 'completed_count' argument") + if count is None: + raise TypeError("Missing 'count' argument") + _setter("completed_count", completed_count) _setter("count", count) @@ -3808,15 +4688,41 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - access_level: str, - avatar_url: str, - expires_at: str, - id: int, - name: str, - state: str, - username: str, - web_url: str, - opts: Optional[pulumi.ResourceOptions]=None): + access_level: Optional[str] = None, + avatar_url: Optional[str] = None, + expires_at: Optional[str] = None, + id: Optional[int] = None, + name: Optional[str] = None, + state: Optional[str] = None, + username: Optional[str] = None, + web_url: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if access_level is None: + raise TypeError("Missing 'access_level' argument") + if avatar_url is None and 'avatarUrl' in kwargs: + avatar_url = kwargs['avatarUrl'] + if avatar_url is None: + raise TypeError("Missing 'avatar_url' argument") + if expires_at is None and 'expiresAt' in kwargs: + expires_at = kwargs['expiresAt'] + if expires_at is None: + raise TypeError("Missing 'expires_at' argument") + if id is None: + raise TypeError("Missing 'id' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if state is None: + raise TypeError("Missing 'state' argument") + if username is None: + raise TypeError("Missing 'username' argument") + if web_url is None and 'webUrl' in kwargs: + web_url = kwargs['webUrl'] + if web_url is None: + raise TypeError("Missing 'web_url' argument") + _setter("access_level", access_level) _setter("avatar_url", avatar_url) _setter("expires_at", expires_at) @@ -3902,20 +4808,62 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - created_at: str, - description: str, - due_date: str, - expired: bool, - iid: int, - milestone_id: int, - project: str, - project_id: int, - start_date: str, - state: str, - title: str, - updated_at: str, - web_url: str, - opts: Optional[pulumi.ResourceOptions]=None): + created_at: Optional[str] = None, + description: Optional[str] = None, + due_date: Optional[str] = None, + expired: Optional[bool] = None, + iid: Optional[int] = None, + milestone_id: Optional[int] = None, + project: Optional[str] = None, + project_id: Optional[int] = None, + start_date: Optional[str] = None, + state: Optional[str] = None, + title: Optional[str] = None, + updated_at: Optional[str] = None, + web_url: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if created_at is None: + raise TypeError("Missing 'created_at' argument") + if description is None: + raise TypeError("Missing 'description' argument") + if due_date is None and 'dueDate' in kwargs: + due_date = kwargs['dueDate'] + if due_date is None: + raise TypeError("Missing 'due_date' argument") + if expired is None: + raise TypeError("Missing 'expired' argument") + if iid is None: + raise TypeError("Missing 'iid' argument") + if milestone_id is None and 'milestoneId' in kwargs: + milestone_id = kwargs['milestoneId'] + if milestone_id is None: + raise TypeError("Missing 'milestone_id' argument") + if project is None: + raise TypeError("Missing 'project' argument") + if project_id is None and 'projectId' in kwargs: + project_id = kwargs['projectId'] + if project_id is None: + raise TypeError("Missing 'project_id' argument") + if start_date is None and 'startDate' in kwargs: + start_date = kwargs['startDate'] + if start_date is None: + raise TypeError("Missing 'start_date' argument") + if state is None: + raise TypeError("Missing 'state' argument") + if title is None: + raise TypeError("Missing 'title' argument") + if updated_at is None and 'updatedAt' in kwargs: + updated_at = kwargs['updatedAt'] + if updated_at is None: + raise TypeError("Missing 'updated_at' argument") + if web_url is None and 'webUrl' in kwargs: + web_url = kwargs['webUrl'] + if web_url is None: + raise TypeError("Missing 'web_url' argument") + _setter("created_at", created_at) _setter("description", description) _setter("due_date", due_date) @@ -4013,11 +4961,29 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - access_level: str, - access_level_description: str, - group_id: int, - user_id: int, - opts: Optional[pulumi.ResourceOptions]=None): + access_level: Optional[str] = None, + access_level_description: Optional[str] = None, + group_id: Optional[int] = None, + user_id: Optional[int] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if access_level is None: + raise TypeError("Missing 'access_level' argument") + if access_level_description is None and 'accessLevelDescription' in kwargs: + access_level_description = kwargs['accessLevelDescription'] + if access_level_description is None: + raise TypeError("Missing 'access_level_description' argument") + if group_id is None and 'groupId' in kwargs: + group_id = kwargs['groupId'] + if group_id is None: + raise TypeError("Missing 'group_id' argument") + if user_id is None and 'userId' in kwargs: + user_id = kwargs['userId'] + if user_id is None: + raise TypeError("Missing 'user_id' argument") + _setter("access_level", access_level) _setter("access_level_description", access_level_description) _setter("group_id", group_id) @@ -4061,11 +5027,29 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - access_level: str, - access_level_description: str, - group_id: int, - user_id: int, - opts: Optional[pulumi.ResourceOptions]=None): + access_level: Optional[str] = None, + access_level_description: Optional[str] = None, + group_id: Optional[int] = None, + user_id: Optional[int] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if access_level is None: + raise TypeError("Missing 'access_level' argument") + if access_level_description is None and 'accessLevelDescription' in kwargs: + access_level_description = kwargs['accessLevelDescription'] + if access_level_description is None: + raise TypeError("Missing 'access_level_description' argument") + if group_id is None and 'groupId' in kwargs: + group_id = kwargs['groupId'] + if group_id is None: + raise TypeError("Missing 'group_id' argument") + if user_id is None and 'userId' in kwargs: + user_id = kwargs['userId'] + if user_id is None: + raise TypeError("Missing 'user_id' argument") + _setter("access_level", access_level) _setter("access_level_description", access_level_description) _setter("group_id", group_id) @@ -4113,13 +5097,35 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - allow_force_push: bool, - code_owner_approval_required: bool, - id: int, - merge_access_levels: Sequence['outputs.GetProjectProtectedBranchesProtectedBranchMergeAccessLevelResult'], - name: str, - push_access_levels: Sequence['outputs.GetProjectProtectedBranchesProtectedBranchPushAccessLevelResult'], - opts: Optional[pulumi.ResourceOptions]=None): + allow_force_push: Optional[bool] = None, + code_owner_approval_required: Optional[bool] = None, + id: Optional[int] = None, + merge_access_levels: Optional[Sequence['outputs.GetProjectProtectedBranchesProtectedBranchMergeAccessLevelResult']] = None, + name: Optional[str] = None, + push_access_levels: Optional[Sequence['outputs.GetProjectProtectedBranchesProtectedBranchPushAccessLevelResult']] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if allow_force_push is None and 'allowForcePush' in kwargs: + allow_force_push = kwargs['allowForcePush'] + if allow_force_push is None: + raise TypeError("Missing 'allow_force_push' argument") + if code_owner_approval_required is None and 'codeOwnerApprovalRequired' in kwargs: + code_owner_approval_required = kwargs['codeOwnerApprovalRequired'] + if code_owner_approval_required is None: + raise TypeError("Missing 'code_owner_approval_required' argument") + if id is None: + raise TypeError("Missing 'id' argument") + if merge_access_levels is None and 'mergeAccessLevels' in kwargs: + merge_access_levels = kwargs['mergeAccessLevels'] + if merge_access_levels is None: + raise TypeError("Missing 'merge_access_levels' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if push_access_levels is None and 'pushAccessLevels' in kwargs: + push_access_levels = kwargs['pushAccessLevels'] + if push_access_levels is None: + raise TypeError("Missing 'push_access_levels' argument") + _setter("allow_force_push", allow_force_push) _setter("code_owner_approval_required", code_owner_approval_required) _setter("id", id) @@ -4175,11 +5181,29 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - access_level: str, - access_level_description: str, - group_id: int, - user_id: int, - opts: Optional[pulumi.ResourceOptions]=None): + access_level: Optional[str] = None, + access_level_description: Optional[str] = None, + group_id: Optional[int] = None, + user_id: Optional[int] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if access_level is None: + raise TypeError("Missing 'access_level' argument") + if access_level_description is None and 'accessLevelDescription' in kwargs: + access_level_description = kwargs['accessLevelDescription'] + if access_level_description is None: + raise TypeError("Missing 'access_level_description' argument") + if group_id is None and 'groupId' in kwargs: + group_id = kwargs['groupId'] + if group_id is None: + raise TypeError("Missing 'group_id' argument") + if user_id is None and 'userId' in kwargs: + user_id = kwargs['userId'] + if user_id is None: + raise TypeError("Missing 'user_id' argument") + _setter("access_level", access_level) _setter("access_level_description", access_level_description) _setter("group_id", group_id) @@ -4223,11 +5247,29 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - access_level: str, - access_level_description: str, - group_id: int, - user_id: int, - opts: Optional[pulumi.ResourceOptions]=None): + access_level: Optional[str] = None, + access_level_description: Optional[str] = None, + group_id: Optional[int] = None, + user_id: Optional[int] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if access_level is None: + raise TypeError("Missing 'access_level' argument") + if access_level_description is None and 'accessLevelDescription' in kwargs: + access_level_description = kwargs['accessLevelDescription'] + if access_level_description is None: + raise TypeError("Missing 'access_level_description' argument") + if group_id is None and 'groupId' in kwargs: + group_id = kwargs['groupId'] + if group_id is None: + raise TypeError("Missing 'group_id' argument") + if user_id is None and 'userId' in kwargs: + user_id = kwargs['userId'] + if user_id is None: + raise TypeError("Missing 'user_id' argument") + _setter("access_level", access_level) _setter("access_level_description", access_level_description) _setter("group_id", group_id) @@ -4285,18 +5327,64 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - author_email_regex: str, - branch_name_regex: str, - commit_committer_check: bool, - commit_message_negative_regex: str, - commit_message_regex: str, - deny_delete_tag: bool, - file_name_regex: str, - max_file_size: int, - member_check: bool, - prevent_secrets: bool, - reject_unsigned_commits: bool, - opts: Optional[pulumi.ResourceOptions]=None): + author_email_regex: Optional[str] = None, + branch_name_regex: Optional[str] = None, + commit_committer_check: Optional[bool] = None, + commit_message_negative_regex: Optional[str] = None, + commit_message_regex: Optional[str] = None, + deny_delete_tag: Optional[bool] = None, + file_name_regex: Optional[str] = None, + max_file_size: Optional[int] = None, + member_check: Optional[bool] = None, + prevent_secrets: Optional[bool] = None, + reject_unsigned_commits: Optional[bool] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if author_email_regex is None and 'authorEmailRegex' in kwargs: + author_email_regex = kwargs['authorEmailRegex'] + if author_email_regex is None: + raise TypeError("Missing 'author_email_regex' argument") + if branch_name_regex is None and 'branchNameRegex' in kwargs: + branch_name_regex = kwargs['branchNameRegex'] + if branch_name_regex is None: + raise TypeError("Missing 'branch_name_regex' argument") + if commit_committer_check is None and 'commitCommitterCheck' in kwargs: + commit_committer_check = kwargs['commitCommitterCheck'] + if commit_committer_check is None: + raise TypeError("Missing 'commit_committer_check' argument") + if commit_message_negative_regex is None and 'commitMessageNegativeRegex' in kwargs: + commit_message_negative_regex = kwargs['commitMessageNegativeRegex'] + if commit_message_negative_regex is None: + raise TypeError("Missing 'commit_message_negative_regex' argument") + if commit_message_regex is None and 'commitMessageRegex' in kwargs: + commit_message_regex = kwargs['commitMessageRegex'] + if commit_message_regex is None: + raise TypeError("Missing 'commit_message_regex' argument") + if deny_delete_tag is None and 'denyDeleteTag' in kwargs: + deny_delete_tag = kwargs['denyDeleteTag'] + if deny_delete_tag is None: + raise TypeError("Missing 'deny_delete_tag' argument") + if file_name_regex is None and 'fileNameRegex' in kwargs: + file_name_regex = kwargs['fileNameRegex'] + if file_name_regex is None: + raise TypeError("Missing 'file_name_regex' argument") + if max_file_size is None and 'maxFileSize' in kwargs: + max_file_size = kwargs['maxFileSize'] + if max_file_size is None: + raise TypeError("Missing 'max_file_size' argument") + if member_check is None and 'memberCheck' in kwargs: + member_check = kwargs['memberCheck'] + if member_check is None: + raise TypeError("Missing 'member_check' argument") + if prevent_secrets is None and 'preventSecrets' in kwargs: + prevent_secrets = kwargs['preventSecrets'] + if prevent_secrets is None: + raise TypeError("Missing 'prevent_secrets' argument") + if reject_unsigned_commits is None and 'rejectUnsignedCommits' in kwargs: + reject_unsigned_commits = kwargs['rejectUnsignedCommits'] + if reject_unsigned_commits is None: + raise TypeError("Missing 'reject_unsigned_commits' argument") + _setter("author_email_regex", author_email_regex) _setter("branch_name_regex", branch_name_regex) _setter("commit_committer_check", commit_committer_check) @@ -4396,18 +5484,58 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - author_email: str, - author_name: str, - authored_date: str, - committed_date: str, - committer_email: str, - committer_name: str, - id: str, - message: str, - parent_ids: Sequence[str], - short_id: str, - title: str, - opts: Optional[pulumi.ResourceOptions]=None): + author_email: Optional[str] = None, + author_name: Optional[str] = None, + authored_date: Optional[str] = None, + committed_date: Optional[str] = None, + committer_email: Optional[str] = None, + committer_name: Optional[str] = None, + id: Optional[str] = None, + message: Optional[str] = None, + parent_ids: Optional[Sequence[str]] = None, + short_id: Optional[str] = None, + title: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if author_email is None and 'authorEmail' in kwargs: + author_email = kwargs['authorEmail'] + if author_email is None: + raise TypeError("Missing 'author_email' argument") + if author_name is None and 'authorName' in kwargs: + author_name = kwargs['authorName'] + if author_name is None: + raise TypeError("Missing 'author_name' argument") + if authored_date is None and 'authoredDate' in kwargs: + authored_date = kwargs['authoredDate'] + if authored_date is None: + raise TypeError("Missing 'authored_date' argument") + if committed_date is None and 'committedDate' in kwargs: + committed_date = kwargs['committedDate'] + if committed_date is None: + raise TypeError("Missing 'committed_date' argument") + if committer_email is None and 'committerEmail' in kwargs: + committer_email = kwargs['committerEmail'] + if committer_email is None: + raise TypeError("Missing 'committer_email' argument") + if committer_name is None and 'committerName' in kwargs: + committer_name = kwargs['committerName'] + if committer_name is None: + raise TypeError("Missing 'committer_name' argument") + if id is None: + raise TypeError("Missing 'id' argument") + if message is None: + raise TypeError("Missing 'message' argument") + if parent_ids is None and 'parentIds' in kwargs: + parent_ids = kwargs['parentIds'] + if parent_ids is None: + raise TypeError("Missing 'parent_ids' argument") + if short_id is None and 'shortId' in kwargs: + short_id = kwargs['shortId'] + if short_id is None: + raise TypeError("Missing 'short_id' argument") + if title is None: + raise TypeError("Missing 'title' argument") + _setter("author_email", author_email) _setter("author_name", author_name) _setter("authored_date", authored_date) @@ -4489,9 +5617,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - description: str, - tag_name: str, - opts: Optional[pulumi.ResourceOptions]=None): + description: Optional[str] = None, + tag_name: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if description is None: + raise TypeError("Missing 'description' argument") + if tag_name is None and 'tagName' in kwargs: + tag_name = kwargs['tagName'] + if tag_name is None: + raise TypeError("Missing 'tag_name' argument") + _setter("description", description) _setter("tag_name", tag_name) @@ -4527,13 +5663,27 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - commits: Sequence['outputs.GetProjectTagsTagCommitResult'], - message: str, - name: str, - protected: bool, - releases: Sequence['outputs.GetProjectTagsTagReleaseResult'], - target: str, - opts: Optional[pulumi.ResourceOptions]=None): + commits: Optional[Sequence['outputs.GetProjectTagsTagCommitResult']] = None, + message: Optional[str] = None, + name: Optional[str] = None, + protected: Optional[bool] = None, + releases: Optional[Sequence['outputs.GetProjectTagsTagReleaseResult']] = None, + target: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if commits is None: + raise TypeError("Missing 'commits' argument") + if message is None: + raise TypeError("Missing 'message' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if protected is None: + raise TypeError("Missing 'protected' argument") + if releases is None: + raise TypeError("Missing 'releases' argument") + if target is None: + raise TypeError("Missing 'target' argument") + _setter("commits", commits) _setter("message", message) _setter("name", name) @@ -4603,18 +5753,58 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - author_email: str, - author_name: str, - authored_date: str, - committed_date: str, - committer_email: str, - committer_name: str, - id: str, - message: str, - parent_ids: Sequence[str], - short_id: str, - title: str, - opts: Optional[pulumi.ResourceOptions]=None): + author_email: Optional[str] = None, + author_name: Optional[str] = None, + authored_date: Optional[str] = None, + committed_date: Optional[str] = None, + committer_email: Optional[str] = None, + committer_name: Optional[str] = None, + id: Optional[str] = None, + message: Optional[str] = None, + parent_ids: Optional[Sequence[str]] = None, + short_id: Optional[str] = None, + title: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if author_email is None and 'authorEmail' in kwargs: + author_email = kwargs['authorEmail'] + if author_email is None: + raise TypeError("Missing 'author_email' argument") + if author_name is None and 'authorName' in kwargs: + author_name = kwargs['authorName'] + if author_name is None: + raise TypeError("Missing 'author_name' argument") + if authored_date is None and 'authoredDate' in kwargs: + authored_date = kwargs['authoredDate'] + if authored_date is None: + raise TypeError("Missing 'authored_date' argument") + if committed_date is None and 'committedDate' in kwargs: + committed_date = kwargs['committedDate'] + if committed_date is None: + raise TypeError("Missing 'committed_date' argument") + if committer_email is None and 'committerEmail' in kwargs: + committer_email = kwargs['committerEmail'] + if committer_email is None: + raise TypeError("Missing 'committer_email' argument") + if committer_name is None and 'committerName' in kwargs: + committer_name = kwargs['committerName'] + if committer_name is None: + raise TypeError("Missing 'committer_name' argument") + if id is None: + raise TypeError("Missing 'id' argument") + if message is None: + raise TypeError("Missing 'message' argument") + if parent_ids is None and 'parentIds' in kwargs: + parent_ids = kwargs['parentIds'] + if parent_ids is None: + raise TypeError("Missing 'parent_ids' argument") + if short_id is None and 'shortId' in kwargs: + short_id = kwargs['shortId'] + if short_id is None: + raise TypeError("Missing 'short_id' argument") + if title is None: + raise TypeError("Missing 'title' argument") + _setter("author_email", author_email) _setter("author_name", author_name) _setter("authored_date", authored_date) @@ -4696,9 +5886,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - description: str, - tag_name: str, - opts: Optional[pulumi.ResourceOptions]=None): + description: Optional[str] = None, + tag_name: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if description is None: + raise TypeError("Missing 'description' argument") + if tag_name is None and 'tagName' in kwargs: + tag_name = kwargs['tagName'] + if tag_name is None: + raise TypeError("Missing 'tag_name' argument") + _setter("description", description) _setter("tag_name", tag_name) @@ -4738,15 +5936,37 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - environment_scope: str, - key: str, - masked: bool, - project: str, - protected: bool, - raw: bool, - value: str, - variable_type: str, - opts: Optional[pulumi.ResourceOptions]=None): + environment_scope: Optional[str] = None, + key: Optional[str] = None, + masked: Optional[bool] = None, + project: Optional[str] = None, + protected: Optional[bool] = None, + raw: Optional[bool] = None, + value: Optional[str] = None, + variable_type: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if environment_scope is None and 'environmentScope' in kwargs: + environment_scope = kwargs['environmentScope'] + if environment_scope is None: + raise TypeError("Missing 'environment_scope' argument") + if key is None: + raise TypeError("Missing 'key' argument") + if masked is None: + raise TypeError("Missing 'masked' argument") + if project is None: + raise TypeError("Missing 'project' argument") + if protected is None: + raise TypeError("Missing 'protected' argument") + if raw is None: + raise TypeError("Missing 'raw' argument") + if value is None: + raise TypeError("Missing 'value' argument") + if variable_type is None and 'variableType' in kwargs: + variable_type = kwargs['variableType'] + if variable_type is None: + raise TypeError("Missing 'variable_type' argument") + _setter("environment_scope", environment_scope) _setter("key", key) _setter("masked", masked) @@ -4994,101 +6214,451 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - _links: Mapping[str, str], - allow_merge_on_skipped_pipeline: bool, - analytics_access_level: str, - approvals_before_merge: int, - archived: bool, - auto_cancel_pending_pipelines: str, - auto_devops_deploy_strategy: str, - auto_devops_enabled: bool, - autoclose_referenced_issues: bool, - avatar_url: str, - build_coverage_regex: str, - build_git_strategy: str, - build_timeout: int, - builds_access_level: str, - ci_config_path: str, - ci_default_git_depth: int, - ci_forward_deployment_enabled: bool, - container_expiration_policies: Sequence['outputs.GetProjectsProjectContainerExpirationPolicyResult'], - container_registry_access_level: str, - container_registry_enabled: bool, - created_at: str, - creator_id: int, - custom_attributes: Sequence[Mapping[str, str]], - default_branch: str, - description: str, - emails_disabled: bool, - environments_access_level: str, - external_authorization_classification_label: str, - feature_flags_access_level: str, - forked_from_projects: Sequence['outputs.GetProjectsProjectForkedFromProjectResult'], - forking_access_level: str, - forks_count: int, - http_url_to_repo: str, - id: int, - import_error: str, - import_status: str, - import_url: str, - infrastructure_access_level: str, - issues_access_level: str, - issues_enabled: bool, - jobs_enabled: bool, - keep_latest_artifact: bool, - last_activity_at: str, - lfs_enabled: bool, - merge_commit_template: str, - merge_method: str, - merge_pipelines_enabled: bool, - merge_requests_access_level: str, - merge_requests_enabled: bool, - merge_trains_enabled: bool, - mirror: bool, - mirror_overwrites_diverged_branches: bool, - mirror_trigger_builds: bool, - mirror_user_id: int, - monitor_access_level: str, - name: str, - name_with_namespace: str, - namespaces: Sequence['outputs.GetProjectsProjectNamespaceResult'], - only_allow_merge_if_all_discussions_are_resolved: bool, - only_allow_merge_if_pipeline_succeeds: bool, - only_mirror_protected_branches: bool, - open_issues_count: int, - owners: Sequence['outputs.GetProjectsProjectOwnerResult'], - packages_enabled: bool, - path: str, - path_with_namespace: str, - permissions: Sequence['outputs.GetProjectsProjectPermissionResult'], - public: bool, - public_builds: bool, - readme_url: str, - releases_access_level: str, - repository_access_level: str, - repository_storage: str, - request_access_enabled: bool, - requirements_access_level: str, - resolve_outdated_diff_discussions: bool, - restrict_user_defined_variables: bool, - runners_token: str, - security_and_compliance_access_level: str, - shared_runners_enabled: bool, - shared_with_groups: Sequence['outputs.GetProjectsProjectSharedWithGroupResult'], - snippets_access_level: str, - snippets_enabled: bool, - squash_commit_template: str, - ssh_url_to_repo: str, - star_count: int, - statistics: Mapping[str, int], - suggestion_commit_message: str, - tag_lists: Sequence[str], - topics: Sequence[str], - visibility: str, - web_url: str, - wiki_access_level: str, - wiki_enabled: bool, - opts: Optional[pulumi.ResourceOptions]=None): + _links: Optional[Mapping[str, str]] = None, + allow_merge_on_skipped_pipeline: Optional[bool] = None, + analytics_access_level: Optional[str] = None, + approvals_before_merge: Optional[int] = None, + archived: Optional[bool] = None, + auto_cancel_pending_pipelines: Optional[str] = None, + auto_devops_deploy_strategy: Optional[str] = None, + auto_devops_enabled: Optional[bool] = None, + autoclose_referenced_issues: Optional[bool] = None, + avatar_url: Optional[str] = None, + build_coverage_regex: Optional[str] = None, + build_git_strategy: Optional[str] = None, + build_timeout: Optional[int] = None, + builds_access_level: Optional[str] = None, + ci_config_path: Optional[str] = None, + ci_default_git_depth: Optional[int] = None, + ci_forward_deployment_enabled: Optional[bool] = None, + container_expiration_policies: Optional[Sequence['outputs.GetProjectsProjectContainerExpirationPolicyResult']] = None, + container_registry_access_level: Optional[str] = None, + container_registry_enabled: Optional[bool] = None, + created_at: Optional[str] = None, + creator_id: Optional[int] = None, + custom_attributes: Optional[Sequence[Mapping[str, str]]] = None, + default_branch: Optional[str] = None, + description: Optional[str] = None, + emails_disabled: Optional[bool] = None, + environments_access_level: Optional[str] = None, + external_authorization_classification_label: Optional[str] = None, + feature_flags_access_level: Optional[str] = None, + forked_from_projects: Optional[Sequence['outputs.GetProjectsProjectForkedFromProjectResult']] = None, + forking_access_level: Optional[str] = None, + forks_count: Optional[int] = None, + http_url_to_repo: Optional[str] = None, + id: Optional[int] = None, + import_error: Optional[str] = None, + import_status: Optional[str] = None, + import_url: Optional[str] = None, + infrastructure_access_level: Optional[str] = None, + issues_access_level: Optional[str] = None, + issues_enabled: Optional[bool] = None, + jobs_enabled: Optional[bool] = None, + keep_latest_artifact: Optional[bool] = None, + last_activity_at: Optional[str] = None, + lfs_enabled: Optional[bool] = None, + merge_commit_template: Optional[str] = None, + merge_method: Optional[str] = None, + merge_pipelines_enabled: Optional[bool] = None, + merge_requests_access_level: Optional[str] = None, + merge_requests_enabled: Optional[bool] = None, + merge_trains_enabled: Optional[bool] = None, + mirror: Optional[bool] = None, + mirror_overwrites_diverged_branches: Optional[bool] = None, + mirror_trigger_builds: Optional[bool] = None, + mirror_user_id: Optional[int] = None, + monitor_access_level: Optional[str] = None, + name: Optional[str] = None, + name_with_namespace: Optional[str] = None, + namespaces: Optional[Sequence['outputs.GetProjectsProjectNamespaceResult']] = None, + only_allow_merge_if_all_discussions_are_resolved: Optional[bool] = None, + only_allow_merge_if_pipeline_succeeds: Optional[bool] = None, + only_mirror_protected_branches: Optional[bool] = None, + open_issues_count: Optional[int] = None, + owners: Optional[Sequence['outputs.GetProjectsProjectOwnerResult']] = None, + packages_enabled: Optional[bool] = None, + path: Optional[str] = None, + path_with_namespace: Optional[str] = None, + permissions: Optional[Sequence['outputs.GetProjectsProjectPermissionResult']] = None, + public: Optional[bool] = None, + public_builds: Optional[bool] = None, + readme_url: Optional[str] = None, + releases_access_level: Optional[str] = None, + repository_access_level: Optional[str] = None, + repository_storage: Optional[str] = None, + request_access_enabled: Optional[bool] = None, + requirements_access_level: Optional[str] = None, + resolve_outdated_diff_discussions: Optional[bool] = None, + restrict_user_defined_variables: Optional[bool] = None, + runners_token: Optional[str] = None, + security_and_compliance_access_level: Optional[str] = None, + shared_runners_enabled: Optional[bool] = None, + shared_with_groups: Optional[Sequence['outputs.GetProjectsProjectSharedWithGroupResult']] = None, + snippets_access_level: Optional[str] = None, + snippets_enabled: Optional[bool] = None, + squash_commit_template: Optional[str] = None, + ssh_url_to_repo: Optional[str] = None, + star_count: Optional[int] = None, + statistics: Optional[Mapping[str, int]] = None, + suggestion_commit_message: Optional[str] = None, + tag_lists: Optional[Sequence[str]] = None, + topics: Optional[Sequence[str]] = None, + visibility: Optional[str] = None, + web_url: Optional[str] = None, + wiki_access_level: Optional[str] = None, + wiki_enabled: Optional[bool] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if _links is None: + raise TypeError("Missing '_links' argument") + if allow_merge_on_skipped_pipeline is None and 'allowMergeOnSkippedPipeline' in kwargs: + allow_merge_on_skipped_pipeline = kwargs['allowMergeOnSkippedPipeline'] + if allow_merge_on_skipped_pipeline is None: + raise TypeError("Missing 'allow_merge_on_skipped_pipeline' argument") + if analytics_access_level is None and 'analyticsAccessLevel' in kwargs: + analytics_access_level = kwargs['analyticsAccessLevel'] + if analytics_access_level is None: + raise TypeError("Missing 'analytics_access_level' argument") + if approvals_before_merge is None and 'approvalsBeforeMerge' in kwargs: + approvals_before_merge = kwargs['approvalsBeforeMerge'] + if approvals_before_merge is None: + raise TypeError("Missing 'approvals_before_merge' argument") + if archived is None: + raise TypeError("Missing 'archived' argument") + if auto_cancel_pending_pipelines is None and 'autoCancelPendingPipelines' in kwargs: + auto_cancel_pending_pipelines = kwargs['autoCancelPendingPipelines'] + if auto_cancel_pending_pipelines is None: + raise TypeError("Missing 'auto_cancel_pending_pipelines' argument") + if auto_devops_deploy_strategy is None and 'autoDevopsDeployStrategy' in kwargs: + auto_devops_deploy_strategy = kwargs['autoDevopsDeployStrategy'] + if auto_devops_deploy_strategy is None: + raise TypeError("Missing 'auto_devops_deploy_strategy' argument") + if auto_devops_enabled is None and 'autoDevopsEnabled' in kwargs: + auto_devops_enabled = kwargs['autoDevopsEnabled'] + if auto_devops_enabled is None: + raise TypeError("Missing 'auto_devops_enabled' argument") + if autoclose_referenced_issues is None and 'autocloseReferencedIssues' in kwargs: + autoclose_referenced_issues = kwargs['autocloseReferencedIssues'] + if autoclose_referenced_issues is None: + raise TypeError("Missing 'autoclose_referenced_issues' argument") + if avatar_url is None and 'avatarUrl' in kwargs: + avatar_url = kwargs['avatarUrl'] + if avatar_url is None: + raise TypeError("Missing 'avatar_url' argument") + if build_coverage_regex is None and 'buildCoverageRegex' in kwargs: + build_coverage_regex = kwargs['buildCoverageRegex'] + if build_coverage_regex is None: + raise TypeError("Missing 'build_coverage_regex' argument") + if build_git_strategy is None and 'buildGitStrategy' in kwargs: + build_git_strategy = kwargs['buildGitStrategy'] + if build_git_strategy is None: + raise TypeError("Missing 'build_git_strategy' argument") + if build_timeout is None and 'buildTimeout' in kwargs: + build_timeout = kwargs['buildTimeout'] + if build_timeout is None: + raise TypeError("Missing 'build_timeout' argument") + if builds_access_level is None and 'buildsAccessLevel' in kwargs: + builds_access_level = kwargs['buildsAccessLevel'] + if builds_access_level is None: + raise TypeError("Missing 'builds_access_level' argument") + if ci_config_path is None and 'ciConfigPath' in kwargs: + ci_config_path = kwargs['ciConfigPath'] + if ci_config_path is None: + raise TypeError("Missing 'ci_config_path' argument") + if ci_default_git_depth is None and 'ciDefaultGitDepth' in kwargs: + ci_default_git_depth = kwargs['ciDefaultGitDepth'] + if ci_default_git_depth is None: + raise TypeError("Missing 'ci_default_git_depth' argument") + if ci_forward_deployment_enabled is None and 'ciForwardDeploymentEnabled' in kwargs: + ci_forward_deployment_enabled = kwargs['ciForwardDeploymentEnabled'] + if ci_forward_deployment_enabled is None: + raise TypeError("Missing 'ci_forward_deployment_enabled' argument") + if container_expiration_policies is None and 'containerExpirationPolicies' in kwargs: + container_expiration_policies = kwargs['containerExpirationPolicies'] + if container_expiration_policies is None: + raise TypeError("Missing 'container_expiration_policies' argument") + if container_registry_access_level is None and 'containerRegistryAccessLevel' in kwargs: + container_registry_access_level = kwargs['containerRegistryAccessLevel'] + if container_registry_access_level is None: + raise TypeError("Missing 'container_registry_access_level' argument") + if container_registry_enabled is None and 'containerRegistryEnabled' in kwargs: + container_registry_enabled = kwargs['containerRegistryEnabled'] + if container_registry_enabled is None: + raise TypeError("Missing 'container_registry_enabled' argument") + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if created_at is None: + raise TypeError("Missing 'created_at' argument") + if creator_id is None and 'creatorId' in kwargs: + creator_id = kwargs['creatorId'] + if creator_id is None: + raise TypeError("Missing 'creator_id' argument") + if custom_attributes is None and 'customAttributes' in kwargs: + custom_attributes = kwargs['customAttributes'] + if custom_attributes is None: + raise TypeError("Missing 'custom_attributes' argument") + if default_branch is None and 'defaultBranch' in kwargs: + default_branch = kwargs['defaultBranch'] + if default_branch is None: + raise TypeError("Missing 'default_branch' argument") + if description is None: + raise TypeError("Missing 'description' argument") + if emails_disabled is None and 'emailsDisabled' in kwargs: + emails_disabled = kwargs['emailsDisabled'] + if emails_disabled is None: + raise TypeError("Missing 'emails_disabled' argument") + if environments_access_level is None and 'environmentsAccessLevel' in kwargs: + environments_access_level = kwargs['environmentsAccessLevel'] + if environments_access_level is None: + raise TypeError("Missing 'environments_access_level' argument") + if external_authorization_classification_label is None and 'externalAuthorizationClassificationLabel' in kwargs: + external_authorization_classification_label = kwargs['externalAuthorizationClassificationLabel'] + if external_authorization_classification_label is None: + raise TypeError("Missing 'external_authorization_classification_label' argument") + if feature_flags_access_level is None and 'featureFlagsAccessLevel' in kwargs: + feature_flags_access_level = kwargs['featureFlagsAccessLevel'] + if feature_flags_access_level is None: + raise TypeError("Missing 'feature_flags_access_level' argument") + if forked_from_projects is None and 'forkedFromProjects' in kwargs: + forked_from_projects = kwargs['forkedFromProjects'] + if forked_from_projects is None: + raise TypeError("Missing 'forked_from_projects' argument") + if forking_access_level is None and 'forkingAccessLevel' in kwargs: + forking_access_level = kwargs['forkingAccessLevel'] + if forking_access_level is None: + raise TypeError("Missing 'forking_access_level' argument") + if forks_count is None and 'forksCount' in kwargs: + forks_count = kwargs['forksCount'] + if forks_count is None: + raise TypeError("Missing 'forks_count' argument") + if http_url_to_repo is None and 'httpUrlToRepo' in kwargs: + http_url_to_repo = kwargs['httpUrlToRepo'] + if http_url_to_repo is None: + raise TypeError("Missing 'http_url_to_repo' argument") + if id is None: + raise TypeError("Missing 'id' argument") + if import_error is None and 'importError' in kwargs: + import_error = kwargs['importError'] + if import_error is None: + raise TypeError("Missing 'import_error' argument") + if import_status is None and 'importStatus' in kwargs: + import_status = kwargs['importStatus'] + if import_status is None: + raise TypeError("Missing 'import_status' argument") + if import_url is None and 'importUrl' in kwargs: + import_url = kwargs['importUrl'] + if import_url is None: + raise TypeError("Missing 'import_url' argument") + if infrastructure_access_level is None and 'infrastructureAccessLevel' in kwargs: + infrastructure_access_level = kwargs['infrastructureAccessLevel'] + if infrastructure_access_level is None: + raise TypeError("Missing 'infrastructure_access_level' argument") + if issues_access_level is None and 'issuesAccessLevel' in kwargs: + issues_access_level = kwargs['issuesAccessLevel'] + if issues_access_level is None: + raise TypeError("Missing 'issues_access_level' argument") + if issues_enabled is None and 'issuesEnabled' in kwargs: + issues_enabled = kwargs['issuesEnabled'] + if issues_enabled is None: + raise TypeError("Missing 'issues_enabled' argument") + if jobs_enabled is None and 'jobsEnabled' in kwargs: + jobs_enabled = kwargs['jobsEnabled'] + if jobs_enabled is None: + raise TypeError("Missing 'jobs_enabled' argument") + if keep_latest_artifact is None and 'keepLatestArtifact' in kwargs: + keep_latest_artifact = kwargs['keepLatestArtifact'] + if keep_latest_artifact is None: + raise TypeError("Missing 'keep_latest_artifact' argument") + if last_activity_at is None and 'lastActivityAt' in kwargs: + last_activity_at = kwargs['lastActivityAt'] + if last_activity_at is None: + raise TypeError("Missing 'last_activity_at' argument") + if lfs_enabled is None and 'lfsEnabled' in kwargs: + lfs_enabled = kwargs['lfsEnabled'] + if lfs_enabled is None: + raise TypeError("Missing 'lfs_enabled' argument") + if merge_commit_template is None and 'mergeCommitTemplate' in kwargs: + merge_commit_template = kwargs['mergeCommitTemplate'] + if merge_commit_template is None: + raise TypeError("Missing 'merge_commit_template' argument") + if merge_method is None and 'mergeMethod' in kwargs: + merge_method = kwargs['mergeMethod'] + if merge_method is None: + raise TypeError("Missing 'merge_method' argument") + if merge_pipelines_enabled is None and 'mergePipelinesEnabled' in kwargs: + merge_pipelines_enabled = kwargs['mergePipelinesEnabled'] + if merge_pipelines_enabled is None: + raise TypeError("Missing 'merge_pipelines_enabled' argument") + if merge_requests_access_level is None and 'mergeRequestsAccessLevel' in kwargs: + merge_requests_access_level = kwargs['mergeRequestsAccessLevel'] + if merge_requests_access_level is None: + raise TypeError("Missing 'merge_requests_access_level' argument") + if merge_requests_enabled is None and 'mergeRequestsEnabled' in kwargs: + merge_requests_enabled = kwargs['mergeRequestsEnabled'] + if merge_requests_enabled is None: + raise TypeError("Missing 'merge_requests_enabled' argument") + if merge_trains_enabled is None and 'mergeTrainsEnabled' in kwargs: + merge_trains_enabled = kwargs['mergeTrainsEnabled'] + if merge_trains_enabled is None: + raise TypeError("Missing 'merge_trains_enabled' argument") + if mirror is None: + raise TypeError("Missing 'mirror' argument") + if mirror_overwrites_diverged_branches is None and 'mirrorOverwritesDivergedBranches' in kwargs: + mirror_overwrites_diverged_branches = kwargs['mirrorOverwritesDivergedBranches'] + if mirror_overwrites_diverged_branches is None: + raise TypeError("Missing 'mirror_overwrites_diverged_branches' argument") + if mirror_trigger_builds is None and 'mirrorTriggerBuilds' in kwargs: + mirror_trigger_builds = kwargs['mirrorTriggerBuilds'] + if mirror_trigger_builds is None: + raise TypeError("Missing 'mirror_trigger_builds' argument") + if mirror_user_id is None and 'mirrorUserId' in kwargs: + mirror_user_id = kwargs['mirrorUserId'] + if mirror_user_id is None: + raise TypeError("Missing 'mirror_user_id' argument") + if monitor_access_level is None and 'monitorAccessLevel' in kwargs: + monitor_access_level = kwargs['monitorAccessLevel'] + if monitor_access_level is None: + raise TypeError("Missing 'monitor_access_level' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if name_with_namespace is None and 'nameWithNamespace' in kwargs: + name_with_namespace = kwargs['nameWithNamespace'] + if name_with_namespace is None: + raise TypeError("Missing 'name_with_namespace' argument") + if namespaces is None: + raise TypeError("Missing 'namespaces' argument") + if only_allow_merge_if_all_discussions_are_resolved is None and 'onlyAllowMergeIfAllDiscussionsAreResolved' in kwargs: + only_allow_merge_if_all_discussions_are_resolved = kwargs['onlyAllowMergeIfAllDiscussionsAreResolved'] + if only_allow_merge_if_all_discussions_are_resolved is None: + raise TypeError("Missing 'only_allow_merge_if_all_discussions_are_resolved' argument") + if only_allow_merge_if_pipeline_succeeds is None and 'onlyAllowMergeIfPipelineSucceeds' in kwargs: + only_allow_merge_if_pipeline_succeeds = kwargs['onlyAllowMergeIfPipelineSucceeds'] + if only_allow_merge_if_pipeline_succeeds is None: + raise TypeError("Missing 'only_allow_merge_if_pipeline_succeeds' argument") + if only_mirror_protected_branches is None and 'onlyMirrorProtectedBranches' in kwargs: + only_mirror_protected_branches = kwargs['onlyMirrorProtectedBranches'] + if only_mirror_protected_branches is None: + raise TypeError("Missing 'only_mirror_protected_branches' argument") + if open_issues_count is None and 'openIssuesCount' in kwargs: + open_issues_count = kwargs['openIssuesCount'] + if open_issues_count is None: + raise TypeError("Missing 'open_issues_count' argument") + if owners is None: + raise TypeError("Missing 'owners' argument") + if packages_enabled is None and 'packagesEnabled' in kwargs: + packages_enabled = kwargs['packagesEnabled'] + if packages_enabled is None: + raise TypeError("Missing 'packages_enabled' argument") + if path is None: + raise TypeError("Missing 'path' argument") + if path_with_namespace is None and 'pathWithNamespace' in kwargs: + path_with_namespace = kwargs['pathWithNamespace'] + if path_with_namespace is None: + raise TypeError("Missing 'path_with_namespace' argument") + if permissions is None: + raise TypeError("Missing 'permissions' argument") + if public is None: + raise TypeError("Missing 'public' argument") + if public_builds is None and 'publicBuilds' in kwargs: + public_builds = kwargs['publicBuilds'] + if public_builds is None: + raise TypeError("Missing 'public_builds' argument") + if readme_url is None and 'readmeUrl' in kwargs: + readme_url = kwargs['readmeUrl'] + if readme_url is None: + raise TypeError("Missing 'readme_url' argument") + if releases_access_level is None and 'releasesAccessLevel' in kwargs: + releases_access_level = kwargs['releasesAccessLevel'] + if releases_access_level is None: + raise TypeError("Missing 'releases_access_level' argument") + if repository_access_level is None and 'repositoryAccessLevel' in kwargs: + repository_access_level = kwargs['repositoryAccessLevel'] + if repository_access_level is None: + raise TypeError("Missing 'repository_access_level' argument") + if repository_storage is None and 'repositoryStorage' in kwargs: + repository_storage = kwargs['repositoryStorage'] + if repository_storage is None: + raise TypeError("Missing 'repository_storage' argument") + if request_access_enabled is None and 'requestAccessEnabled' in kwargs: + request_access_enabled = kwargs['requestAccessEnabled'] + if request_access_enabled is None: + raise TypeError("Missing 'request_access_enabled' argument") + if requirements_access_level is None and 'requirementsAccessLevel' in kwargs: + requirements_access_level = kwargs['requirementsAccessLevel'] + if requirements_access_level is None: + raise TypeError("Missing 'requirements_access_level' argument") + if resolve_outdated_diff_discussions is None and 'resolveOutdatedDiffDiscussions' in kwargs: + resolve_outdated_diff_discussions = kwargs['resolveOutdatedDiffDiscussions'] + if resolve_outdated_diff_discussions is None: + raise TypeError("Missing 'resolve_outdated_diff_discussions' argument") + if restrict_user_defined_variables is None and 'restrictUserDefinedVariables' in kwargs: + restrict_user_defined_variables = kwargs['restrictUserDefinedVariables'] + if restrict_user_defined_variables is None: + raise TypeError("Missing 'restrict_user_defined_variables' argument") + if runners_token is None and 'runnersToken' in kwargs: + runners_token = kwargs['runnersToken'] + if runners_token is None: + raise TypeError("Missing 'runners_token' argument") + if security_and_compliance_access_level is None and 'securityAndComplianceAccessLevel' in kwargs: + security_and_compliance_access_level = kwargs['securityAndComplianceAccessLevel'] + if security_and_compliance_access_level is None: + raise TypeError("Missing 'security_and_compliance_access_level' argument") + if shared_runners_enabled is None and 'sharedRunnersEnabled' in kwargs: + shared_runners_enabled = kwargs['sharedRunnersEnabled'] + if shared_runners_enabled is None: + raise TypeError("Missing 'shared_runners_enabled' argument") + if shared_with_groups is None and 'sharedWithGroups' in kwargs: + shared_with_groups = kwargs['sharedWithGroups'] + if shared_with_groups is None: + raise TypeError("Missing 'shared_with_groups' argument") + if snippets_access_level is None and 'snippetsAccessLevel' in kwargs: + snippets_access_level = kwargs['snippetsAccessLevel'] + if snippets_access_level is None: + raise TypeError("Missing 'snippets_access_level' argument") + if snippets_enabled is None and 'snippetsEnabled' in kwargs: + snippets_enabled = kwargs['snippetsEnabled'] + if snippets_enabled is None: + raise TypeError("Missing 'snippets_enabled' argument") + if squash_commit_template is None and 'squashCommitTemplate' in kwargs: + squash_commit_template = kwargs['squashCommitTemplate'] + if squash_commit_template is None: + raise TypeError("Missing 'squash_commit_template' argument") + if ssh_url_to_repo is None and 'sshUrlToRepo' in kwargs: + ssh_url_to_repo = kwargs['sshUrlToRepo'] + if ssh_url_to_repo is None: + raise TypeError("Missing 'ssh_url_to_repo' argument") + if star_count is None and 'starCount' in kwargs: + star_count = kwargs['starCount'] + if star_count is None: + raise TypeError("Missing 'star_count' argument") + if statistics is None: + raise TypeError("Missing 'statistics' argument") + if suggestion_commit_message is None and 'suggestionCommitMessage' in kwargs: + suggestion_commit_message = kwargs['suggestionCommitMessage'] + if suggestion_commit_message is None: + raise TypeError("Missing 'suggestion_commit_message' argument") + if tag_lists is None and 'tagLists' in kwargs: + tag_lists = kwargs['tagLists'] + if tag_lists is None: + raise TypeError("Missing 'tag_lists' argument") + if topics is None: + raise TypeError("Missing 'topics' argument") + if visibility is None: + raise TypeError("Missing 'visibility' argument") + if web_url is None and 'webUrl' in kwargs: + web_url = kwargs['webUrl'] + if web_url is None: + raise TypeError("Missing 'web_url' argument") + if wiki_access_level is None and 'wikiAccessLevel' in kwargs: + wiki_access_level = kwargs['wikiAccessLevel'] + if wiki_access_level is None: + raise TypeError("Missing 'wiki_access_level' argument") + if wiki_enabled is None and 'wikiEnabled' in kwargs: + wiki_enabled = kwargs['wikiEnabled'] + if wiki_enabled is None: + raise TypeError("Missing 'wiki_enabled' argument") + _setter("_links", _links) _setter("allow_merge_on_skipped_pipeline", allow_merge_on_skipped_pipeline) _setter("analytics_access_level", analytics_access_level) @@ -5680,15 +7250,45 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - cadence: str, - enabled: bool, - keep_n: int, - name_regex: str, - name_regex_delete: str, - name_regex_keep: str, - next_run_at: str, - older_than: str, - opts: Optional[pulumi.ResourceOptions]=None): + cadence: Optional[str] = None, + enabled: Optional[bool] = None, + keep_n: Optional[int] = None, + name_regex: Optional[str] = None, + name_regex_delete: Optional[str] = None, + name_regex_keep: Optional[str] = None, + next_run_at: Optional[str] = None, + older_than: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if cadence is None: + raise TypeError("Missing 'cadence' argument") + if enabled is None: + raise TypeError("Missing 'enabled' argument") + if keep_n is None and 'keepN' in kwargs: + keep_n = kwargs['keepN'] + if keep_n is None: + raise TypeError("Missing 'keep_n' argument") + if name_regex is None and 'nameRegex' in kwargs: + name_regex = kwargs['nameRegex'] + if name_regex is None: + raise TypeError("Missing 'name_regex' argument") + if name_regex_delete is None and 'nameRegexDelete' in kwargs: + name_regex_delete = kwargs['nameRegexDelete'] + if name_regex_delete is None: + raise TypeError("Missing 'name_regex_delete' argument") + if name_regex_keep is None and 'nameRegexKeep' in kwargs: + name_regex_keep = kwargs['nameRegexKeep'] + if name_regex_keep is None: + raise TypeError("Missing 'name_regex_keep' argument") + if next_run_at is None and 'nextRunAt' in kwargs: + next_run_at = kwargs['nextRunAt'] + if next_run_at is None: + raise TypeError("Missing 'next_run_at' argument") + if older_than is None and 'olderThan' in kwargs: + older_than = kwargs['olderThan'] + if older_than is None: + raise TypeError("Missing 'older_than' argument") + _setter("cadence", cadence) _setter("enabled", enabled) _setter("keep_n", keep_n) @@ -5765,14 +7365,38 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - http_url_to_repo: str, - id: int, - name: str, - name_with_namespace: str, - path: str, - path_with_namespace: str, - web_url: str, - opts: Optional[pulumi.ResourceOptions]=None): + http_url_to_repo: Optional[str] = None, + id: Optional[int] = None, + name: Optional[str] = None, + name_with_namespace: Optional[str] = None, + path: Optional[str] = None, + path_with_namespace: Optional[str] = None, + web_url: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if http_url_to_repo is None and 'httpUrlToRepo' in kwargs: + http_url_to_repo = kwargs['httpUrlToRepo'] + if http_url_to_repo is None: + raise TypeError("Missing 'http_url_to_repo' argument") + if id is None: + raise TypeError("Missing 'id' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if name_with_namespace is None and 'nameWithNamespace' in kwargs: + name_with_namespace = kwargs['nameWithNamespace'] + if name_with_namespace is None: + raise TypeError("Missing 'name_with_namespace' argument") + if path is None: + raise TypeError("Missing 'path' argument") + if path_with_namespace is None and 'pathWithNamespace' in kwargs: + path_with_namespace = kwargs['pathWithNamespace'] + if path_with_namespace is None: + raise TypeError("Missing 'path_with_namespace' argument") + if web_url is None and 'webUrl' in kwargs: + web_url = kwargs['webUrl'] + if web_url is None: + raise TypeError("Missing 'web_url' argument") + _setter("http_url_to_repo", http_url_to_repo) _setter("id", id) _setter("name", name) @@ -5836,12 +7460,26 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - full_path: str, - id: int, - kind: str, - name: str, - path: str, - opts: Optional[pulumi.ResourceOptions]=None): + full_path: Optional[str] = None, + id: Optional[int] = None, + kind: Optional[str] = None, + name: Optional[str] = None, + path: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if full_path is None and 'fullPath' in kwargs: + full_path = kwargs['fullPath'] + if full_path is None: + raise TypeError("Missing 'full_path' argument") + if id is None: + raise TypeError("Missing 'id' argument") + if kind is None: + raise TypeError("Missing 'kind' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if path is None: + raise TypeError("Missing 'path' argument") + _setter("full_path", full_path) _setter("id", id) _setter("kind", kind) @@ -5895,13 +7533,31 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - avatar_url: str, - id: int, - name: str, - state: str, - username: str, - website_url: str, - opts: Optional[pulumi.ResourceOptions]=None): + avatar_url: Optional[str] = None, + id: Optional[int] = None, + name: Optional[str] = None, + state: Optional[str] = None, + username: Optional[str] = None, + website_url: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if avatar_url is None and 'avatarUrl' in kwargs: + avatar_url = kwargs['avatarUrl'] + if avatar_url is None: + raise TypeError("Missing 'avatar_url' argument") + if id is None: + raise TypeError("Missing 'id' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if state is None: + raise TypeError("Missing 'state' argument") + if username is None: + raise TypeError("Missing 'username' argument") + if website_url is None and 'websiteUrl' in kwargs: + website_url = kwargs['websiteUrl'] + if website_url is None: + raise TypeError("Missing 'website_url' argument") + _setter("avatar_url", avatar_url) _setter("id", id) _setter("name", name) @@ -5953,9 +7609,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - group_access: Mapping[str, int], - project_access: Mapping[str, int], - opts: Optional[pulumi.ResourceOptions]=None): + group_access: Optional[Mapping[str, int]] = None, + project_access: Optional[Mapping[str, int]] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if group_access is None and 'groupAccess' in kwargs: + group_access = kwargs['groupAccess'] + if group_access is None: + raise TypeError("Missing 'group_access' argument") + if project_access is None and 'projectAccess' in kwargs: + project_access = kwargs['projectAccess'] + if project_access is None: + raise TypeError("Missing 'project_access' argument") + _setter("group_access", group_access) _setter("project_access", project_access) @@ -5985,10 +7651,24 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - group_access_level: str, - group_id: int, - group_name: str, - opts: Optional[pulumi.ResourceOptions]=None): + group_access_level: Optional[str] = None, + group_id: Optional[int] = None, + group_name: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if group_access_level is None and 'groupAccessLevel' in kwargs: + group_access_level = kwargs['groupAccessLevel'] + if group_access_level is None: + raise TypeError("Missing 'group_access_level' argument") + if group_id is None and 'groupId' in kwargs: + group_id = kwargs['groupId'] + if group_id is None: + raise TypeError("Missing 'group_id' argument") + if group_name is None and 'groupName' in kwargs: + group_name = kwargs['groupName'] + if group_name is None: + raise TypeError("Missing 'group_name' argument") + _setter("group_access_level", group_access_level) _setter("group_id", group_id) _setter("group_name", group_name) @@ -6036,16 +7716,44 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - direct_asset_url: str, - external: bool, - filepath: str, - link_id: int, - link_type: str, - name: str, - project: str, - tag_name: str, - url: str, - opts: Optional[pulumi.ResourceOptions]=None): + direct_asset_url: Optional[str] = None, + external: Optional[bool] = None, + filepath: Optional[str] = None, + link_id: Optional[int] = None, + link_type: Optional[str] = None, + name: Optional[str] = None, + project: Optional[str] = None, + tag_name: Optional[str] = None, + url: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if direct_asset_url is None and 'directAssetUrl' in kwargs: + direct_asset_url = kwargs['directAssetUrl'] + if direct_asset_url is None: + raise TypeError("Missing 'direct_asset_url' argument") + if external is None: + raise TypeError("Missing 'external' argument") + if filepath is None: + raise TypeError("Missing 'filepath' argument") + if link_id is None and 'linkId' in kwargs: + link_id = kwargs['linkId'] + if link_id is None: + raise TypeError("Missing 'link_id' argument") + if link_type is None and 'linkType' in kwargs: + link_type = kwargs['linkType'] + if link_type is None: + raise TypeError("Missing 'link_type' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if project is None: + raise TypeError("Missing 'project' argument") + if tag_name is None and 'tagName' in kwargs: + tag_name = kwargs['tagName'] + if tag_name is None: + raise TypeError("Missing 'tag_name' argument") + if url is None: + raise TypeError("Missing 'url' argument") + _setter("direct_asset_url", direct_asset_url) _setter("external", external) _setter("filepath", filepath) @@ -6121,12 +7829,24 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - id: str, - mode: str, - name: str, - path: str, - type: str, - opts: Optional[pulumi.ResourceOptions]=None): + id: Optional[str] = None, + mode: Optional[str] = None, + name: Optional[str] = None, + path: Optional[str] = None, + type: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if id is None: + raise TypeError("Missing 'id' argument") + if mode is None: + raise TypeError("Missing 'mode' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if path is None: + raise TypeError("Missing 'path' argument") + if type is None: + raise TypeError("Missing 'type' argument") + _setter("id", id) _setter("mode", mode) _setter("name", name) @@ -6180,13 +7900,35 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - created_at: str, - expires_at: str, - key: str, - key_id: int, - title: str, - user_id: int, - opts: Optional[pulumi.ResourceOptions]=None): + created_at: Optional[str] = None, + expires_at: Optional[str] = None, + key: Optional[str] = None, + key_id: Optional[int] = None, + title: Optional[str] = None, + user_id: Optional[int] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if created_at is None: + raise TypeError("Missing 'created_at' argument") + if expires_at is None and 'expiresAt' in kwargs: + expires_at = kwargs['expiresAt'] + if expires_at is None: + raise TypeError("Missing 'expires_at' argument") + if key is None: + raise TypeError("Missing 'key' argument") + if key_id is None and 'keyId' in kwargs: + key_id = kwargs['keyId'] + if key_id is None: + raise TypeError("Missing 'key_id' argument") + if title is None: + raise TypeError("Missing 'title' argument") + if user_id is None and 'userId' in kwargs: + user_id = kwargs['userId'] + if user_id is None: + raise TypeError("Missing 'user_id' argument") + _setter("created_at", created_at) _setter("expires_at", expires_at) _setter("key", key) @@ -6288,34 +8030,118 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - avatar_url: str, - bio: str, - can_create_group: bool, - can_create_project: bool, - color_scheme_id: int, - created_at: str, - current_sign_in_at: str, - email: str, - extern_uid: str, - external: bool, - id: int, - is_admin: bool, - last_sign_in_at: str, - linkedin: str, - location: str, - name: str, - namespace_id: int, - organization: str, - projects_limit: int, - provider: str, - skype: str, - state: str, - theme_id: int, - twitter: str, - two_factor_enabled: bool, - username: str, - website_url: str, - opts: Optional[pulumi.ResourceOptions]=None): + avatar_url: Optional[str] = None, + bio: Optional[str] = None, + can_create_group: Optional[bool] = None, + can_create_project: Optional[bool] = None, + color_scheme_id: Optional[int] = None, + created_at: Optional[str] = None, + current_sign_in_at: Optional[str] = None, + email: Optional[str] = None, + extern_uid: Optional[str] = None, + external: Optional[bool] = None, + id: Optional[int] = None, + is_admin: Optional[bool] = None, + last_sign_in_at: Optional[str] = None, + linkedin: Optional[str] = None, + location: Optional[str] = None, + name: Optional[str] = None, + namespace_id: Optional[int] = None, + organization: Optional[str] = None, + projects_limit: Optional[int] = None, + provider: Optional[str] = None, + skype: Optional[str] = None, + state: Optional[str] = None, + theme_id: Optional[int] = None, + twitter: Optional[str] = None, + two_factor_enabled: Optional[bool] = None, + username: Optional[str] = None, + website_url: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if avatar_url is None and 'avatarUrl' in kwargs: + avatar_url = kwargs['avatarUrl'] + if avatar_url is None: + raise TypeError("Missing 'avatar_url' argument") + if bio is None: + raise TypeError("Missing 'bio' argument") + if can_create_group is None and 'canCreateGroup' in kwargs: + can_create_group = kwargs['canCreateGroup'] + if can_create_group is None: + raise TypeError("Missing 'can_create_group' argument") + if can_create_project is None and 'canCreateProject' in kwargs: + can_create_project = kwargs['canCreateProject'] + if can_create_project is None: + raise TypeError("Missing 'can_create_project' argument") + if color_scheme_id is None and 'colorSchemeId' in kwargs: + color_scheme_id = kwargs['colorSchemeId'] + if color_scheme_id is None: + raise TypeError("Missing 'color_scheme_id' argument") + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if created_at is None: + raise TypeError("Missing 'created_at' argument") + if current_sign_in_at is None and 'currentSignInAt' in kwargs: + current_sign_in_at = kwargs['currentSignInAt'] + if current_sign_in_at is None: + raise TypeError("Missing 'current_sign_in_at' argument") + if email is None: + raise TypeError("Missing 'email' argument") + if extern_uid is None and 'externUid' in kwargs: + extern_uid = kwargs['externUid'] + if extern_uid is None: + raise TypeError("Missing 'extern_uid' argument") + if external is None: + raise TypeError("Missing 'external' argument") + if id is None: + raise TypeError("Missing 'id' argument") + if is_admin is None and 'isAdmin' in kwargs: + is_admin = kwargs['isAdmin'] + if is_admin is None: + raise TypeError("Missing 'is_admin' argument") + if last_sign_in_at is None and 'lastSignInAt' in kwargs: + last_sign_in_at = kwargs['lastSignInAt'] + if last_sign_in_at is None: + raise TypeError("Missing 'last_sign_in_at' argument") + if linkedin is None: + raise TypeError("Missing 'linkedin' argument") + if location is None: + raise TypeError("Missing 'location' argument") + if name is None: + raise TypeError("Missing 'name' argument") + if namespace_id is None and 'namespaceId' in kwargs: + namespace_id = kwargs['namespaceId'] + if namespace_id is None: + raise TypeError("Missing 'namespace_id' argument") + if organization is None: + raise TypeError("Missing 'organization' argument") + if projects_limit is None and 'projectsLimit' in kwargs: + projects_limit = kwargs['projectsLimit'] + if projects_limit is None: + raise TypeError("Missing 'projects_limit' argument") + if provider is None: + raise TypeError("Missing 'provider' argument") + if skype is None: + raise TypeError("Missing 'skype' argument") + if state is None: + raise TypeError("Missing 'state' argument") + if theme_id is None and 'themeId' in kwargs: + theme_id = kwargs['themeId'] + if theme_id is None: + raise TypeError("Missing 'theme_id' argument") + if twitter is None: + raise TypeError("Missing 'twitter' argument") + if two_factor_enabled is None and 'twoFactorEnabled' in kwargs: + two_factor_enabled = kwargs['twoFactorEnabled'] + if two_factor_enabled is None: + raise TypeError("Missing 'two_factor_enabled' argument") + if username is None: + raise TypeError("Missing 'username' argument") + if website_url is None and 'websiteUrl' in kwargs: + website_url = kwargs['websiteUrl'] + if website_url is None: + raise TypeError("Missing 'website_url' argument") + _setter("avatar_url", avatar_url) _setter("bio", bio) _setter("can_create_group", can_create_group) diff --git a/sdk/python/pulumi_gitlab/pages_domain.py b/sdk/python/pulumi_gitlab/pages_domain.py index d9630afb..09e4d96f 100644 --- a/sdk/python/pulumi_gitlab/pages_domain.py +++ b/sdk/python/pulumi_gitlab/pages_domain.py @@ -41,13 +41,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - domain: pulumi.Input[str], - project: pulumi.Input[str], + domain: Optional[pulumi.Input[str]] = None, + project: Optional[pulumi.Input[str]] = None, auto_ssl_enabled: Optional[pulumi.Input[bool]] = None, certificate: Optional[pulumi.Input[str]] = None, expired: Optional[pulumi.Input[bool]] = None, key: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if domain is None: + raise TypeError("Missing 'domain' argument") + if project is None: + raise TypeError("Missing 'project' argument") + if auto_ssl_enabled is None and 'autoSslEnabled' in kwargs: + auto_ssl_enabled = kwargs['autoSslEnabled'] + _setter("domain", domain) _setter("project", project) if auto_ssl_enabled is not None: @@ -180,7 +188,13 @@ def _configure( url: Optional[pulumi.Input[str]] = None, verification_code: Optional[pulumi.Input[str]] = None, verified: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if auto_ssl_enabled is None and 'autoSslEnabled' in kwargs: + auto_ssl_enabled = kwargs['autoSslEnabled'] + if verification_code is None and 'verificationCode' in kwargs: + verification_code = kwargs['verificationCode'] + if auto_ssl_enabled is not None: _setter("auto_ssl_enabled", auto_ssl_enabled) if certificate is not None: @@ -326,25 +340,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/pages_domains.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - # Example using auto_ssl_enabled, which uses lets encrypt to generate a certificate - this_pages_domain = gitlab.PagesDomain("thisPagesDomain", - project="123", - domain="example.com", - auto_ssl_enabled=True) - # Example using a manually generated certificate and key - this_index_pages_domain_pages_domain = gitlab.PagesDomain("thisIndex/pagesDomainPagesDomain", - project="123", - domain="example.com", - key=(lambda path: open(path).read())(f"{path['module']}/key.pem"), - certificate=(lambda path: open(path).read())(f"{path['module']}/cert.pem")) - ``` - ## Import GitLab pages domain can be imported using an id made up of `projectId:domain` _without_ the http protocol, e.g. @@ -373,25 +368,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/pages_domains.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - # Example using auto_ssl_enabled, which uses lets encrypt to generate a certificate - this_pages_domain = gitlab.PagesDomain("thisPagesDomain", - project="123", - domain="example.com", - auto_ssl_enabled=True) - # Example using a manually generated certificate and key - this_index_pages_domain_pages_domain = gitlab.PagesDomain("thisIndex/pagesDomainPagesDomain", - project="123", - domain="example.com", - key=(lambda path: open(path).read())(f"{path['module']}/key.pem"), - certificate=(lambda path: open(path).read())(f"{path['module']}/cert.pem")) - ``` - ## Import GitLab pages domain can be imported using an id made up of `projectId:domain` _without_ the http protocol, e.g. diff --git a/sdk/python/pulumi_gitlab/personal_access_token.py b/sdk/python/pulumi_gitlab/personal_access_token.py index e1db712e..06b8e7a8 100644 --- a/sdk/python/pulumi_gitlab/personal_access_token.py +++ b/sdk/python/pulumi_gitlab/personal_access_token.py @@ -35,11 +35,23 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - expires_at: pulumi.Input[str], - scopes: pulumi.Input[Sequence[pulumi.Input[str]]], - user_id: pulumi.Input[int], + expires_at: Optional[pulumi.Input[str]] = None, + scopes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + user_id: Optional[pulumi.Input[int]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if expires_at is None and 'expiresAt' in kwargs: + expires_at = kwargs['expiresAt'] + if expires_at is None: + raise TypeError("Missing 'expires_at' argument") + if scopes is None: + raise TypeError("Missing 'scopes' argument") + if user_id is None and 'userId' in kwargs: + user_id = kwargs['userId'] + if user_id is None: + raise TypeError("Missing 'user_id' argument") + _setter("expires_at", expires_at) _setter("scopes", scopes) _setter("user_id", user_id) @@ -139,7 +151,15 @@ def _configure( scopes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, token: Optional[pulumi.Input[str]] = None, user_id: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if expires_at is None and 'expiresAt' in kwargs: + expires_at = kwargs['expiresAt'] + if user_id is None and 'userId' in kwargs: + user_id = kwargs['userId'] + if active is not None: _setter("active", active) if created_at is not None: @@ -271,22 +291,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/personal_access_tokens.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example_personal_access_token = gitlab.PersonalAccessToken("examplePersonalAccessToken", - user_id=25, - expires_at="2020-03-14", - scopes=["api"]) - example_project_variable = gitlab.ProjectVariable("exampleProjectVariable", - project=gitlab_project["example"]["id"], - key="pat", - value=example_personal_access_token.token) - ``` - ## Import A GitLab Personal Access Token can be imported using a key composed of `:`, e.g. @@ -317,22 +321,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/personal_access_tokens.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example_personal_access_token = gitlab.PersonalAccessToken("examplePersonalAccessToken", - user_id=25, - expires_at="2020-03-14", - scopes=["api"]) - example_project_variable = gitlab.ProjectVariable("exampleProjectVariable", - project=gitlab_project["example"]["id"], - key="pat", - value=example_personal_access_token.token) - ``` - ## Import A GitLab Personal Access Token can be imported using a key composed of `:`, e.g. diff --git a/sdk/python/pulumi_gitlab/pipeline_schedule.py b/sdk/python/pulumi_gitlab/pipeline_schedule.py index 432f291c..cd0cc3e0 100644 --- a/sdk/python/pulumi_gitlab/pipeline_schedule.py +++ b/sdk/python/pulumi_gitlab/pipeline_schedule.py @@ -41,13 +41,25 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - cron: pulumi.Input[str], - description: pulumi.Input[str], - project: pulumi.Input[str], - ref: pulumi.Input[str], + cron: Optional[pulumi.Input[str]] = None, + description: Optional[pulumi.Input[str]] = None, + project: Optional[pulumi.Input[str]] = None, + ref: Optional[pulumi.Input[str]] = None, active: Optional[pulumi.Input[bool]] = None, cron_timezone: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if cron is None: + raise TypeError("Missing 'cron' argument") + if description is None: + raise TypeError("Missing 'description' argument") + if project is None: + raise TypeError("Missing 'project' argument") + if ref is None: + raise TypeError("Missing 'ref' argument") + if cron_timezone is None and 'cronTimezone' in kwargs: + cron_timezone = kwargs['cronTimezone'] + _setter("cron", cron) _setter("description", description) _setter("project", project) @@ -170,7 +182,13 @@ def _configure( pipeline_schedule_id: Optional[pulumi.Input[int]] = None, project: Optional[pulumi.Input[str]] = None, ref: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if cron_timezone is None and 'cronTimezone' in kwargs: + cron_timezone = kwargs['cronTimezone'] + if pipeline_schedule_id is None and 'pipelineScheduleId' in kwargs: + pipeline_schedule_id = kwargs['pipelineScheduleId'] + if active is not None: _setter("active", active) if cron is not None: @@ -288,19 +306,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/pipeline_schedules.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.PipelineSchedule("example", - cron="0 1 * * *", - description="Used to schedule builds", - project="12345", - ref="master") - ``` - ## Import GitLab pipeline schedules can be imported using an id made up of `{project_id}:{pipeline_schedule_id}`, e.g. @@ -329,19 +334,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/pipeline_schedules.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.PipelineSchedule("example", - cron="0 1 * * *", - description="Used to schedule builds", - project="12345", - ref="master") - ``` - ## Import GitLab pipeline schedules can be imported using an id made up of `{project_id}:{pipeline_schedule_id}`, e.g. diff --git a/sdk/python/pulumi_gitlab/pipeline_schedule_variable.py b/sdk/python/pulumi_gitlab/pipeline_schedule_variable.py index 4a0873bc..effca297 100644 --- a/sdk/python/pulumi_gitlab/pipeline_schedule_variable.py +++ b/sdk/python/pulumi_gitlab/pipeline_schedule_variable.py @@ -35,11 +35,23 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - key: pulumi.Input[str], - pipeline_schedule_id: pulumi.Input[int], - project: pulumi.Input[str], - value: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + key: Optional[pulumi.Input[str]] = None, + pipeline_schedule_id: Optional[pulumi.Input[int]] = None, + project: Optional[pulumi.Input[str]] = None, + value: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if key is None: + raise TypeError("Missing 'key' argument") + if pipeline_schedule_id is None and 'pipelineScheduleId' in kwargs: + pipeline_schedule_id = kwargs['pipelineScheduleId'] + if pipeline_schedule_id is None: + raise TypeError("Missing 'pipeline_schedule_id' argument") + if project is None: + raise TypeError("Missing 'project' argument") + if value is None: + raise TypeError("Missing 'value' argument") + _setter("key", key) _setter("pipeline_schedule_id", pipeline_schedule_id) _setter("project", project) @@ -122,7 +134,11 @@ def _configure( pipeline_schedule_id: Optional[pulumi.Input[int]] = None, project: Optional[pulumi.Input[str]] = None, value: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if pipeline_schedule_id is None and 'pipelineScheduleId' in kwargs: + pipeline_schedule_id = kwargs['pipelineScheduleId'] + if key is not None: _setter("key", key) if pipeline_schedule_id is not None: @@ -196,24 +212,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/pipeline_schedules.html#pipeline-schedule-variables) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example_pipeline_schedule = gitlab.PipelineSchedule("examplePipelineSchedule", - project="12345", - description="Used to schedule builds", - ref="master", - cron="0 1 * * *") - example_pipeline_schedule_variable = gitlab.PipelineScheduleVariable("examplePipelineScheduleVariable", - project=example_pipeline_schedule.project, - pipeline_schedule_id=example_pipeline_schedule.pipeline_schedule_id, - key="EXAMPLE_KEY", - value="example") - ``` - ## Import Pipeline schedule variables can be imported using an id made up of `project_id:pipeline_schedule_id:key`, e.g. @@ -240,24 +238,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/pipeline_schedules.html#pipeline-schedule-variables) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example_pipeline_schedule = gitlab.PipelineSchedule("examplePipelineSchedule", - project="12345", - description="Used to schedule builds", - ref="master", - cron="0 1 * * *") - example_pipeline_schedule_variable = gitlab.PipelineScheduleVariable("examplePipelineScheduleVariable", - project=example_pipeline_schedule.project, - pipeline_schedule_id=example_pipeline_schedule.pipeline_schedule_id, - key="EXAMPLE_KEY", - value="example") - ``` - ## Import Pipeline schedule variables can be imported using an id made up of `project_id:pipeline_schedule_id:key`, e.g. diff --git a/sdk/python/pulumi_gitlab/pipeline_trigger.py b/sdk/python/pulumi_gitlab/pipeline_trigger.py index dc236214..c85d19c1 100644 --- a/sdk/python/pulumi_gitlab/pipeline_trigger.py +++ b/sdk/python/pulumi_gitlab/pipeline_trigger.py @@ -29,9 +29,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - description: pulumi.Input[str], - project: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + description: Optional[pulumi.Input[str]] = None, + project: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if description is None: + raise TypeError("Missing 'description' argument") + if project is None: + raise TypeError("Missing 'project' argument") + _setter("description", description) _setter("project", project) @@ -88,7 +94,11 @@ def _configure( pipeline_trigger_id: Optional[pulumi.Input[int]] = None, project: Optional[pulumi.Input[str]] = None, token: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if pipeline_trigger_id is None and 'pipelineTriggerId' in kwargs: + pipeline_trigger_id = kwargs['pipelineTriggerId'] + if description is not None: _setter("description", description) if pipeline_trigger_id is not None: @@ -160,17 +170,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/pipeline_triggers.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.PipelineTrigger("example", - description="Used to trigger builds", - project="12345") - ``` - ## Import GitLab pipeline triggers can be imported using an id made up of `{project_id}:{pipeline_trigger_id}`, e.g. @@ -195,17 +194,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/pipeline_triggers.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.PipelineTrigger("example", - description="Used to trigger builds", - project="12345") - ``` - ## Import GitLab pipeline triggers can be imported using an id made up of `{project_id}:{pipeline_trigger_id}`, e.g. diff --git a/sdk/python/pulumi_gitlab/project.py b/sdk/python/pulumi_gitlab/project.py index 6acab75a..0da9b519 100644 --- a/sdk/python/pulumi_gitlab/project.py +++ b/sdk/python/pulumi_gitlab/project.py @@ -396,7 +396,171 @@ def _configure( visibility_level: Optional[pulumi.Input[str]] = None, wiki_access_level: Optional[pulumi.Input[str]] = None, wiki_enabled: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if allow_merge_on_skipped_pipeline is None and 'allowMergeOnSkippedPipeline' in kwargs: + allow_merge_on_skipped_pipeline = kwargs['allowMergeOnSkippedPipeline'] + if analytics_access_level is None and 'analyticsAccessLevel' in kwargs: + analytics_access_level = kwargs['analyticsAccessLevel'] + if approvals_before_merge is None and 'approvalsBeforeMerge' in kwargs: + approvals_before_merge = kwargs['approvalsBeforeMerge'] + if archive_on_destroy is None and 'archiveOnDestroy' in kwargs: + archive_on_destroy = kwargs['archiveOnDestroy'] + if auto_cancel_pending_pipelines is None and 'autoCancelPendingPipelines' in kwargs: + auto_cancel_pending_pipelines = kwargs['autoCancelPendingPipelines'] + if auto_devops_deploy_strategy is None and 'autoDevopsDeployStrategy' in kwargs: + auto_devops_deploy_strategy = kwargs['autoDevopsDeployStrategy'] + if auto_devops_enabled is None and 'autoDevopsEnabled' in kwargs: + auto_devops_enabled = kwargs['autoDevopsEnabled'] + if autoclose_referenced_issues is None and 'autocloseReferencedIssues' in kwargs: + autoclose_referenced_issues = kwargs['autocloseReferencedIssues'] + if avatar_hash is None and 'avatarHash' in kwargs: + avatar_hash = kwargs['avatarHash'] + if build_coverage_regex is None and 'buildCoverageRegex' in kwargs: + build_coverage_regex = kwargs['buildCoverageRegex'] + if build_git_strategy is None and 'buildGitStrategy' in kwargs: + build_git_strategy = kwargs['buildGitStrategy'] + if build_timeout is None and 'buildTimeout' in kwargs: + build_timeout = kwargs['buildTimeout'] + if builds_access_level is None and 'buildsAccessLevel' in kwargs: + builds_access_level = kwargs['buildsAccessLevel'] + if ci_config_path is None and 'ciConfigPath' in kwargs: + ci_config_path = kwargs['ciConfigPath'] + if ci_default_git_depth is None and 'ciDefaultGitDepth' in kwargs: + ci_default_git_depth = kwargs['ciDefaultGitDepth'] + if ci_forward_deployment_enabled is None and 'ciForwardDeploymentEnabled' in kwargs: + ci_forward_deployment_enabled = kwargs['ciForwardDeploymentEnabled'] + if ci_separated_caches is None and 'ciSeparatedCaches' in kwargs: + ci_separated_caches = kwargs['ciSeparatedCaches'] + if container_expiration_policy is None and 'containerExpirationPolicy' in kwargs: + container_expiration_policy = kwargs['containerExpirationPolicy'] + if container_registry_access_level is None and 'containerRegistryAccessLevel' in kwargs: + container_registry_access_level = kwargs['containerRegistryAccessLevel'] + if container_registry_enabled is None and 'containerRegistryEnabled' in kwargs: + container_registry_enabled = kwargs['containerRegistryEnabled'] + if default_branch is None and 'defaultBranch' in kwargs: + default_branch = kwargs['defaultBranch'] + if emails_disabled is None and 'emailsDisabled' in kwargs: + emails_disabled = kwargs['emailsDisabled'] + if environments_access_level is None and 'environmentsAccessLevel' in kwargs: + environments_access_level = kwargs['environmentsAccessLevel'] + if external_authorization_classification_label is None and 'externalAuthorizationClassificationLabel' in kwargs: + external_authorization_classification_label = kwargs['externalAuthorizationClassificationLabel'] + if feature_flags_access_level is None and 'featureFlagsAccessLevel' in kwargs: + feature_flags_access_level = kwargs['featureFlagsAccessLevel'] + if forked_from_project_id is None and 'forkedFromProjectId' in kwargs: + forked_from_project_id = kwargs['forkedFromProjectId'] + if forking_access_level is None and 'forkingAccessLevel' in kwargs: + forking_access_level = kwargs['forkingAccessLevel'] + if group_with_project_templates_id is None and 'groupWithProjectTemplatesId' in kwargs: + group_with_project_templates_id = kwargs['groupWithProjectTemplatesId'] + if import_url is None and 'importUrl' in kwargs: + import_url = kwargs['importUrl'] + if import_url_password is None and 'importUrlPassword' in kwargs: + import_url_password = kwargs['importUrlPassword'] + if import_url_username is None and 'importUrlUsername' in kwargs: + import_url_username = kwargs['importUrlUsername'] + if infrastructure_access_level is None and 'infrastructureAccessLevel' in kwargs: + infrastructure_access_level = kwargs['infrastructureAccessLevel'] + if initialize_with_readme is None and 'initializeWithReadme' in kwargs: + initialize_with_readme = kwargs['initializeWithReadme'] + if issues_access_level is None and 'issuesAccessLevel' in kwargs: + issues_access_level = kwargs['issuesAccessLevel'] + if issues_enabled is None and 'issuesEnabled' in kwargs: + issues_enabled = kwargs['issuesEnabled'] + if issues_template is None and 'issuesTemplate' in kwargs: + issues_template = kwargs['issuesTemplate'] + if keep_latest_artifact is None and 'keepLatestArtifact' in kwargs: + keep_latest_artifact = kwargs['keepLatestArtifact'] + if lfs_enabled is None and 'lfsEnabled' in kwargs: + lfs_enabled = kwargs['lfsEnabled'] + if merge_commit_template is None and 'mergeCommitTemplate' in kwargs: + merge_commit_template = kwargs['mergeCommitTemplate'] + if merge_method is None and 'mergeMethod' in kwargs: + merge_method = kwargs['mergeMethod'] + if merge_pipelines_enabled is None and 'mergePipelinesEnabled' in kwargs: + merge_pipelines_enabled = kwargs['mergePipelinesEnabled'] + if merge_requests_access_level is None and 'mergeRequestsAccessLevel' in kwargs: + merge_requests_access_level = kwargs['mergeRequestsAccessLevel'] + if merge_requests_enabled is None and 'mergeRequestsEnabled' in kwargs: + merge_requests_enabled = kwargs['mergeRequestsEnabled'] + if merge_requests_template is None and 'mergeRequestsTemplate' in kwargs: + merge_requests_template = kwargs['mergeRequestsTemplate'] + if merge_trains_enabled is None and 'mergeTrainsEnabled' in kwargs: + merge_trains_enabled = kwargs['mergeTrainsEnabled'] + if mirror_overwrites_diverged_branches is None and 'mirrorOverwritesDivergedBranches' in kwargs: + mirror_overwrites_diverged_branches = kwargs['mirrorOverwritesDivergedBranches'] + if mirror_trigger_builds is None and 'mirrorTriggerBuilds' in kwargs: + mirror_trigger_builds = kwargs['mirrorTriggerBuilds'] + if monitor_access_level is None and 'monitorAccessLevel' in kwargs: + monitor_access_level = kwargs['monitorAccessLevel'] + if mr_default_target_self is None and 'mrDefaultTargetSelf' in kwargs: + mr_default_target_self = kwargs['mrDefaultTargetSelf'] + if namespace_id is None and 'namespaceId' in kwargs: + namespace_id = kwargs['namespaceId'] + if only_allow_merge_if_all_discussions_are_resolved is None and 'onlyAllowMergeIfAllDiscussionsAreResolved' in kwargs: + only_allow_merge_if_all_discussions_are_resolved = kwargs['onlyAllowMergeIfAllDiscussionsAreResolved'] + if only_allow_merge_if_pipeline_succeeds is None and 'onlyAllowMergeIfPipelineSucceeds' in kwargs: + only_allow_merge_if_pipeline_succeeds = kwargs['onlyAllowMergeIfPipelineSucceeds'] + if only_mirror_protected_branches is None and 'onlyMirrorProtectedBranches' in kwargs: + only_mirror_protected_branches = kwargs['onlyMirrorProtectedBranches'] + if packages_enabled is None and 'packagesEnabled' in kwargs: + packages_enabled = kwargs['packagesEnabled'] + if pages_access_level is None and 'pagesAccessLevel' in kwargs: + pages_access_level = kwargs['pagesAccessLevel'] + if pipelines_enabled is None and 'pipelinesEnabled' in kwargs: + pipelines_enabled = kwargs['pipelinesEnabled'] + if printing_merge_request_link_enabled is None and 'printingMergeRequestLinkEnabled' in kwargs: + printing_merge_request_link_enabled = kwargs['printingMergeRequestLinkEnabled'] + if public_builds is None and 'publicBuilds' in kwargs: + public_builds = kwargs['publicBuilds'] + if push_rules is None and 'pushRules' in kwargs: + push_rules = kwargs['pushRules'] + if releases_access_level is None and 'releasesAccessLevel' in kwargs: + releases_access_level = kwargs['releasesAccessLevel'] + if remove_source_branch_after_merge is None and 'removeSourceBranchAfterMerge' in kwargs: + remove_source_branch_after_merge = kwargs['removeSourceBranchAfterMerge'] + if repository_access_level is None and 'repositoryAccessLevel' in kwargs: + repository_access_level = kwargs['repositoryAccessLevel'] + if repository_storage is None and 'repositoryStorage' in kwargs: + repository_storage = kwargs['repositoryStorage'] + if request_access_enabled is None and 'requestAccessEnabled' in kwargs: + request_access_enabled = kwargs['requestAccessEnabled'] + if requirements_access_level is None and 'requirementsAccessLevel' in kwargs: + requirements_access_level = kwargs['requirementsAccessLevel'] + if resolve_outdated_diff_discussions is None and 'resolveOutdatedDiffDiscussions' in kwargs: + resolve_outdated_diff_discussions = kwargs['resolveOutdatedDiffDiscussions'] + if restrict_user_defined_variables is None and 'restrictUserDefinedVariables' in kwargs: + restrict_user_defined_variables = kwargs['restrictUserDefinedVariables'] + if security_and_compliance_access_level is None and 'securityAndComplianceAccessLevel' in kwargs: + security_and_compliance_access_level = kwargs['securityAndComplianceAccessLevel'] + if shared_runners_enabled is None and 'sharedRunnersEnabled' in kwargs: + shared_runners_enabled = kwargs['sharedRunnersEnabled'] + if skip_wait_for_default_branch_protection is None and 'skipWaitForDefaultBranchProtection' in kwargs: + skip_wait_for_default_branch_protection = kwargs['skipWaitForDefaultBranchProtection'] + if snippets_access_level is None and 'snippetsAccessLevel' in kwargs: + snippets_access_level = kwargs['snippetsAccessLevel'] + if snippets_enabled is None and 'snippetsEnabled' in kwargs: + snippets_enabled = kwargs['snippetsEnabled'] + if squash_commit_template is None and 'squashCommitTemplate' in kwargs: + squash_commit_template = kwargs['squashCommitTemplate'] + if squash_option is None and 'squashOption' in kwargs: + squash_option = kwargs['squashOption'] + if suggestion_commit_message is None and 'suggestionCommitMessage' in kwargs: + suggestion_commit_message = kwargs['suggestionCommitMessage'] + if template_name is None and 'templateName' in kwargs: + template_name = kwargs['templateName'] + if template_project_id is None and 'templateProjectId' in kwargs: + template_project_id = kwargs['templateProjectId'] + if use_custom_template is None and 'useCustomTemplate' in kwargs: + use_custom_template = kwargs['useCustomTemplate'] + if visibility_level is None and 'visibilityLevel' in kwargs: + visibility_level = kwargs['visibilityLevel'] + if wiki_access_level is None and 'wikiAccessLevel' in kwargs: + wiki_access_level = kwargs['wikiAccessLevel'] + if wiki_enabled is None and 'wikiEnabled' in kwargs: + wiki_enabled = kwargs['wikiEnabled'] + if allow_merge_on_skipped_pipeline is not None: _setter("allow_merge_on_skipped_pipeline", allow_merge_on_skipped_pipeline) if analytics_access_level is not None: @@ -2085,7 +2249,183 @@ def _configure( web_url: Optional[pulumi.Input[str]] = None, wiki_access_level: Optional[pulumi.Input[str]] = None, wiki_enabled: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if allow_merge_on_skipped_pipeline is None and 'allowMergeOnSkippedPipeline' in kwargs: + allow_merge_on_skipped_pipeline = kwargs['allowMergeOnSkippedPipeline'] + if analytics_access_level is None and 'analyticsAccessLevel' in kwargs: + analytics_access_level = kwargs['analyticsAccessLevel'] + if approvals_before_merge is None and 'approvalsBeforeMerge' in kwargs: + approvals_before_merge = kwargs['approvalsBeforeMerge'] + if archive_on_destroy is None and 'archiveOnDestroy' in kwargs: + archive_on_destroy = kwargs['archiveOnDestroy'] + if auto_cancel_pending_pipelines is None and 'autoCancelPendingPipelines' in kwargs: + auto_cancel_pending_pipelines = kwargs['autoCancelPendingPipelines'] + if auto_devops_deploy_strategy is None and 'autoDevopsDeployStrategy' in kwargs: + auto_devops_deploy_strategy = kwargs['autoDevopsDeployStrategy'] + if auto_devops_enabled is None and 'autoDevopsEnabled' in kwargs: + auto_devops_enabled = kwargs['autoDevopsEnabled'] + if autoclose_referenced_issues is None and 'autocloseReferencedIssues' in kwargs: + autoclose_referenced_issues = kwargs['autocloseReferencedIssues'] + if avatar_hash is None and 'avatarHash' in kwargs: + avatar_hash = kwargs['avatarHash'] + if avatar_url is None and 'avatarUrl' in kwargs: + avatar_url = kwargs['avatarUrl'] + if build_coverage_regex is None and 'buildCoverageRegex' in kwargs: + build_coverage_regex = kwargs['buildCoverageRegex'] + if build_git_strategy is None and 'buildGitStrategy' in kwargs: + build_git_strategy = kwargs['buildGitStrategy'] + if build_timeout is None and 'buildTimeout' in kwargs: + build_timeout = kwargs['buildTimeout'] + if builds_access_level is None and 'buildsAccessLevel' in kwargs: + builds_access_level = kwargs['buildsAccessLevel'] + if ci_config_path is None and 'ciConfigPath' in kwargs: + ci_config_path = kwargs['ciConfigPath'] + if ci_default_git_depth is None and 'ciDefaultGitDepth' in kwargs: + ci_default_git_depth = kwargs['ciDefaultGitDepth'] + if ci_forward_deployment_enabled is None and 'ciForwardDeploymentEnabled' in kwargs: + ci_forward_deployment_enabled = kwargs['ciForwardDeploymentEnabled'] + if ci_separated_caches is None and 'ciSeparatedCaches' in kwargs: + ci_separated_caches = kwargs['ciSeparatedCaches'] + if container_expiration_policy is None and 'containerExpirationPolicy' in kwargs: + container_expiration_policy = kwargs['containerExpirationPolicy'] + if container_registry_access_level is None and 'containerRegistryAccessLevel' in kwargs: + container_registry_access_level = kwargs['containerRegistryAccessLevel'] + if container_registry_enabled is None and 'containerRegistryEnabled' in kwargs: + container_registry_enabled = kwargs['containerRegistryEnabled'] + if default_branch is None and 'defaultBranch' in kwargs: + default_branch = kwargs['defaultBranch'] + if emails_disabled is None and 'emailsDisabled' in kwargs: + emails_disabled = kwargs['emailsDisabled'] + if environments_access_level is None and 'environmentsAccessLevel' in kwargs: + environments_access_level = kwargs['environmentsAccessLevel'] + if external_authorization_classification_label is None and 'externalAuthorizationClassificationLabel' in kwargs: + external_authorization_classification_label = kwargs['externalAuthorizationClassificationLabel'] + if feature_flags_access_level is None and 'featureFlagsAccessLevel' in kwargs: + feature_flags_access_level = kwargs['featureFlagsAccessLevel'] + if forked_from_project_id is None and 'forkedFromProjectId' in kwargs: + forked_from_project_id = kwargs['forkedFromProjectId'] + if forking_access_level is None and 'forkingAccessLevel' in kwargs: + forking_access_level = kwargs['forkingAccessLevel'] + if group_with_project_templates_id is None and 'groupWithProjectTemplatesId' in kwargs: + group_with_project_templates_id = kwargs['groupWithProjectTemplatesId'] + if http_url_to_repo is None and 'httpUrlToRepo' in kwargs: + http_url_to_repo = kwargs['httpUrlToRepo'] + if import_url is None and 'importUrl' in kwargs: + import_url = kwargs['importUrl'] + if import_url_password is None and 'importUrlPassword' in kwargs: + import_url_password = kwargs['importUrlPassword'] + if import_url_username is None and 'importUrlUsername' in kwargs: + import_url_username = kwargs['importUrlUsername'] + if infrastructure_access_level is None and 'infrastructureAccessLevel' in kwargs: + infrastructure_access_level = kwargs['infrastructureAccessLevel'] + if initialize_with_readme is None and 'initializeWithReadme' in kwargs: + initialize_with_readme = kwargs['initializeWithReadme'] + if issues_access_level is None and 'issuesAccessLevel' in kwargs: + issues_access_level = kwargs['issuesAccessLevel'] + if issues_enabled is None and 'issuesEnabled' in kwargs: + issues_enabled = kwargs['issuesEnabled'] + if issues_template is None and 'issuesTemplate' in kwargs: + issues_template = kwargs['issuesTemplate'] + if keep_latest_artifact is None and 'keepLatestArtifact' in kwargs: + keep_latest_artifact = kwargs['keepLatestArtifact'] + if lfs_enabled is None and 'lfsEnabled' in kwargs: + lfs_enabled = kwargs['lfsEnabled'] + if merge_commit_template is None and 'mergeCommitTemplate' in kwargs: + merge_commit_template = kwargs['mergeCommitTemplate'] + if merge_method is None and 'mergeMethod' in kwargs: + merge_method = kwargs['mergeMethod'] + if merge_pipelines_enabled is None and 'mergePipelinesEnabled' in kwargs: + merge_pipelines_enabled = kwargs['mergePipelinesEnabled'] + if merge_requests_access_level is None and 'mergeRequestsAccessLevel' in kwargs: + merge_requests_access_level = kwargs['mergeRequestsAccessLevel'] + if merge_requests_enabled is None and 'mergeRequestsEnabled' in kwargs: + merge_requests_enabled = kwargs['mergeRequestsEnabled'] + if merge_requests_template is None and 'mergeRequestsTemplate' in kwargs: + merge_requests_template = kwargs['mergeRequestsTemplate'] + if merge_trains_enabled is None and 'mergeTrainsEnabled' in kwargs: + merge_trains_enabled = kwargs['mergeTrainsEnabled'] + if mirror_overwrites_diverged_branches is None and 'mirrorOverwritesDivergedBranches' in kwargs: + mirror_overwrites_diverged_branches = kwargs['mirrorOverwritesDivergedBranches'] + if mirror_trigger_builds is None and 'mirrorTriggerBuilds' in kwargs: + mirror_trigger_builds = kwargs['mirrorTriggerBuilds'] + if monitor_access_level is None and 'monitorAccessLevel' in kwargs: + monitor_access_level = kwargs['monitorAccessLevel'] + if mr_default_target_self is None and 'mrDefaultTargetSelf' in kwargs: + mr_default_target_self = kwargs['mrDefaultTargetSelf'] + if namespace_id is None and 'namespaceId' in kwargs: + namespace_id = kwargs['namespaceId'] + if only_allow_merge_if_all_discussions_are_resolved is None and 'onlyAllowMergeIfAllDiscussionsAreResolved' in kwargs: + only_allow_merge_if_all_discussions_are_resolved = kwargs['onlyAllowMergeIfAllDiscussionsAreResolved'] + if only_allow_merge_if_pipeline_succeeds is None and 'onlyAllowMergeIfPipelineSucceeds' in kwargs: + only_allow_merge_if_pipeline_succeeds = kwargs['onlyAllowMergeIfPipelineSucceeds'] + if only_mirror_protected_branches is None and 'onlyMirrorProtectedBranches' in kwargs: + only_mirror_protected_branches = kwargs['onlyMirrorProtectedBranches'] + if packages_enabled is None and 'packagesEnabled' in kwargs: + packages_enabled = kwargs['packagesEnabled'] + if pages_access_level is None and 'pagesAccessLevel' in kwargs: + pages_access_level = kwargs['pagesAccessLevel'] + if path_with_namespace is None and 'pathWithNamespace' in kwargs: + path_with_namespace = kwargs['pathWithNamespace'] + if pipelines_enabled is None and 'pipelinesEnabled' in kwargs: + pipelines_enabled = kwargs['pipelinesEnabled'] + if printing_merge_request_link_enabled is None and 'printingMergeRequestLinkEnabled' in kwargs: + printing_merge_request_link_enabled = kwargs['printingMergeRequestLinkEnabled'] + if public_builds is None and 'publicBuilds' in kwargs: + public_builds = kwargs['publicBuilds'] + if push_rules is None and 'pushRules' in kwargs: + push_rules = kwargs['pushRules'] + if releases_access_level is None and 'releasesAccessLevel' in kwargs: + releases_access_level = kwargs['releasesAccessLevel'] + if remove_source_branch_after_merge is None and 'removeSourceBranchAfterMerge' in kwargs: + remove_source_branch_after_merge = kwargs['removeSourceBranchAfterMerge'] + if repository_access_level is None and 'repositoryAccessLevel' in kwargs: + repository_access_level = kwargs['repositoryAccessLevel'] + if repository_storage is None and 'repositoryStorage' in kwargs: + repository_storage = kwargs['repositoryStorage'] + if request_access_enabled is None and 'requestAccessEnabled' in kwargs: + request_access_enabled = kwargs['requestAccessEnabled'] + if requirements_access_level is None and 'requirementsAccessLevel' in kwargs: + requirements_access_level = kwargs['requirementsAccessLevel'] + if resolve_outdated_diff_discussions is None and 'resolveOutdatedDiffDiscussions' in kwargs: + resolve_outdated_diff_discussions = kwargs['resolveOutdatedDiffDiscussions'] + if restrict_user_defined_variables is None and 'restrictUserDefinedVariables' in kwargs: + restrict_user_defined_variables = kwargs['restrictUserDefinedVariables'] + if runners_token is None and 'runnersToken' in kwargs: + runners_token = kwargs['runnersToken'] + if security_and_compliance_access_level is None and 'securityAndComplianceAccessLevel' in kwargs: + security_and_compliance_access_level = kwargs['securityAndComplianceAccessLevel'] + if shared_runners_enabled is None and 'sharedRunnersEnabled' in kwargs: + shared_runners_enabled = kwargs['sharedRunnersEnabled'] + if skip_wait_for_default_branch_protection is None and 'skipWaitForDefaultBranchProtection' in kwargs: + skip_wait_for_default_branch_protection = kwargs['skipWaitForDefaultBranchProtection'] + if snippets_access_level is None and 'snippetsAccessLevel' in kwargs: + snippets_access_level = kwargs['snippetsAccessLevel'] + if snippets_enabled is None and 'snippetsEnabled' in kwargs: + snippets_enabled = kwargs['snippetsEnabled'] + if squash_commit_template is None and 'squashCommitTemplate' in kwargs: + squash_commit_template = kwargs['squashCommitTemplate'] + if squash_option is None and 'squashOption' in kwargs: + squash_option = kwargs['squashOption'] + if ssh_url_to_repo is None and 'sshUrlToRepo' in kwargs: + ssh_url_to_repo = kwargs['sshUrlToRepo'] + if suggestion_commit_message is None and 'suggestionCommitMessage' in kwargs: + suggestion_commit_message = kwargs['suggestionCommitMessage'] + if template_name is None and 'templateName' in kwargs: + template_name = kwargs['templateName'] + if template_project_id is None and 'templateProjectId' in kwargs: + template_project_id = kwargs['templateProjectId'] + if use_custom_template is None and 'useCustomTemplate' in kwargs: + use_custom_template = kwargs['useCustomTemplate'] + if visibility_level is None and 'visibilityLevel' in kwargs: + visibility_level = kwargs['visibilityLevel'] + if web_url is None and 'webUrl' in kwargs: + web_url = kwargs['webUrl'] + if wiki_access_level is None and 'wikiAccessLevel' in kwargs: + wiki_access_level = kwargs['wikiAccessLevel'] + if wiki_enabled is None and 'wikiEnabled' in kwargs: + wiki_enabled = kwargs['wikiEnabled'] + if allow_merge_on_skipped_pipeline is not None: _setter("allow_merge_on_skipped_pipeline", allow_merge_on_skipped_pipeline) if analytics_access_level is not None: @@ -3547,59 +3887,6 @@ def __init__(__self__, wiki_enabled: Optional[pulumi.Input[bool]] = None, __props__=None): """ - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.Project("example", - description="My awesome codebase", - visibility_level="public") - # Project with custom push rules - example_two = gitlab.Project("example-two", push_rules=gitlab.ProjectPushRulesArgs( - author_email_regex="@example\\\\.com$", - commit_committer_check=True, - member_check=True, - prevent_secrets=True, - )) - peter_parker = gitlab.get_user(username="peter_parker") - peters_repo = gitlab.Project("petersRepo", - description="This is a description", - namespace_id=peter_parker.namespace_id) - # Fork a project - fork_project = gitlab.Project("forkProject", - description="This is a fork", - forked_from_project_id=example.id) - # Fork a project and setup a pull mirror - fork_index_project_project = gitlab.Project("forkIndex/projectProject", - description="This is a fork", - forked_from_project_id=example.id, - import_url=example.http_url_to_repo, - mirror=True) - # Create a project by importing it from a public project - import_public = gitlab.Project("importPublic", import_url="https://gitlab.example.com/repo.git") - # Create a project by importing it from a public project and setup the pull mirror - import_public_with_mirror = gitlab.Project("importPublicWithMirror", - import_url="https://gitlab.example.com/repo.git", - mirror=True) - # Create a project by importing it from a private project - import_private_project = gitlab.Project("importPrivateProject", - import_url="https://gitlab.example.com/repo.git", - import_url_username="user", - import_url_password="pass") - # Create a project by importing it from a private project and setup the pull mirror - import_private_with_mirror = gitlab.Project("importPrivateWithMirror", - import_url="https://gitlab.example.com/repo.git", - import_url_username="user", - import_url_password="pass", - mirror=True) - # Create a project by importing it from a private project and provide credentials in `import_url` - # NOTE: only use this if you really must, use `import_url_username` and `import_url_password` whenever possible - # GitLab API will always return the `import_url` without credentials, therefore you must ignore the `import_url` for changes: - import_private_index_project_project = gitlab.Project("importPrivateIndex/projectProject", import_url="https://user:pass@gitlab.example.com/repo.git") - ``` - ## Import ```sh @@ -3728,59 +4015,6 @@ def __init__(__self__, args: Optional[ProjectArgs] = None, opts: Optional[pulumi.ResourceOptions] = None): """ - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.Project("example", - description="My awesome codebase", - visibility_level="public") - # Project with custom push rules - example_two = gitlab.Project("example-two", push_rules=gitlab.ProjectPushRulesArgs( - author_email_regex="@example\\\\.com$", - commit_committer_check=True, - member_check=True, - prevent_secrets=True, - )) - peter_parker = gitlab.get_user(username="peter_parker") - peters_repo = gitlab.Project("petersRepo", - description="This is a description", - namespace_id=peter_parker.namespace_id) - # Fork a project - fork_project = gitlab.Project("forkProject", - description="This is a fork", - forked_from_project_id=example.id) - # Fork a project and setup a pull mirror - fork_index_project_project = gitlab.Project("forkIndex/projectProject", - description="This is a fork", - forked_from_project_id=example.id, - import_url=example.http_url_to_repo, - mirror=True) - # Create a project by importing it from a public project - import_public = gitlab.Project("importPublic", import_url="https://gitlab.example.com/repo.git") - # Create a project by importing it from a public project and setup the pull mirror - import_public_with_mirror = gitlab.Project("importPublicWithMirror", - import_url="https://gitlab.example.com/repo.git", - mirror=True) - # Create a project by importing it from a private project - import_private_project = gitlab.Project("importPrivateProject", - import_url="https://gitlab.example.com/repo.git", - import_url_username="user", - import_url_password="pass") - # Create a project by importing it from a private project and setup the pull mirror - import_private_with_mirror = gitlab.Project("importPrivateWithMirror", - import_url="https://gitlab.example.com/repo.git", - import_url_username="user", - import_url_password="pass", - mirror=True) - # Create a project by importing it from a private project and provide credentials in `import_url` - # NOTE: only use this if you really must, use `import_url_username` and `import_url_password` whenever possible - # GitLab API will always return the `import_url` without credentials, therefore you must ignore the `import_url` for changes: - import_private_index_project_project = gitlab.Project("importPrivateIndex/projectProject", import_url="https://user:pass@gitlab.example.com/repo.git") - ``` - ## Import ```sh @@ -3931,11 +4165,7 @@ def _internal_init(__self__, __props__.__dict__["ci_default_git_depth"] = ci_default_git_depth __props__.__dict__["ci_forward_deployment_enabled"] = ci_forward_deployment_enabled __props__.__dict__["ci_separated_caches"] = ci_separated_caches - if container_expiration_policy is not None and not isinstance(container_expiration_policy, ProjectContainerExpirationPolicyArgs): - container_expiration_policy = container_expiration_policy or {} - def _setter(key, value): - container_expiration_policy[key] = value - ProjectContainerExpirationPolicyArgs._configure(_setter, **container_expiration_policy) + container_expiration_policy = _utilities.configure(container_expiration_policy, ProjectContainerExpirationPolicyArgs, True) __props__.__dict__["container_expiration_policy"] = container_expiration_policy __props__.__dict__["container_registry_access_level"] = container_registry_access_level __props__.__dict__["container_registry_enabled"] = container_registry_enabled @@ -3981,11 +4211,7 @@ def _setter(key, value): __props__.__dict__["pipelines_enabled"] = pipelines_enabled __props__.__dict__["printing_merge_request_link_enabled"] = printing_merge_request_link_enabled __props__.__dict__["public_builds"] = public_builds - if push_rules is not None and not isinstance(push_rules, ProjectPushRulesArgs): - push_rules = push_rules or {} - def _setter(key, value): - push_rules[key] = value - ProjectPushRulesArgs._configure(_setter, **push_rules) + push_rules = _utilities.configure(push_rules, ProjectPushRulesArgs, True) __props__.__dict__["push_rules"] = push_rules __props__.__dict__["releases_access_level"] = releases_access_level __props__.__dict__["remove_source_branch_after_merge"] = remove_source_branch_after_merge diff --git a/sdk/python/pulumi_gitlab/project_access_token.py b/sdk/python/pulumi_gitlab/project_access_token.py index 7beb21c4..c481b7d8 100644 --- a/sdk/python/pulumi_gitlab/project_access_token.py +++ b/sdk/python/pulumi_gitlab/project_access_token.py @@ -38,12 +38,24 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - expires_at: pulumi.Input[str], - project: pulumi.Input[str], - scopes: pulumi.Input[Sequence[pulumi.Input[str]]], + expires_at: Optional[pulumi.Input[str]] = None, + project: Optional[pulumi.Input[str]] = None, + scopes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, access_level: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if expires_at is None and 'expiresAt' in kwargs: + expires_at = kwargs['expiresAt'] + if expires_at is None: + raise TypeError("Missing 'expires_at' argument") + if project is None: + raise TypeError("Missing 'project' argument") + if scopes is None: + raise TypeError("Missing 'scopes' argument") + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + _setter("expires_at", expires_at) _setter("project", project) _setter("scopes", scopes) @@ -165,7 +177,17 @@ def _configure( scopes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, token: Optional[pulumi.Input[str]] = None, user_id: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if expires_at is None and 'expiresAt' in kwargs: + expires_at = kwargs['expiresAt'] + if user_id is None and 'userId' in kwargs: + user_id = kwargs['userId'] + if access_level is not None: _setter("access_level", access_level) if active is not None: @@ -324,23 +346,6 @@ def __init__(__self__, **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/project_access_tokens.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example_project_access_token = gitlab.ProjectAccessToken("exampleProjectAccessToken", - project="25", - expires_at="2020-03-14", - access_level="reporter", - scopes=["api"]) - example_project_variable = gitlab.ProjectVariable("exampleProjectVariable", - project=gitlab_project["example"]["id"], - key="pat", - value=example_project_access_token.token) - ``` - ## Import A GitLab Project Access Token can be imported using a key composed of `:`, e.g. @@ -370,23 +375,6 @@ def __init__(__self__, **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/project_access_tokens.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example_project_access_token = gitlab.ProjectAccessToken("exampleProjectAccessToken", - project="25", - expires_at="2020-03-14", - access_level="reporter", - scopes=["api"]) - example_project_variable = gitlab.ProjectVariable("exampleProjectVariable", - project=gitlab_project["example"]["id"], - key="pat", - value=example_project_access_token.token) - ``` - ## Import A GitLab Project Access Token can be imported using a key composed of `:`, e.g. diff --git a/sdk/python/pulumi_gitlab/project_approval_rule.py b/sdk/python/pulumi_gitlab/project_approval_rule.py index e380491f..083f6023 100644 --- a/sdk/python/pulumi_gitlab/project_approval_rule.py +++ b/sdk/python/pulumi_gitlab/project_approval_rule.py @@ -47,15 +47,33 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - approvals_required: pulumi.Input[int], - project: pulumi.Input[str], + approvals_required: Optional[pulumi.Input[int]] = None, + project: Optional[pulumi.Input[str]] = None, disable_importing_default_any_approver_rule_on_create: Optional[pulumi.Input[bool]] = None, group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None, name: Optional[pulumi.Input[str]] = None, protected_branch_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None, rule_type: Optional[pulumi.Input[str]] = None, user_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if approvals_required is None and 'approvalsRequired' in kwargs: + approvals_required = kwargs['approvalsRequired'] + if approvals_required is None: + raise TypeError("Missing 'approvals_required' argument") + if project is None: + raise TypeError("Missing 'project' argument") + if disable_importing_default_any_approver_rule_on_create is None and 'disableImportingDefaultAnyApproverRuleOnCreate' in kwargs: + disable_importing_default_any_approver_rule_on_create = kwargs['disableImportingDefaultAnyApproverRuleOnCreate'] + if group_ids is None and 'groupIds' in kwargs: + group_ids = kwargs['groupIds'] + if protected_branch_ids is None and 'protectedBranchIds' in kwargs: + protected_branch_ids = kwargs['protectedBranchIds'] + if rule_type is None and 'ruleType' in kwargs: + rule_type = kwargs['ruleType'] + if user_ids is None and 'userIds' in kwargs: + user_ids = kwargs['userIds'] + _setter("approvals_required", approvals_required) _setter("project", project) if disable_importing_default_any_approver_rule_on_create is not None: @@ -212,7 +230,21 @@ def _configure( protected_branch_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None, rule_type: Optional[pulumi.Input[str]] = None, user_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if approvals_required is None and 'approvalsRequired' in kwargs: + approvals_required = kwargs['approvalsRequired'] + if disable_importing_default_any_approver_rule_on_create is None and 'disableImportingDefaultAnyApproverRuleOnCreate' in kwargs: + disable_importing_default_any_approver_rule_on_create = kwargs['disableImportingDefaultAnyApproverRuleOnCreate'] + if group_ids is None and 'groupIds' in kwargs: + group_ids = kwargs['groupIds'] + if protected_branch_ids is None and 'protectedBranchIds' in kwargs: + protected_branch_ids = kwargs['protectedBranchIds'] + if rule_type is None and 'ruleType' in kwargs: + rule_type = kwargs['ruleType'] + if user_ids is None and 'userIds' in kwargs: + user_ids = kwargs['userIds'] + if approvals_required is not None: _setter("approvals_required", approvals_required) if disable_importing_default_any_approver_rule_on_create is not None: diff --git a/sdk/python/pulumi_gitlab/project_badge.py b/sdk/python/pulumi_gitlab/project_badge.py index f6676bb1..0044bb22 100644 --- a/sdk/python/pulumi_gitlab/project_badge.py +++ b/sdk/python/pulumi_gitlab/project_badge.py @@ -35,11 +35,23 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - image_url: pulumi.Input[str], - link_url: pulumi.Input[str], - project: pulumi.Input[str], + image_url: Optional[pulumi.Input[str]] = None, + link_url: Optional[pulumi.Input[str]] = None, + project: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if image_url is None and 'imageUrl' in kwargs: + image_url = kwargs['imageUrl'] + if image_url is None: + raise TypeError("Missing 'image_url' argument") + if link_url is None and 'linkUrl' in kwargs: + link_url = kwargs['linkUrl'] + if link_url is None: + raise TypeError("Missing 'link_url' argument") + if project is None: + raise TypeError("Missing 'project' argument") + _setter("image_url", image_url) _setter("link_url", link_url) _setter("project", project) @@ -131,7 +143,17 @@ def _configure( project: Optional[pulumi.Input[str]] = None, rendered_image_url: Optional[pulumi.Input[str]] = None, rendered_link_url: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if image_url is None and 'imageUrl' in kwargs: + image_url = kwargs['imageUrl'] + if link_url is None and 'linkUrl' in kwargs: + link_url = kwargs['linkUrl'] + if rendered_image_url is None and 'renderedImageUrl' in kwargs: + rendered_image_url = kwargs['renderedImageUrl'] + if rendered_link_url is None and 'renderedLinkUrl' in kwargs: + rendered_link_url = kwargs['renderedLinkUrl'] + if image_url is not None: _setter("image_url", image_url) if link_url is not None: @@ -233,34 +255,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/user/project/badges.html#project-badges) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.Project("foo") - example = gitlab.ProjectBadge("example", - project=foo.id, - link_url="https://example.com/badge-123", - image_url="https://example.com/badge-123.svg") - # Pipeline status badges with placeholders will be enabled - gitlab_pipeline = gitlab.ProjectBadge("gitlabPipeline", - project=foo.id, - link_url="https://gitlab.example.com/%{project_path}/-/pipelines?ref=%{default_branch}", - image_url="https://gitlab.example.com/%{project_path}/badges/%{default_branch}/pipeline.svg") - # Test coverage report badges with placeholders will be enabled - gitlab_coverage = gitlab.ProjectBadge("gitlabCoverage", - project=foo.id, - link_url="https://gitlab.example.com/%{project_path}/-/jobs", - image_url="https://gitlab.example.com/%{project_path}/badges/%{default_branch}/coverage.svg") - # Latest release badges with placeholders will be enabled - gitlab_release = gitlab.ProjectBadge("gitlabRelease", - project=foo.id, - link_url="https://gitlab.example.com/%{project_path}/-/releases", - image_url="https://gitlab.example.com/%{project_path}/-/badges/release.svg") - ``` - ## Import GitLab project badges can be imported using an id made up of `{project_id}:{badge_id}`, e.g. @@ -287,34 +281,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/user/project/badges.html#project-badges) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.Project("foo") - example = gitlab.ProjectBadge("example", - project=foo.id, - link_url="https://example.com/badge-123", - image_url="https://example.com/badge-123.svg") - # Pipeline status badges with placeholders will be enabled - gitlab_pipeline = gitlab.ProjectBadge("gitlabPipeline", - project=foo.id, - link_url="https://gitlab.example.com/%{project_path}/-/pipelines?ref=%{default_branch}", - image_url="https://gitlab.example.com/%{project_path}/badges/%{default_branch}/pipeline.svg") - # Test coverage report badges with placeholders will be enabled - gitlab_coverage = gitlab.ProjectBadge("gitlabCoverage", - project=foo.id, - link_url="https://gitlab.example.com/%{project_path}/-/jobs", - image_url="https://gitlab.example.com/%{project_path}/badges/%{default_branch}/coverage.svg") - # Latest release badges with placeholders will be enabled - gitlab_release = gitlab.ProjectBadge("gitlabRelease", - project=foo.id, - link_url="https://gitlab.example.com/%{project_path}/-/releases", - image_url="https://gitlab.example.com/%{project_path}/-/badges/release.svg") - ``` - ## Import GitLab project badges can be imported using an id made up of `{project_id}:{badge_id}`, e.g. diff --git a/sdk/python/pulumi_gitlab/project_cluster.py b/sdk/python/pulumi_gitlab/project_cluster.py index 27f77757..be8aadf6 100644 --- a/sdk/python/pulumi_gitlab/project_cluster.py +++ b/sdk/python/pulumi_gitlab/project_cluster.py @@ -59,9 +59,9 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - kubernetes_api_url: pulumi.Input[str], - kubernetes_token: pulumi.Input[str], - project: pulumi.Input[str], + kubernetes_api_url: Optional[pulumi.Input[str]] = None, + kubernetes_token: Optional[pulumi.Input[str]] = None, + project: Optional[pulumi.Input[str]] = None, domain: Optional[pulumi.Input[str]] = None, enabled: Optional[pulumi.Input[bool]] = None, environment_scope: Optional[pulumi.Input[str]] = None, @@ -71,7 +71,29 @@ def _configure( managed: Optional[pulumi.Input[bool]] = None, management_project_id: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if kubernetes_api_url is None and 'kubernetesApiUrl' in kwargs: + kubernetes_api_url = kwargs['kubernetesApiUrl'] + if kubernetes_api_url is None: + raise TypeError("Missing 'kubernetes_api_url' argument") + if kubernetes_token is None and 'kubernetesToken' in kwargs: + kubernetes_token = kwargs['kubernetesToken'] + if kubernetes_token is None: + raise TypeError("Missing 'kubernetes_token' argument") + if project is None: + raise TypeError("Missing 'project' argument") + if environment_scope is None and 'environmentScope' in kwargs: + environment_scope = kwargs['environmentScope'] + if kubernetes_authorization_type is None and 'kubernetesAuthorizationType' in kwargs: + kubernetes_authorization_type = kwargs['kubernetesAuthorizationType'] + if kubernetes_ca_cert is None and 'kubernetesCaCert' in kwargs: + kubernetes_ca_cert = kwargs['kubernetesCaCert'] + if kubernetes_namespace is None and 'kubernetesNamespace' in kwargs: + kubernetes_namespace = kwargs['kubernetesNamespace'] + if management_project_id is None and 'managementProjectId' in kwargs: + management_project_id = kwargs['managementProjectId'] + _setter("kubernetes_api_url", kubernetes_api_url) _setter("kubernetes_token", kubernetes_token) _setter("project", project) @@ -315,7 +337,31 @@ def _configure( platform_type: Optional[pulumi.Input[str]] = None, project: Optional[pulumi.Input[str]] = None, provider_type: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if cluster_type is None and 'clusterType' in kwargs: + cluster_type = kwargs['clusterType'] + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if environment_scope is None and 'environmentScope' in kwargs: + environment_scope = kwargs['environmentScope'] + if kubernetes_api_url is None and 'kubernetesApiUrl' in kwargs: + kubernetes_api_url = kwargs['kubernetesApiUrl'] + if kubernetes_authorization_type is None and 'kubernetesAuthorizationType' in kwargs: + kubernetes_authorization_type = kwargs['kubernetesAuthorizationType'] + if kubernetes_ca_cert is None and 'kubernetesCaCert' in kwargs: + kubernetes_ca_cert = kwargs['kubernetesCaCert'] + if kubernetes_namespace is None and 'kubernetesNamespace' in kwargs: + kubernetes_namespace = kwargs['kubernetesNamespace'] + if kubernetes_token is None and 'kubernetesToken' in kwargs: + kubernetes_token = kwargs['kubernetesToken'] + if management_project_id is None and 'managementProjectId' in kwargs: + management_project_id = kwargs['managementProjectId'] + if platform_type is None and 'platformType' in kwargs: + platform_type = kwargs['platformType'] + if provider_type is None and 'providerType' in kwargs: + provider_type = kwargs['providerType'] + if cluster_type is not None: _setter("cluster_type", cluster_type) if created_at is not None: @@ -567,26 +613,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/project_clusters.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.Project("foo") - bar = gitlab.ProjectCluster("bar", - project=foo.id, - domain="example.com", - enabled=True, - kubernetes_api_url="https://124.124.124", - kubernetes_token="some-token", - kubernetes_ca_cert="some-cert", - kubernetes_namespace="namespace", - kubernetes_authorization_type="rbac", - environment_scope="*", - management_project_id="123456") - ``` - ## Import GitLab project clusters can be imported using an id made up of `projectid:clusterid`, e.g. @@ -623,26 +649,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/project_clusters.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.Project("foo") - bar = gitlab.ProjectCluster("bar", - project=foo.id, - domain="example.com", - enabled=True, - kubernetes_api_url="https://124.124.124", - kubernetes_token="some-token", - kubernetes_ca_cert="some-cert", - kubernetes_namespace="namespace", - kubernetes_authorization_type="rbac", - environment_scope="*", - management_project_id="123456") - ``` - ## Import GitLab project clusters can be imported using an id made up of `projectid:clusterid`, e.g. diff --git a/sdk/python/pulumi_gitlab/project_compliance_framework.py b/sdk/python/pulumi_gitlab/project_compliance_framework.py index 04c69333..790c478b 100644 --- a/sdk/python/pulumi_gitlab/project_compliance_framework.py +++ b/sdk/python/pulumi_gitlab/project_compliance_framework.py @@ -29,9 +29,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - compliance_framework_id: pulumi.Input[str], - project: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + compliance_framework_id: Optional[pulumi.Input[str]] = None, + project: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if compliance_framework_id is None and 'complianceFrameworkId' in kwargs: + compliance_framework_id = kwargs['complianceFrameworkId'] + if compliance_framework_id is None: + raise TypeError("Missing 'compliance_framework_id' argument") + if project is None: + raise TypeError("Missing 'project' argument") + _setter("compliance_framework_id", compliance_framework_id) _setter("project", project) @@ -80,7 +88,11 @@ def _configure( _setter: Callable[[Any, Any], None], compliance_framework_id: Optional[pulumi.Input[str]] = None, project: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if compliance_framework_id is None and 'complianceFrameworkId' in kwargs: + compliance_framework_id = kwargs['complianceFrameworkId'] + if compliance_framework_id is not None: _setter("compliance_framework_id", compliance_framework_id) if project is not None: @@ -126,23 +138,6 @@ def __init__(__self__, **Upstream API**: [GitLab GraphQL API docs](https://docs.gitlab.com/ee/api/graphql/reference/#mutationprojectsetcomplianceframework) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - sample_compliance_framework = gitlab.ComplianceFramework("sampleComplianceFramework", - namespace_path="top-level-group", - description="A HIPAA Compliance Framework", - color="#87BEEF", - default=False, - pipeline_configuration_full_path=".hipaa.yml@top-level-group/compliance-frameworks") - sample_project_compliance_framework = gitlab.ProjectComplianceFramework("sampleProjectComplianceFramework", - compliance_framework_id=sample_compliance_framework.framework_id, - project="12345678") - ``` - ## Import Gitlab project compliance frameworks can be imported with a key composed of ``, e.g. @@ -169,23 +164,6 @@ def __init__(__self__, **Upstream API**: [GitLab GraphQL API docs](https://docs.gitlab.com/ee/api/graphql/reference/#mutationprojectsetcomplianceframework) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - sample_compliance_framework = gitlab.ComplianceFramework("sampleComplianceFramework", - namespace_path="top-level-group", - description="A HIPAA Compliance Framework", - color="#87BEEF", - default=False, - pipeline_configuration_full_path=".hipaa.yml@top-level-group/compliance-frameworks") - sample_project_compliance_framework = gitlab.ProjectComplianceFramework("sampleProjectComplianceFramework", - compliance_framework_id=sample_compliance_framework.framework_id, - project="12345678") - ``` - ## Import Gitlab project compliance frameworks can be imported with a key composed of ``, e.g. diff --git a/sdk/python/pulumi_gitlab/project_custom_attribute.py b/sdk/python/pulumi_gitlab/project_custom_attribute.py index 40d8fb1d..02915202 100644 --- a/sdk/python/pulumi_gitlab/project_custom_attribute.py +++ b/sdk/python/pulumi_gitlab/project_custom_attribute.py @@ -32,10 +32,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - key: pulumi.Input[str], - project: pulumi.Input[int], - value: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + key: Optional[pulumi.Input[str]] = None, + project: Optional[pulumi.Input[int]] = None, + value: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if key is None: + raise TypeError("Missing 'key' argument") + if project is None: + raise TypeError("Missing 'project' argument") + if value is None: + raise TypeError("Missing 'value' argument") + _setter("key", key) _setter("project", project) _setter("value", value) @@ -101,7 +109,9 @@ def _configure( key: Optional[pulumi.Input[str]] = None, project: Optional[pulumi.Input[int]] = None, value: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if key is not None: _setter("key", key) if project is not None: @@ -160,18 +170,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/custom_attributes.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - attr = gitlab.ProjectCustomAttribute("attr", - key="location", - project=42, - value="Greenland") - ``` - ## Import You can import a project custom attribute using an id made up of `{project-id}:{key}`, e.g. @@ -197,18 +195,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/custom_attributes.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - attr = gitlab.ProjectCustomAttribute("attr", - key="location", - project=42, - value="Greenland") - ``` - ## Import You can import a project custom attribute using an id made up of `{project-id}:{key}`, e.g. diff --git a/sdk/python/pulumi_gitlab/project_environment.py b/sdk/python/pulumi_gitlab/project_environment.py index 31fd9395..0e8eb74c 100644 --- a/sdk/python/pulumi_gitlab/project_environment.py +++ b/sdk/python/pulumi_gitlab/project_environment.py @@ -35,11 +35,19 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - project: pulumi.Input[str], + project: Optional[pulumi.Input[str]] = None, external_url: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, stop_before_destroy: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if project is None: + raise TypeError("Missing 'project' argument") + if external_url is None and 'externalUrl' in kwargs: + external_url = kwargs['externalUrl'] + if stop_before_destroy is None and 'stopBeforeDestroy' in kwargs: + stop_before_destroy = kwargs['stopBeforeDestroy'] + _setter("project", project) if external_url is not None: _setter("external_url", external_url) @@ -141,7 +149,17 @@ def _configure( state: Optional[pulumi.Input[str]] = None, stop_before_destroy: Optional[pulumi.Input[bool]] = None, updated_at: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if external_url is None and 'externalUrl' in kwargs: + external_url = kwargs['externalUrl'] + if stop_before_destroy is None and 'stopBeforeDestroy' in kwargs: + stop_before_destroy = kwargs['stopBeforeDestroy'] + if updated_at is None and 'updatedAt' in kwargs: + updated_at = kwargs['updatedAt'] + if created_at is not None: _setter("created_at", created_at) if external_url is not None: @@ -267,23 +285,6 @@ def __init__(__self__, stop_before_destroy: Optional[pulumi.Input[bool]] = None, __props__=None): """ - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - this_group = gitlab.Group("thisGroup", - path="example", - description="An example group") - this_project = gitlab.Project("thisProject", - namespace_id=this_group.id, - initialize_with_readme=True) - this_project_environment = gitlab.ProjectEnvironment("thisProjectEnvironment", - project=this_project.id, - external_url="www.example.com") - ``` - ## Import GitLab project environments can be imported using an id made up of `projectId:environmenId`, e.g. @@ -306,23 +307,6 @@ def __init__(__self__, args: ProjectEnvironmentArgs, opts: Optional[pulumi.ResourceOptions] = None): """ - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - this_group = gitlab.Group("thisGroup", - path="example", - description="An example group") - this_project = gitlab.Project("thisProject", - namespace_id=this_group.id, - initialize_with_readme=True) - this_project_environment = gitlab.ProjectEnvironment("thisProjectEnvironment", - project=this_project.id, - external_url="www.example.com") - ``` - ## Import GitLab project environments can be imported using an id made up of `projectId:environmenId`, e.g. diff --git a/sdk/python/pulumi_gitlab/project_freeze_period.py b/sdk/python/pulumi_gitlab/project_freeze_period.py index 7c05b8f9..ec1a5d3a 100644 --- a/sdk/python/pulumi_gitlab/project_freeze_period.py +++ b/sdk/python/pulumi_gitlab/project_freeze_period.py @@ -35,11 +35,25 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - freeze_end: pulumi.Input[str], - freeze_start: pulumi.Input[str], - project: pulumi.Input[str], + freeze_end: Optional[pulumi.Input[str]] = None, + freeze_start: Optional[pulumi.Input[str]] = None, + project: Optional[pulumi.Input[str]] = None, cron_timezone: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if freeze_end is None and 'freezeEnd' in kwargs: + freeze_end = kwargs['freezeEnd'] + if freeze_end is None: + raise TypeError("Missing 'freeze_end' argument") + if freeze_start is None and 'freezeStart' in kwargs: + freeze_start = kwargs['freezeStart'] + if freeze_start is None: + raise TypeError("Missing 'freeze_start' argument") + if project is None: + raise TypeError("Missing 'project' argument") + if cron_timezone is None and 'cronTimezone' in kwargs: + cron_timezone = kwargs['cronTimezone'] + _setter("freeze_end", freeze_end) _setter("freeze_start", freeze_start) _setter("project", project) @@ -123,7 +137,15 @@ def _configure( freeze_end: Optional[pulumi.Input[str]] = None, freeze_start: Optional[pulumi.Input[str]] = None, project: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if cron_timezone is None and 'cronTimezone' in kwargs: + cron_timezone = kwargs['cronTimezone'] + if freeze_end is None and 'freezeEnd' in kwargs: + freeze_end = kwargs['freezeEnd'] + if freeze_start is None and 'freezeStart' in kwargs: + freeze_start = kwargs['freezeStart'] + if cron_timezone is not None: _setter("cron_timezone", cron_timezone) if freeze_end is not None: @@ -197,19 +219,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/freeze_periods.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - schedule = gitlab.ProjectFreezePeriod("schedule", - project=gitlab_project["foo"]["id"], - freeze_start="0 23 * * 5", - freeze_end="0 7 * * 1", - cron_timezone="UTC") - ``` - ## Import GitLab project freeze periods can be imported using an id made up of `project_id:freeze_period_id`, e.g. @@ -236,19 +245,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/freeze_periods.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - schedule = gitlab.ProjectFreezePeriod("schedule", - project=gitlab_project["foo"]["id"], - freeze_start="0 23 * * 5", - freeze_end="0 7 * * 1", - cron_timezone="UTC") - ``` - ## Import GitLab project freeze periods can be imported using an id made up of `project_id:freeze_period_id`, e.g. diff --git a/sdk/python/pulumi_gitlab/project_hook.py b/sdk/python/pulumi_gitlab/project_hook.py index 04a6f2ff..8b815beb 100644 --- a/sdk/python/pulumi_gitlab/project_hook.py +++ b/sdk/python/pulumi_gitlab/project_hook.py @@ -74,8 +74,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - project: pulumi.Input[str], - url: pulumi.Input[str], + project: Optional[pulumi.Input[str]] = None, + url: Optional[pulumi.Input[str]] = None, confidential_issues_events: Optional[pulumi.Input[bool]] = None, confidential_note_events: Optional[pulumi.Input[bool]] = None, deployment_events: Optional[pulumi.Input[bool]] = None, @@ -91,7 +91,41 @@ def _configure( tag_push_events: Optional[pulumi.Input[bool]] = None, token: Optional[pulumi.Input[str]] = None, wiki_page_events: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if project is None: + raise TypeError("Missing 'project' argument") + if url is None: + raise TypeError("Missing 'url' argument") + if confidential_issues_events is None and 'confidentialIssuesEvents' in kwargs: + confidential_issues_events = kwargs['confidentialIssuesEvents'] + if confidential_note_events is None and 'confidentialNoteEvents' in kwargs: + confidential_note_events = kwargs['confidentialNoteEvents'] + if deployment_events is None and 'deploymentEvents' in kwargs: + deployment_events = kwargs['deploymentEvents'] + if enable_ssl_verification is None and 'enableSslVerification' in kwargs: + enable_ssl_verification = kwargs['enableSslVerification'] + if issues_events is None and 'issuesEvents' in kwargs: + issues_events = kwargs['issuesEvents'] + if job_events is None and 'jobEvents' in kwargs: + job_events = kwargs['jobEvents'] + if merge_requests_events is None and 'mergeRequestsEvents' in kwargs: + merge_requests_events = kwargs['mergeRequestsEvents'] + if note_events is None and 'noteEvents' in kwargs: + note_events = kwargs['noteEvents'] + if pipeline_events is None and 'pipelineEvents' in kwargs: + pipeline_events = kwargs['pipelineEvents'] + if push_events is None and 'pushEvents' in kwargs: + push_events = kwargs['pushEvents'] + if push_events_branch_filter is None and 'pushEventsBranchFilter' in kwargs: + push_events_branch_filter = kwargs['pushEventsBranchFilter'] + if releases_events is None and 'releasesEvents' in kwargs: + releases_events = kwargs['releasesEvents'] + if tag_push_events is None and 'tagPushEvents' in kwargs: + tag_push_events = kwargs['tagPushEvents'] + if wiki_page_events is None and 'wikiPageEvents' in kwargs: + wiki_page_events = kwargs['wikiPageEvents'] + _setter("project", project) _setter("url", url) if confidential_issues_events is not None: @@ -418,7 +452,41 @@ def _configure( token: Optional[pulumi.Input[str]] = None, url: Optional[pulumi.Input[str]] = None, wiki_page_events: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if confidential_issues_events is None and 'confidentialIssuesEvents' in kwargs: + confidential_issues_events = kwargs['confidentialIssuesEvents'] + if confidential_note_events is None and 'confidentialNoteEvents' in kwargs: + confidential_note_events = kwargs['confidentialNoteEvents'] + if deployment_events is None and 'deploymentEvents' in kwargs: + deployment_events = kwargs['deploymentEvents'] + if enable_ssl_verification is None and 'enableSslVerification' in kwargs: + enable_ssl_verification = kwargs['enableSslVerification'] + if hook_id is None and 'hookId' in kwargs: + hook_id = kwargs['hookId'] + if issues_events is None and 'issuesEvents' in kwargs: + issues_events = kwargs['issuesEvents'] + if job_events is None and 'jobEvents' in kwargs: + job_events = kwargs['jobEvents'] + if merge_requests_events is None and 'mergeRequestsEvents' in kwargs: + merge_requests_events = kwargs['mergeRequestsEvents'] + if note_events is None and 'noteEvents' in kwargs: + note_events = kwargs['noteEvents'] + if pipeline_events is None and 'pipelineEvents' in kwargs: + pipeline_events = kwargs['pipelineEvents'] + if project_id is None and 'projectId' in kwargs: + project_id = kwargs['projectId'] + if push_events is None and 'pushEvents' in kwargs: + push_events = kwargs['pushEvents'] + if push_events_branch_filter is None and 'pushEventsBranchFilter' in kwargs: + push_events_branch_filter = kwargs['pushEventsBranchFilter'] + if releases_events is None and 'releasesEvents' in kwargs: + releases_events = kwargs['releasesEvents'] + if tag_push_events is None and 'tagPushEvents' in kwargs: + tag_push_events = kwargs['tagPushEvents'] + if wiki_page_events is None and 'wikiPageEvents' in kwargs: + wiki_page_events = kwargs['wikiPageEvents'] + if confidential_issues_events is not None: _setter("confidential_issues_events", confidential_issues_events) if confidential_note_events is not None: @@ -715,18 +783,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#hooks) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.ProjectHook("example", - merge_requests_events=True, - project="example/hooked", - url="https://example.com/hook/example") - ``` - ## Import A GitLab Project Hook can be imported using a key composed of `:`, e.g. @@ -768,18 +824,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#hooks) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.ProjectHook("example", - merge_requests_events=True, - project="example/hooked", - url="https://example.com/hook/example") - ``` - ## Import A GitLab Project Hook can be imported using a key composed of `:`, e.g. diff --git a/sdk/python/pulumi_gitlab/project_issue.py b/sdk/python/pulumi_gitlab/project_issue.py index 0a3fd5fe..017de2df 100644 --- a/sdk/python/pulumi_gitlab/project_issue.py +++ b/sdk/python/pulumi_gitlab/project_issue.py @@ -82,8 +82,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - project: pulumi.Input[str], - title: pulumi.Input[str], + project: Optional[pulumi.Input[str]] = None, + title: Optional[pulumi.Input[str]] = None, assignee_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None, confidential: Optional[pulumi.Input[bool]] = None, created_at: Optional[pulumi.Input[str]] = None, @@ -101,7 +101,35 @@ def _configure( state: Optional[pulumi.Input[str]] = None, updated_at: Optional[pulumi.Input[str]] = None, weight: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if project is None: + raise TypeError("Missing 'project' argument") + if title is None: + raise TypeError("Missing 'title' argument") + if assignee_ids is None and 'assigneeIds' in kwargs: + assignee_ids = kwargs['assigneeIds'] + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if delete_on_destroy is None and 'deleteOnDestroy' in kwargs: + delete_on_destroy = kwargs['deleteOnDestroy'] + if discussion_locked is None and 'discussionLocked' in kwargs: + discussion_locked = kwargs['discussionLocked'] + if discussion_to_resolve is None and 'discussionToResolve' in kwargs: + discussion_to_resolve = kwargs['discussionToResolve'] + if due_date is None and 'dueDate' in kwargs: + due_date = kwargs['dueDate'] + if epic_issue_id is None and 'epicIssueId' in kwargs: + epic_issue_id = kwargs['epicIssueId'] + if issue_type is None and 'issueType' in kwargs: + issue_type = kwargs['issueType'] + if merge_request_to_resolve_discussions_of is None and 'mergeRequestToResolveDiscussionsOf' in kwargs: + merge_request_to_resolve_discussions_of = kwargs['mergeRequestToResolveDiscussionsOf'] + if milestone_id is None and 'milestoneId' in kwargs: + milestone_id = kwargs['milestoneId'] + if updated_at is None and 'updatedAt' in kwargs: + updated_at = kwargs['updatedAt'] + _setter("project", project) _setter("title", title) if assignee_ids is not None: @@ -540,7 +568,63 @@ def _configure( user_notes_count: Optional[pulumi.Input[int]] = None, web_url: Optional[pulumi.Input[str]] = None, weight: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if assignee_ids is None and 'assigneeIds' in kwargs: + assignee_ids = kwargs['assigneeIds'] + if author_id is None and 'authorId' in kwargs: + author_id = kwargs['authorId'] + if closed_at is None and 'closedAt' in kwargs: + closed_at = kwargs['closedAt'] + if closed_by_user_id is None and 'closedByUserId' in kwargs: + closed_by_user_id = kwargs['closedByUserId'] + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if delete_on_destroy is None and 'deleteOnDestroy' in kwargs: + delete_on_destroy = kwargs['deleteOnDestroy'] + if discussion_locked is None and 'discussionLocked' in kwargs: + discussion_locked = kwargs['discussionLocked'] + if discussion_to_resolve is None and 'discussionToResolve' in kwargs: + discussion_to_resolve = kwargs['discussionToResolve'] + if due_date is None and 'dueDate' in kwargs: + due_date = kwargs['dueDate'] + if epic_id is None and 'epicId' in kwargs: + epic_id = kwargs['epicId'] + if epic_issue_id is None and 'epicIssueId' in kwargs: + epic_issue_id = kwargs['epicIssueId'] + if external_id is None and 'externalId' in kwargs: + external_id = kwargs['externalId'] + if human_time_estimate is None and 'humanTimeEstimate' in kwargs: + human_time_estimate = kwargs['humanTimeEstimate'] + if human_total_time_spent is None and 'humanTotalTimeSpent' in kwargs: + human_total_time_spent = kwargs['humanTotalTimeSpent'] + if issue_id is None and 'issueId' in kwargs: + issue_id = kwargs['issueId'] + if issue_link_id is None and 'issueLinkId' in kwargs: + issue_link_id = kwargs['issueLinkId'] + if issue_type is None and 'issueType' in kwargs: + issue_type = kwargs['issueType'] + if merge_request_to_resolve_discussions_of is None and 'mergeRequestToResolveDiscussionsOf' in kwargs: + merge_request_to_resolve_discussions_of = kwargs['mergeRequestToResolveDiscussionsOf'] + if merge_requests_count is None and 'mergeRequestsCount' in kwargs: + merge_requests_count = kwargs['mergeRequestsCount'] + if milestone_id is None and 'milestoneId' in kwargs: + milestone_id = kwargs['milestoneId'] + if moved_to_id is None and 'movedToId' in kwargs: + moved_to_id = kwargs['movedToId'] + if task_completion_statuses is None and 'taskCompletionStatuses' in kwargs: + task_completion_statuses = kwargs['taskCompletionStatuses'] + if time_estimate is None and 'timeEstimate' in kwargs: + time_estimate = kwargs['timeEstimate'] + if total_time_spent is None and 'totalTimeSpent' in kwargs: + total_time_spent = kwargs['totalTimeSpent'] + if updated_at is None and 'updatedAt' in kwargs: + updated_at = kwargs['updatedAt'] + if user_notes_count is None and 'userNotesCount' in kwargs: + user_notes_count = kwargs['userNotesCount'] + if web_url is None and 'webUrl' in kwargs: + web_url = kwargs['webUrl'] + if assignee_ids is not None: _setter("assignee_ids", assignee_ids) if author_id is not None: @@ -1129,25 +1213,6 @@ def __init__(__self__, weight: Optional[pulumi.Input[int]] = None, __props__=None): """ - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.Project("foo", - description="Lorem Ipsum", - visibility_level="public") - welcome_issue = gitlab.ProjectIssue("welcomeIssue", - project=foo.id, - title="Welcome!", - description=foo.name.apply(lambda name: f\"\"\" Welcome to the {name} project! - - \"\"\"), - discussion_locked=True) - pulumi.export("welcomeIssueWebUrl", data["gitlab_project_issue"]["web_url"]) - ``` - ## Import You can import this resource with an id made up of `{project-id}:{issue-id}`, e.g. @@ -1185,25 +1250,6 @@ def __init__(__self__, args: ProjectIssueArgs, opts: Optional[pulumi.ResourceOptions] = None): """ - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.Project("foo", - description="Lorem Ipsum", - visibility_level="public") - welcome_issue = gitlab.ProjectIssue("welcomeIssue", - project=foo.id, - title="Welcome!", - description=foo.name.apply(lambda name: f\"\"\" Welcome to the {name} project! - - \"\"\"), - discussion_locked=True) - pulumi.export("welcomeIssueWebUrl", data["gitlab_project_issue"]["web_url"]) - ``` - ## Import You can import this resource with an id made up of `{project-id}:{issue-id}`, e.g. diff --git a/sdk/python/pulumi_gitlab/project_issue_board.py b/sdk/python/pulumi_gitlab/project_issue_board.py index a137c82c..fa6582c5 100644 --- a/sdk/python/pulumi_gitlab/project_issue_board.py +++ b/sdk/python/pulumi_gitlab/project_issue_board.py @@ -46,14 +46,22 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - project: pulumi.Input[str], + project: Optional[pulumi.Input[str]] = None, assignee_id: Optional[pulumi.Input[int]] = None, labels: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, lists: Optional[pulumi.Input[Sequence[pulumi.Input['ProjectIssueBoardListArgs']]]] = None, milestone_id: Optional[pulumi.Input[int]] = None, name: Optional[pulumi.Input[str]] = None, weight: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if project is None: + raise TypeError("Missing 'project' argument") + if assignee_id is None and 'assigneeId' in kwargs: + assignee_id = kwargs['assigneeId'] + if milestone_id is None and 'milestoneId' in kwargs: + milestone_id = kwargs['milestoneId'] + _setter("project", project) if assignee_id is not None: _setter("assignee_id", assignee_id) @@ -193,7 +201,13 @@ def _configure( name: Optional[pulumi.Input[str]] = None, project: Optional[pulumi.Input[str]] = None, weight: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if assignee_id is None and 'assigneeId' in kwargs: + assignee_id = kwargs['assigneeId'] + if milestone_id is None and 'milestoneId' in kwargs: + milestone_id = kwargs['milestoneId'] + if assignee_id is not None: _setter("assignee_id", assignee_id) if labels is not None: diff --git a/sdk/python/pulumi_gitlab/project_job_token_scope.py b/sdk/python/pulumi_gitlab/project_job_token_scope.py index 7554c9c6..8d81367e 100644 --- a/sdk/python/pulumi_gitlab/project_job_token_scope.py +++ b/sdk/python/pulumi_gitlab/project_job_token_scope.py @@ -29,9 +29,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - project: pulumi.Input[str], - target_project_id: pulumi.Input[int], - opts: Optional[pulumi.ResourceOptions]=None): + project: Optional[pulumi.Input[str]] = None, + target_project_id: Optional[pulumi.Input[int]] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if project is None: + raise TypeError("Missing 'project' argument") + if target_project_id is None and 'targetProjectId' in kwargs: + target_project_id = kwargs['targetProjectId'] + if target_project_id is None: + raise TypeError("Missing 'target_project_id' argument") + _setter("project", project) _setter("target_project_id", target_project_id) @@ -80,7 +88,11 @@ def _configure( _setter: Callable[[Any, Any], None], project: Optional[pulumi.Input[str]] = None, target_project_id: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if target_project_id is None and 'targetProjectId' in kwargs: + target_project_id = kwargs['targetProjectId'] + if project is not None: _setter("project", project) if target_project_id is not None: diff --git a/sdk/python/pulumi_gitlab/project_label.py b/sdk/python/pulumi_gitlab/project_label.py index 7336c82a..bddeb1b5 100644 --- a/sdk/python/pulumi_gitlab/project_label.py +++ b/sdk/python/pulumi_gitlab/project_label.py @@ -35,11 +35,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - color: pulumi.Input[str], - project: pulumi.Input[str], + color: Optional[pulumi.Input[str]] = None, + project: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if color is None: + raise TypeError("Missing 'color' argument") + if project is None: + raise TypeError("Missing 'project' argument") + _setter("color", color) _setter("project", project) if description is not None: @@ -128,7 +134,11 @@ def _configure( label_id: Optional[pulumi.Input[int]] = None, name: Optional[pulumi.Input[str]] = None, project: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if label_id is None and 'labelId' in kwargs: + label_id = kwargs['labelId'] + if color is not None: _setter("color", color) if description is not None: @@ -216,23 +226,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/labels.html#project-labels) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - fixme = gitlab.ProjectLabel("fixme", - project="example", - description="issue with failing tests", - color="#ffcc00") - # Scoped label - devops_create = gitlab.ProjectLabel("devopsCreate", - project=gitlab_project["example"]["id"], - description="issue for creating infrastructure resources", - color="#ffa500") - ``` - ## Import Gitlab Project labels can be imported using an id made up of `{project_id}:{group_label_id}`, e.g. @@ -259,23 +252,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/labels.html#project-labels) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - fixme = gitlab.ProjectLabel("fixme", - project="example", - description="issue with failing tests", - color="#ffcc00") - # Scoped label - devops_create = gitlab.ProjectLabel("devopsCreate", - project=gitlab_project["example"]["id"], - description="issue for creating infrastructure resources", - color="#ffa500") - ``` - ## Import Gitlab Project labels can be imported using an id made up of `{project_id}:{group_label_id}`, e.g. diff --git a/sdk/python/pulumi_gitlab/project_level_mr_approvals.py b/sdk/python/pulumi_gitlab/project_level_mr_approvals.py index a86121d3..3c41ec22 100644 --- a/sdk/python/pulumi_gitlab/project_level_mr_approvals.py +++ b/sdk/python/pulumi_gitlab/project_level_mr_approvals.py @@ -44,14 +44,30 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - project: pulumi.Input[str], + project: Optional[pulumi.Input[str]] = None, disable_overriding_approvers_per_merge_request: Optional[pulumi.Input[bool]] = None, merge_requests_author_approval: Optional[pulumi.Input[bool]] = None, merge_requests_disable_committers_approval: Optional[pulumi.Input[bool]] = None, require_password_to_approve: Optional[pulumi.Input[bool]] = None, reset_approvals_on_push: Optional[pulumi.Input[bool]] = None, selective_code_owner_removals: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if project is None: + raise TypeError("Missing 'project' argument") + if disable_overriding_approvers_per_merge_request is None and 'disableOverridingApproversPerMergeRequest' in kwargs: + disable_overriding_approvers_per_merge_request = kwargs['disableOverridingApproversPerMergeRequest'] + if merge_requests_author_approval is None and 'mergeRequestsAuthorApproval' in kwargs: + merge_requests_author_approval = kwargs['mergeRequestsAuthorApproval'] + if merge_requests_disable_committers_approval is None and 'mergeRequestsDisableCommittersApproval' in kwargs: + merge_requests_disable_committers_approval = kwargs['mergeRequestsDisableCommittersApproval'] + if require_password_to_approve is None and 'requirePasswordToApprove' in kwargs: + require_password_to_approve = kwargs['requirePasswordToApprove'] + if reset_approvals_on_push is None and 'resetApprovalsOnPush' in kwargs: + reset_approvals_on_push = kwargs['resetApprovalsOnPush'] + if selective_code_owner_removals is None and 'selectiveCodeOwnerRemovals' in kwargs: + selective_code_owner_removals = kwargs['selectiveCodeOwnerRemovals'] + _setter("project", project) if disable_overriding_approvers_per_merge_request is not None: _setter("disable_overriding_approvers_per_merge_request", disable_overriding_approvers_per_merge_request) @@ -191,7 +207,21 @@ def _configure( require_password_to_approve: Optional[pulumi.Input[bool]] = None, reset_approvals_on_push: Optional[pulumi.Input[bool]] = None, selective_code_owner_removals: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if disable_overriding_approvers_per_merge_request is None and 'disableOverridingApproversPerMergeRequest' in kwargs: + disable_overriding_approvers_per_merge_request = kwargs['disableOverridingApproversPerMergeRequest'] + if merge_requests_author_approval is None and 'mergeRequestsAuthorApproval' in kwargs: + merge_requests_author_approval = kwargs['mergeRequestsAuthorApproval'] + if merge_requests_disable_committers_approval is None and 'mergeRequestsDisableCommittersApproval' in kwargs: + merge_requests_disable_committers_approval = kwargs['mergeRequestsDisableCommittersApproval'] + if require_password_to_approve is None and 'requirePasswordToApprove' in kwargs: + require_password_to_approve = kwargs['requirePasswordToApprove'] + if reset_approvals_on_push is None and 'resetApprovalsOnPush' in kwargs: + reset_approvals_on_push = kwargs['resetApprovalsOnPush'] + if selective_code_owner_removals is None and 'selectiveCodeOwnerRemovals' in kwargs: + selective_code_owner_removals = kwargs['selectiveCodeOwnerRemovals'] + if disable_overriding_approvers_per_merge_request is not None: _setter("disable_overriding_approvers_per_merge_request", disable_overriding_approvers_per_merge_request) if merge_requests_author_approval is not None: @@ -312,21 +342,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/merge_request_approvals.html#merge-request-level-mr-approvals) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo_project = gitlab.Project("fooProject", description="My example project") - foo_project_level_mr_approvals = gitlab.ProjectLevelMrApprovals("fooProjectLevelMrApprovals", - project=foo_project.id, - reset_approvals_on_push=True, - disable_overriding_approvers_per_merge_request=False, - merge_requests_author_approval=False, - merge_requests_disable_committers_approval=True) - ``` - ## Import ```sh @@ -362,21 +377,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/merge_request_approvals.html#merge-request-level-mr-approvals) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo_project = gitlab.Project("fooProject", description="My example project") - foo_project_level_mr_approvals = gitlab.ProjectLevelMrApprovals("fooProjectLevelMrApprovals", - project=foo_project.id, - reset_approvals_on_push=True, - disable_overriding_approvers_per_merge_request=False, - merge_requests_author_approval=False, - merge_requests_disable_committers_approval=True) - ``` - ## Import ```sh diff --git a/sdk/python/pulumi_gitlab/project_membership.py b/sdk/python/pulumi_gitlab/project_membership.py index 1211e22a..c0fd5163 100644 --- a/sdk/python/pulumi_gitlab/project_membership.py +++ b/sdk/python/pulumi_gitlab/project_membership.py @@ -35,11 +35,25 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - access_level: pulumi.Input[str], - project: pulumi.Input[str], - user_id: pulumi.Input[int], + access_level: Optional[pulumi.Input[str]] = None, + project: Optional[pulumi.Input[str]] = None, + user_id: Optional[pulumi.Input[int]] = None, expires_at: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if access_level is None: + raise TypeError("Missing 'access_level' argument") + if project is None: + raise TypeError("Missing 'project' argument") + if user_id is None and 'userId' in kwargs: + user_id = kwargs['userId'] + if user_id is None: + raise TypeError("Missing 'user_id' argument") + if expires_at is None and 'expiresAt' in kwargs: + expires_at = kwargs['expiresAt'] + _setter("access_level", access_level) _setter("project", project) _setter("user_id", user_id) @@ -123,7 +137,15 @@ def _configure( expires_at: Optional[pulumi.Input[str]] = None, project: Optional[pulumi.Input[str]] = None, user_id: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if expires_at is None and 'expiresAt' in kwargs: + expires_at = kwargs['expiresAt'] + if user_id is None and 'userId' in kwargs: + user_id = kwargs['userId'] + if access_level is not None: _setter("access_level", access_level) if expires_at is not None: @@ -199,23 +221,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/members.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - test = gitlab.ProjectMembership("test", - access_level="guest", - project="12345", - user_id=1337) - example = gitlab.ProjectMembership("example", - access_level="guest", - expires_at="2022-12-31", - project="67890", - user_id=1234) - ``` - ## Import GitLab project membership can be imported using an id made up of `project_id:user_id`, e.g. @@ -244,23 +249,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/members.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - test = gitlab.ProjectMembership("test", - access_level="guest", - project="12345", - user_id=1337) - example = gitlab.ProjectMembership("example", - access_level="guest", - expires_at="2022-12-31", - project="67890", - user_id=1234) - ``` - ## Import GitLab project membership can be imported using an id made up of `project_id:user_id`, e.g. diff --git a/sdk/python/pulumi_gitlab/project_milestone.py b/sdk/python/pulumi_gitlab/project_milestone.py index 9ee36e4f..047a150b 100644 --- a/sdk/python/pulumi_gitlab/project_milestone.py +++ b/sdk/python/pulumi_gitlab/project_milestone.py @@ -41,13 +41,23 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - project: pulumi.Input[str], - title: pulumi.Input[str], + project: Optional[pulumi.Input[str]] = None, + title: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, due_date: Optional[pulumi.Input[str]] = None, start_date: Optional[pulumi.Input[str]] = None, state: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if project is None: + raise TypeError("Missing 'project' argument") + if title is None: + raise TypeError("Missing 'title' argument") + if due_date is None and 'dueDate' in kwargs: + due_date = kwargs['dueDate'] + if start_date is None and 'startDate' in kwargs: + start_date = kwargs['startDate'] + _setter("project", project) _setter("title", title) if description is not None: @@ -196,7 +206,23 @@ def _configure( title: Optional[pulumi.Input[str]] = None, updated_at: Optional[pulumi.Input[str]] = None, web_url: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if due_date is None and 'dueDate' in kwargs: + due_date = kwargs['dueDate'] + if milestone_id is None and 'milestoneId' in kwargs: + milestone_id = kwargs['milestoneId'] + if project_id is None and 'projectId' in kwargs: + project_id = kwargs['projectId'] + if start_date is None and 'startDate' in kwargs: + start_date = kwargs['startDate'] + if updated_at is None and 'updatedAt' in kwargs: + updated_at = kwargs['updatedAt'] + if web_url is None and 'webUrl' in kwargs: + web_url = kwargs['webUrl'] + if created_at is not None: _setter("created_at", created_at) if description is not None: @@ -398,21 +424,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/milestones.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - # Create a project for the milestone to use - example_project = gitlab.Project("exampleProject", - description="An example project", - namespace_id=gitlab_group["example"]["id"]) - example_project_milestone = gitlab.ProjectMilestone("exampleProjectMilestone", - project=example_project.id, - title="example") - ``` - ## Import Gitlab project milestone can be imported with a key composed of `:`, e.g. @@ -441,21 +452,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/milestones.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - # Create a project for the milestone to use - example_project = gitlab.Project("exampleProject", - description="An example project", - namespace_id=gitlab_group["example"]["id"]) - example_project_milestone = gitlab.ProjectMilestone("exampleProjectMilestone", - project=example_project.id, - title="example") - ``` - ## Import Gitlab project milestone can be imported with a key composed of `:`, e.g. diff --git a/sdk/python/pulumi_gitlab/project_mirror.py b/sdk/python/pulumi_gitlab/project_mirror.py index 1cb9ac46..c6294f71 100644 --- a/sdk/python/pulumi_gitlab/project_mirror.py +++ b/sdk/python/pulumi_gitlab/project_mirror.py @@ -38,12 +38,22 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - project: pulumi.Input[str], - url: pulumi.Input[str], + project: Optional[pulumi.Input[str]] = None, + url: Optional[pulumi.Input[str]] = None, enabled: Optional[pulumi.Input[bool]] = None, keep_divergent_refs: Optional[pulumi.Input[bool]] = None, only_protected_branches: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if project is None: + raise TypeError("Missing 'project' argument") + if url is None: + raise TypeError("Missing 'url' argument") + if keep_divergent_refs is None and 'keepDivergentRefs' in kwargs: + keep_divergent_refs = kwargs['keepDivergentRefs'] + if only_protected_branches is None and 'onlyProtectedBranches' in kwargs: + only_protected_branches = kwargs['onlyProtectedBranches'] + _setter("project", project) _setter("url", url) if enabled is not None: @@ -150,7 +160,15 @@ def _configure( only_protected_branches: Optional[pulumi.Input[bool]] = None, project: Optional[pulumi.Input[str]] = None, url: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if keep_divergent_refs is None and 'keepDivergentRefs' in kwargs: + keep_divergent_refs = kwargs['keepDivergentRefs'] + if mirror_id is None and 'mirrorId' in kwargs: + mirror_id = kwargs['mirrorId'] + if only_protected_branches is None and 'onlyProtectedBranches' in kwargs: + only_protected_branches = kwargs['onlyProtectedBranches'] + if enabled is not None: _setter("enabled", enabled) if keep_divergent_refs is not None: @@ -264,17 +282,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/remote_mirrors.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.ProjectMirror("foo", - project="1", - url="https://username:password@github.com/org/repository.git") - ``` - ## Import GitLab project mirror can be imported using an id made up of `project_id:mirror_id`, e.g. @@ -313,17 +320,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/remote_mirrors.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.ProjectMirror("foo", - project="1", - url="https://username:password@github.com/org/repository.git") - ``` - ## Import GitLab project mirror can be imported using an id made up of `project_id:mirror_id`, e.g. diff --git a/sdk/python/pulumi_gitlab/project_protected_environment.py b/sdk/python/pulumi_gitlab/project_protected_environment.py index c9efff5e..0bda07b0 100644 --- a/sdk/python/pulumi_gitlab/project_protected_environment.py +++ b/sdk/python/pulumi_gitlab/project_protected_environment.py @@ -40,12 +40,24 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - environment: pulumi.Input[str], - project: pulumi.Input[str], + environment: Optional[pulumi.Input[str]] = None, + project: Optional[pulumi.Input[str]] = None, approval_rules: Optional[pulumi.Input[Sequence[pulumi.Input['ProjectProtectedEnvironmentApprovalRuleArgs']]]] = None, deploy_access_levels: Optional[pulumi.Input[Sequence[pulumi.Input['ProjectProtectedEnvironmentDeployAccessLevelArgs']]]] = None, required_approval_count: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if environment is None: + raise TypeError("Missing 'environment' argument") + if project is None: + raise TypeError("Missing 'project' argument") + if approval_rules is None and 'approvalRules' in kwargs: + approval_rules = kwargs['approvalRules'] + if deploy_access_levels is None and 'deployAccessLevels' in kwargs: + deploy_access_levels = kwargs['deployAccessLevels'] + if required_approval_count is None and 'requiredApprovalCount' in kwargs: + required_approval_count = kwargs['requiredApprovalCount'] + _setter("environment", environment) _setter("project", project) if approval_rules is not None: @@ -148,7 +160,15 @@ def _configure( environment: Optional[pulumi.Input[str]] = None, project: Optional[pulumi.Input[str]] = None, required_approval_count: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if approval_rules is None and 'approvalRules' in kwargs: + approval_rules = kwargs['approvalRules'] + if deploy_access_levels is None and 'deployAccessLevels' in kwargs: + deploy_access_levels = kwargs['deployAccessLevels'] + if required_approval_count is None and 'requiredApprovalCount' in kwargs: + required_approval_count = kwargs['requiredApprovalCount'] + if approval_rules is not None: _setter("approval_rules", approval_rules) if deploy_access_levels is not None: diff --git a/sdk/python/pulumi_gitlab/project_runner_enablement.py b/sdk/python/pulumi_gitlab/project_runner_enablement.py index 3b968735..2661cb8f 100644 --- a/sdk/python/pulumi_gitlab/project_runner_enablement.py +++ b/sdk/python/pulumi_gitlab/project_runner_enablement.py @@ -29,9 +29,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - project: pulumi.Input[str], - runner_id: pulumi.Input[int], - opts: Optional[pulumi.ResourceOptions]=None): + project: Optional[pulumi.Input[str]] = None, + runner_id: Optional[pulumi.Input[int]] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if project is None: + raise TypeError("Missing 'project' argument") + if runner_id is None and 'runnerId' in kwargs: + runner_id = kwargs['runnerId'] + if runner_id is None: + raise TypeError("Missing 'runner_id' argument") + _setter("project", project) _setter("runner_id", runner_id) @@ -80,7 +88,11 @@ def _configure( _setter: Callable[[Any, Any], None], project: Optional[pulumi.Input[str]] = None, runner_id: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if runner_id is None and 'runnerId' in kwargs: + runner_id = kwargs['runnerId'] + if project is not None: _setter("project", project) if runner_id is not None: @@ -124,17 +136,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/runners.html#enable-a-runner-in-project) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.ProjectRunnerEnablement("foo", - project="5", - runner_id=7) - ``` - ## Import GitLab project runners can be imported using an id made up of `project:runner_id`, e.g. @@ -159,17 +160,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/runners.html#enable-a-runner-in-project) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - foo = gitlab.ProjectRunnerEnablement("foo", - project="5", - runner_id=7) - ``` - ## Import GitLab project runners can be imported using an id made up of `project:runner_id`, e.g. diff --git a/sdk/python/pulumi_gitlab/project_share_group.py b/sdk/python/pulumi_gitlab/project_share_group.py index 095cc44c..cf1ed7cc 100644 --- a/sdk/python/pulumi_gitlab/project_share_group.py +++ b/sdk/python/pulumi_gitlab/project_share_group.py @@ -35,11 +35,23 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - group_id: pulumi.Input[int], - project: pulumi.Input[str], + group_id: Optional[pulumi.Input[int]] = None, + project: Optional[pulumi.Input[str]] = None, access_level: Optional[pulumi.Input[str]] = None, group_access: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if group_id is None and 'groupId' in kwargs: + group_id = kwargs['groupId'] + if group_id is None: + raise TypeError("Missing 'group_id' argument") + if project is None: + raise TypeError("Missing 'project' argument") + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if group_access is None and 'groupAccess' in kwargs: + group_access = kwargs['groupAccess'] + _setter("group_id", group_id) _setter("project", project) if access_level is not None: @@ -130,7 +142,15 @@ def _configure( group_access: Optional[pulumi.Input[str]] = None, group_id: Optional[pulumi.Input[int]] = None, project: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if group_access is None and 'groupAccess' in kwargs: + group_access = kwargs['groupAccess'] + if group_id is None and 'groupId' in kwargs: + group_id = kwargs['groupId'] + if access_level is not None: warnings.warn("""Use `group_access` instead of the `access_level` attribute.""", DeprecationWarning) pulumi.log.warn("""access_level is deprecated: Use `group_access` instead of the `access_level` attribute.""") @@ -210,18 +230,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#share-project-with-group) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - test = gitlab.ProjectShareGroup("test", - group_access="guest", - group_id=1337, - project="12345") - ``` - ## Import GitLab project group shares can be imported using an id made up of `projectid:groupid`, e.g. @@ -248,18 +256,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/projects.html#share-project-with-group) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - test = gitlab.ProjectShareGroup("test", - group_access="guest", - group_id=1337, - project="12345") - ``` - ## Import GitLab project group shares can be imported using an id made up of `projectid:groupid`, e.g. diff --git a/sdk/python/pulumi_gitlab/project_tag.py b/sdk/python/pulumi_gitlab/project_tag.py index ab7fd2d8..9f0b1cde 100644 --- a/sdk/python/pulumi_gitlab/project_tag.py +++ b/sdk/python/pulumi_gitlab/project_tag.py @@ -37,11 +37,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - project: pulumi.Input[str], - ref: pulumi.Input[str], + project: Optional[pulumi.Input[str]] = None, + ref: Optional[pulumi.Input[str]] = None, message: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if project is None: + raise TypeError("Missing 'project' argument") + if ref is None: + raise TypeError("Missing 'ref' argument") + _setter("project", project) _setter("ref", ref) if message is not None: @@ -142,7 +148,9 @@ def _configure( ref: Optional[pulumi.Input[str]] = None, releases: Optional[pulumi.Input[Sequence[pulumi.Input['ProjectTagReleaseArgs']]]] = None, target: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if commits is not None: _setter("commits", commits) if message is not None: @@ -272,21 +280,6 @@ def __init__(__self__, **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/tags.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - # Create a project for the tag to use - example_project = gitlab.Project("exampleProject", - description="An example project", - namespace_id=gitlab_group["example"]["id"]) - example_project_tag = gitlab.ProjectTag("exampleProjectTag", - ref="main", - project=example_project.id) - ``` - ## Import Gitlab project tags can be imported with a key composed of `:`, e.g. @@ -315,21 +308,6 @@ def __init__(__self__, **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/tags.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - # Create a project for the tag to use - example_project = gitlab.Project("exampleProject", - description="An example project", - namespace_id=gitlab_group["example"]["id"]) - example_project_tag = gitlab.ProjectTag("exampleProjectTag", - ref="main", - project=example_project.id) - ``` - ## Import Gitlab project tags can be imported with a key composed of `:`, e.g. diff --git a/sdk/python/pulumi_gitlab/project_variable.py b/sdk/python/pulumi_gitlab/project_variable.py index 76e11d54..d8840708 100644 --- a/sdk/python/pulumi_gitlab/project_variable.py +++ b/sdk/python/pulumi_gitlab/project_variable.py @@ -47,15 +47,27 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - key: pulumi.Input[str], - project: pulumi.Input[str], - value: pulumi.Input[str], + key: Optional[pulumi.Input[str]] = None, + project: Optional[pulumi.Input[str]] = None, + value: Optional[pulumi.Input[str]] = None, environment_scope: Optional[pulumi.Input[str]] = None, masked: Optional[pulumi.Input[bool]] = None, protected: Optional[pulumi.Input[bool]] = None, raw: Optional[pulumi.Input[bool]] = None, variable_type: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if key is None: + raise TypeError("Missing 'key' argument") + if project is None: + raise TypeError("Missing 'project' argument") + if value is None: + raise TypeError("Missing 'value' argument") + if environment_scope is None and 'environmentScope' in kwargs: + environment_scope = kwargs['environmentScope'] + if variable_type is None and 'variableType' in kwargs: + variable_type = kwargs['variableType'] + _setter("key", key) _setter("project", project) _setter("value", value) @@ -211,7 +223,13 @@ def _configure( raw: Optional[pulumi.Input[bool]] = None, value: Optional[pulumi.Input[str]] = None, variable_type: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if environment_scope is None and 'environmentScope' in kwargs: + environment_scope = kwargs['environmentScope'] + if variable_type is None and 'variableType' in kwargs: + variable_type = kwargs['variableType'] + if environment_scope is not None: _setter("environment_scope", environment_scope) if key is not None: @@ -347,19 +365,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/project_level_variables.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.ProjectVariable("example", - key="project_variable_key", - project="12345", - protected=False, - value="project_variable_value") - ``` - ## Import GitLab project variables can be imported using an id made up of `project:key:environment_scope`, e.g. @@ -392,19 +397,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/project_level_variables.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.ProjectVariable("example", - key="project_variable_key", - project="12345", - protected=False, - value="project_variable_value") - ``` - ## Import GitLab project variables can be imported using an id made up of `project:key:environment_scope`, e.g. diff --git a/sdk/python/pulumi_gitlab/provider.py b/sdk/python/pulumi_gitlab/provider.py index 06101308..da622968 100644 --- a/sdk/python/pulumi_gitlab/provider.py +++ b/sdk/python/pulumi_gitlab/provider.py @@ -62,7 +62,19 @@ def _configure( early_auth_check: Optional[pulumi.Input[bool]] = None, insecure: Optional[pulumi.Input[bool]] = None, token: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if base_url is None and 'baseUrl' in kwargs: + base_url = kwargs['baseUrl'] + if cacert_file is None and 'cacertFile' in kwargs: + cacert_file = kwargs['cacertFile'] + if client_cert is None and 'clientCert' in kwargs: + client_cert = kwargs['clientCert'] + if client_key is None and 'clientKey' in kwargs: + client_key = kwargs['clientKey'] + if early_auth_check is None and 'earlyAuthCheck' in kwargs: + early_auth_check = kwargs['earlyAuthCheck'] + if base_url is not None: _setter("base_url", base_url) if cacert_file is not None: diff --git a/sdk/python/pulumi_gitlab/release_link.py b/sdk/python/pulumi_gitlab/release_link.py index ecdf25a1..b40144c5 100644 --- a/sdk/python/pulumi_gitlab/release_link.py +++ b/sdk/python/pulumi_gitlab/release_link.py @@ -41,13 +41,25 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - project: pulumi.Input[str], - tag_name: pulumi.Input[str], - url: pulumi.Input[str], + project: Optional[pulumi.Input[str]] = None, + tag_name: Optional[pulumi.Input[str]] = None, + url: Optional[pulumi.Input[str]] = None, filepath: Optional[pulumi.Input[str]] = None, link_type: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if project is None: + raise TypeError("Missing 'project' argument") + if tag_name is None and 'tagName' in kwargs: + tag_name = kwargs['tagName'] + if tag_name is None: + raise TypeError("Missing 'tag_name' argument") + if url is None: + raise TypeError("Missing 'url' argument") + if link_type is None and 'linkType' in kwargs: + link_type = kwargs['linkType'] + _setter("project", project) _setter("tag_name", tag_name) _setter("url", url) @@ -179,7 +191,17 @@ def _configure( project: Optional[pulumi.Input[str]] = None, tag_name: Optional[pulumi.Input[str]] = None, url: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if direct_asset_url is None and 'directAssetUrl' in kwargs: + direct_asset_url = kwargs['directAssetUrl'] + if link_id is None and 'linkId' in kwargs: + link_id = kwargs['linkId'] + if link_type is None and 'linkType' in kwargs: + link_type = kwargs['linkType'] + if tag_name is None and 'tagName' in kwargs: + tag_name = kwargs['tagName'] + if direct_asset_url is not None: _setter("direct_asset_url", direct_asset_url) if external is not None: @@ -325,21 +347,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/releases/links.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - # Create a project - example_project = gitlab.Project("exampleProject", description="An example project") - # Can create release link only to a tag associated with a release - example_release_link = gitlab.ReleaseLink("exampleReleaseLink", - project=example_project.id, - tag_name="tag_name_associated_with_release", - url="https://test/") - ``` - ## Import Gitlab release link can be imported with a key composed of `::`, e.g. @@ -368,21 +375,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/releases/links.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - # Create a project - example_project = gitlab.Project("exampleProject", description="An example project") - # Can create release link only to a tag associated with a release - example_release_link = gitlab.ReleaseLink("exampleReleaseLink", - project=example_project.id, - tag_name="tag_name_associated_with_release", - url="https://test/") - ``` - ## Import Gitlab release link can be imported with a key composed of `::`, e.g. diff --git a/sdk/python/pulumi_gitlab/repository_file.py b/sdk/python/pulumi_gitlab/repository_file.py index 0936f4cb..47b0c7c9 100644 --- a/sdk/python/pulumi_gitlab/repository_file.py +++ b/sdk/python/pulumi_gitlab/repository_file.py @@ -65,10 +65,10 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - branch: pulumi.Input[str], - content: pulumi.Input[str], - file_path: pulumi.Input[str], - project: pulumi.Input[str], + branch: Optional[pulumi.Input[str]] = None, + content: Optional[pulumi.Input[str]] = None, + file_path: Optional[pulumi.Input[str]] = None, + project: Optional[pulumi.Input[str]] = None, author_email: Optional[pulumi.Input[str]] = None, author_name: Optional[pulumi.Input[str]] = None, commit_message: Optional[pulumi.Input[str]] = None, @@ -79,7 +79,37 @@ def _configure( overwrite_on_create: Optional[pulumi.Input[bool]] = None, start_branch: Optional[pulumi.Input[str]] = None, update_commit_message: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if branch is None: + raise TypeError("Missing 'branch' argument") + if content is None: + raise TypeError("Missing 'content' argument") + if file_path is None and 'filePath' in kwargs: + file_path = kwargs['filePath'] + if file_path is None: + raise TypeError("Missing 'file_path' argument") + if project is None: + raise TypeError("Missing 'project' argument") + if author_email is None and 'authorEmail' in kwargs: + author_email = kwargs['authorEmail'] + if author_name is None and 'authorName' in kwargs: + author_name = kwargs['authorName'] + if commit_message is None and 'commitMessage' in kwargs: + commit_message = kwargs['commitMessage'] + if create_commit_message is None and 'createCommitMessage' in kwargs: + create_commit_message = kwargs['createCommitMessage'] + if delete_commit_message is None and 'deleteCommitMessage' in kwargs: + delete_commit_message = kwargs['deleteCommitMessage'] + if execute_filemode is None and 'executeFilemode' in kwargs: + execute_filemode = kwargs['executeFilemode'] + if overwrite_on_create is None and 'overwriteOnCreate' in kwargs: + overwrite_on_create = kwargs['overwriteOnCreate'] + if start_branch is None and 'startBranch' in kwargs: + start_branch = kwargs['startBranch'] + if update_commit_message is None and 'updateCommitMessage' in kwargs: + update_commit_message = kwargs['updateCommitMessage'] + _setter("branch", branch) _setter("content", content) _setter("file_path", file_path) @@ -370,7 +400,39 @@ def _configure( size: Optional[pulumi.Input[int]] = None, start_branch: Optional[pulumi.Input[str]] = None, update_commit_message: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if author_email is None and 'authorEmail' in kwargs: + author_email = kwargs['authorEmail'] + if author_name is None and 'authorName' in kwargs: + author_name = kwargs['authorName'] + if blob_id is None and 'blobId' in kwargs: + blob_id = kwargs['blobId'] + if commit_id is None and 'commitId' in kwargs: + commit_id = kwargs['commitId'] + if commit_message is None and 'commitMessage' in kwargs: + commit_message = kwargs['commitMessage'] + if content_sha256 is None and 'contentSha256' in kwargs: + content_sha256 = kwargs['contentSha256'] + if create_commit_message is None and 'createCommitMessage' in kwargs: + create_commit_message = kwargs['createCommitMessage'] + if delete_commit_message is None and 'deleteCommitMessage' in kwargs: + delete_commit_message = kwargs['deleteCommitMessage'] + if execute_filemode is None and 'executeFilemode' in kwargs: + execute_filemode = kwargs['executeFilemode'] + if file_name is None and 'fileName' in kwargs: + file_name = kwargs['fileName'] + if file_path is None and 'filePath' in kwargs: + file_path = kwargs['filePath'] + if last_commit_id is None and 'lastCommitId' in kwargs: + last_commit_id = kwargs['lastCommitId'] + if overwrite_on_create is None and 'overwriteOnCreate' in kwargs: + overwrite_on_create = kwargs['overwriteOnCreate'] + if start_branch is None and 'startBranch' in kwargs: + start_branch = kwargs['startBranch'] + if update_commit_message is None and 'updateCommitMessage' in kwargs: + update_commit_message = kwargs['updateCommitMessage'] + if author_email is not None: _setter("author_email", author_email) if author_name is not None: diff --git a/sdk/python/pulumi_gitlab/runner.py b/sdk/python/pulumi_gitlab/runner.py index bd4fc0a8..3bb506cd 100644 --- a/sdk/python/pulumi_gitlab/runner.py +++ b/sdk/python/pulumi_gitlab/runner.py @@ -47,7 +47,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - registration_token: pulumi.Input[str], + registration_token: Optional[pulumi.Input[str]] = None, access_level: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, locked: Optional[pulumi.Input[bool]] = None, @@ -55,7 +55,21 @@ def _configure( paused: Optional[pulumi.Input[bool]] = None, run_untagged: Optional[pulumi.Input[bool]] = None, tag_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if registration_token is None and 'registrationToken' in kwargs: + registration_token = kwargs['registrationToken'] + if registration_token is None: + raise TypeError("Missing 'registration_token' argument") + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if maximum_timeout is None and 'maximumTimeout' in kwargs: + maximum_timeout = kwargs['maximumTimeout'] + if run_untagged is None and 'runUntagged' in kwargs: + run_untagged = kwargs['runUntagged'] + if tag_lists is None and 'tagLists' in kwargs: + tag_lists = kwargs['tagLists'] + _setter("registration_token", registration_token) if access_level is not None: _setter("access_level", access_level) @@ -222,7 +236,21 @@ def _configure( run_untagged: Optional[pulumi.Input[bool]] = None, status: Optional[pulumi.Input[str]] = None, tag_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if authentication_token is None and 'authenticationToken' in kwargs: + authentication_token = kwargs['authenticationToken'] + if maximum_timeout is None and 'maximumTimeout' in kwargs: + maximum_timeout = kwargs['maximumTimeout'] + if registration_token is None and 'registrationToken' in kwargs: + registration_token = kwargs['registrationToken'] + if run_untagged is None and 'runUntagged' in kwargs: + run_untagged = kwargs['runUntagged'] + if tag_lists is None and 'tagLists' in kwargs: + tag_lists = kwargs['tagLists'] + if access_level is not None: _setter("access_level", access_level) if authentication_token is not None: @@ -391,51 +419,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/runners.html#register-a-new-runner) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - import pulumi_local as local - - # Basic GitLab Group Runner - my_group = gitlab.Group("myGroup", description="group that holds the runners") - basic_runner = gitlab.Runner("basicRunner", registration_token=my_group.runners_token) - # GitLab Runner that runs only tagged jobs - tagged_only = gitlab.Runner("taggedOnly", - registration_token=my_group.runners_token, - description="I only run tagged jobs", - run_untagged=False, - tag_lists=[ - "tag_one", - "tag_two", - ]) - # GitLab Runner that only runs on protected branches - protected = gitlab.Runner("protected", - registration_token=my_group.runners_token, - description="I only run protected jobs", - access_level="ref_protected") - # Generate a `config.toml` file that you can use to create a runner - # This is the typical workflow for this resource, using it to create an authentication_token which can then be used - # to generate the `config.toml` file to prevent re-registering the runner every time new hardware is created. - my_custom_group = gitlab.Group("myCustomGroup", description="group that holds the custom runners") - my_runner = gitlab.Runner("myRunner", registration_token=my_custom_group.runners_token) - # This creates a configuration for a local "shell" runner, but can be changed to generate whatever is needed. - # Place this configuration file on a server at `/etc/gitlab-runner/config.toml`, then run `gitlab-runner start`. - # See https://docs.gitlab.com/runner/configuration/advanced-configuration.html for more information. - config = local.File("config", - filename=f"{path['module']}/config.toml", - content=my_runner.authentication_token.apply(lambda authentication_token: f\"\"\" concurrent = 1 - - [[runners]] - name = "Hello Terraform" - url = "https://example.gitlab.com/" - token = "{authentication_token}" - executor = "shell" - - \"\"\")) - ``` - ## Import A GitLab Runner can be imported using the runner's ID, eg @@ -472,51 +455,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/runners.html#register-a-new-runner) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - import pulumi_local as local - - # Basic GitLab Group Runner - my_group = gitlab.Group("myGroup", description="group that holds the runners") - basic_runner = gitlab.Runner("basicRunner", registration_token=my_group.runners_token) - # GitLab Runner that runs only tagged jobs - tagged_only = gitlab.Runner("taggedOnly", - registration_token=my_group.runners_token, - description="I only run tagged jobs", - run_untagged=False, - tag_lists=[ - "tag_one", - "tag_two", - ]) - # GitLab Runner that only runs on protected branches - protected = gitlab.Runner("protected", - registration_token=my_group.runners_token, - description="I only run protected jobs", - access_level="ref_protected") - # Generate a `config.toml` file that you can use to create a runner - # This is the typical workflow for this resource, using it to create an authentication_token which can then be used - # to generate the `config.toml` file to prevent re-registering the runner every time new hardware is created. - my_custom_group = gitlab.Group("myCustomGroup", description="group that holds the custom runners") - my_runner = gitlab.Runner("myRunner", registration_token=my_custom_group.runners_token) - # This creates a configuration for a local "shell" runner, but can be changed to generate whatever is needed. - # Place this configuration file on a server at `/etc/gitlab-runner/config.toml`, then run `gitlab-runner start`. - # See https://docs.gitlab.com/runner/configuration/advanced-configuration.html for more information. - config = local.File("config", - filename=f"{path['module']}/config.toml", - content=my_runner.authentication_token.apply(lambda authentication_token: f\"\"\" concurrent = 1 - - [[runners]] - name = "Hello Terraform" - url = "https://example.gitlab.com/" - token = "{authentication_token}" - executor = "shell" - - \"\"\")) - ``` - ## Import A GitLab Runner can be imported using the runner's ID, eg diff --git a/sdk/python/pulumi_gitlab/service_custom_issue_tracker.py b/sdk/python/pulumi_gitlab/service_custom_issue_tracker.py index 0d8092e0..c792839d 100644 --- a/sdk/python/pulumi_gitlab/service_custom_issue_tracker.py +++ b/sdk/python/pulumi_gitlab/service_custom_issue_tracker.py @@ -32,10 +32,22 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - issues_url: pulumi.Input[str], - project: pulumi.Input[str], - project_url: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + issues_url: Optional[pulumi.Input[str]] = None, + project: Optional[pulumi.Input[str]] = None, + project_url: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if issues_url is None and 'issuesUrl' in kwargs: + issues_url = kwargs['issuesUrl'] + if issues_url is None: + raise TypeError("Missing 'issues_url' argument") + if project is None: + raise TypeError("Missing 'project' argument") + if project_url is None and 'projectUrl' in kwargs: + project_url = kwargs['projectUrl'] + if project_url is None: + raise TypeError("Missing 'project_url' argument") + _setter("issues_url", issues_url) _setter("project", project) _setter("project_url", project_url) @@ -117,7 +129,17 @@ def _configure( project_url: Optional[pulumi.Input[str]] = None, slug: Optional[pulumi.Input[str]] = None, updated_at: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if issues_url is None and 'issuesUrl' in kwargs: + issues_url = kwargs['issuesUrl'] + if project_url is None and 'projectUrl' in kwargs: + project_url = kwargs['projectUrl'] + if updated_at is None and 'updatedAt' in kwargs: + updated_at = kwargs['updatedAt'] + if active is not None: _setter("active", active) if created_at is not None: @@ -234,21 +256,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#custom-issue-tracker) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - tracker = gitlab.ServiceCustomIssueTracker("tracker", - project=awesome_project.id, - project_url="https://customtracker.com/issues", - issues_url="https://customtracker.com/TEST-:id") - ``` - ## Import You can import a gitlab_service_custom_issue_tracker state using the project ID, e.g. @@ -276,21 +283,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#custom-issue-tracker) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - tracker = gitlab.ServiceCustomIssueTracker("tracker", - project=awesome_project.id, - project_url="https://customtracker.com/issues", - issues_url="https://customtracker.com/TEST-:id") - ``` - ## Import You can import a gitlab_service_custom_issue_tracker state using the project ID, e.g. diff --git a/sdk/python/pulumi_gitlab/service_emails_on_push.py b/sdk/python/pulumi_gitlab/service_emails_on_push.py index 3cef7bc8..e8bf15d5 100644 --- a/sdk/python/pulumi_gitlab/service_emails_on_push.py +++ b/sdk/python/pulumi_gitlab/service_emails_on_push.py @@ -44,14 +44,30 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - project: pulumi.Input[str], - recipients: pulumi.Input[str], + project: Optional[pulumi.Input[str]] = None, + recipients: Optional[pulumi.Input[str]] = None, branches_to_be_notified: Optional[pulumi.Input[str]] = None, disable_diffs: Optional[pulumi.Input[bool]] = None, push_events: Optional[pulumi.Input[bool]] = None, send_from_committer_email: Optional[pulumi.Input[bool]] = None, tag_push_events: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if project is None: + raise TypeError("Missing 'project' argument") + if recipients is None: + raise TypeError("Missing 'recipients' argument") + if branches_to_be_notified is None and 'branchesToBeNotified' in kwargs: + branches_to_be_notified = kwargs['branchesToBeNotified'] + if disable_diffs is None and 'disableDiffs' in kwargs: + disable_diffs = kwargs['disableDiffs'] + if push_events is None and 'pushEvents' in kwargs: + push_events = kwargs['pushEvents'] + if send_from_committer_email is None and 'sendFromCommitterEmail' in kwargs: + send_from_committer_email = kwargs['sendFromCommitterEmail'] + if tag_push_events is None and 'tagPushEvents' in kwargs: + tag_push_events = kwargs['tagPushEvents'] + _setter("project", project) _setter("recipients", recipients) if branches_to_be_notified is not None: @@ -210,7 +226,23 @@ def _configure( tag_push_events: Optional[pulumi.Input[bool]] = None, title: Optional[pulumi.Input[str]] = None, updated_at: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if branches_to_be_notified is None and 'branchesToBeNotified' in kwargs: + branches_to_be_notified = kwargs['branchesToBeNotified'] + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if disable_diffs is None and 'disableDiffs' in kwargs: + disable_diffs = kwargs['disableDiffs'] + if push_events is None and 'pushEvents' in kwargs: + push_events = kwargs['pushEvents'] + if send_from_committer_email is None and 'sendFromCommitterEmail' in kwargs: + send_from_committer_email = kwargs['sendFromCommitterEmail'] + if tag_push_events is None and 'tagPushEvents' in kwargs: + tag_push_events = kwargs['tagPushEvents'] + if updated_at is None and 'updatedAt' in kwargs: + updated_at = kwargs['updatedAt'] + if active is not None: _setter("active", active) if branches_to_be_notified is not None: @@ -401,20 +433,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#emails-on-push) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - emails = gitlab.ServiceEmailsOnPush("emails", - project=awesome_project.id, - recipients="myrecipient@example.com myotherrecipient@example.com") - ``` - ## Import You can import a gitlab_service_emails_on_push state using the project ID, e.g. @@ -446,20 +464,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#emails-on-push) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - emails = gitlab.ServiceEmailsOnPush("emails", - project=awesome_project.id, - recipients="myrecipient@example.com myotherrecipient@example.com") - ``` - ## Import You can import a gitlab_service_emails_on_push state using the project ID, e.g. diff --git a/sdk/python/pulumi_gitlab/service_external_wiki.py b/sdk/python/pulumi_gitlab/service_external_wiki.py index 1845f373..d0257405 100644 --- a/sdk/python/pulumi_gitlab/service_external_wiki.py +++ b/sdk/python/pulumi_gitlab/service_external_wiki.py @@ -29,9 +29,17 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - external_wiki_url: pulumi.Input[str], - project: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + external_wiki_url: Optional[pulumi.Input[str]] = None, + project: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if external_wiki_url is None and 'externalWikiUrl' in kwargs: + external_wiki_url = kwargs['externalWikiUrl'] + if external_wiki_url is None: + raise TypeError("Missing 'external_wiki_url' argument") + if project is None: + raise TypeError("Missing 'project' argument") + _setter("external_wiki_url", external_wiki_url) _setter("project", project) @@ -100,7 +108,15 @@ def _configure( slug: Optional[pulumi.Input[str]] = None, title: Optional[pulumi.Input[str]] = None, updated_at: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if external_wiki_url is None and 'externalWikiUrl' in kwargs: + external_wiki_url = kwargs['externalWikiUrl'] + if updated_at is None and 'updatedAt' in kwargs: + updated_at = kwargs['updatedAt'] + if active is not None: _setter("active", active) if created_at is not None: @@ -216,20 +232,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#external-wiki) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - wiki = gitlab.ServiceExternalWiki("wiki", - project=awesome_project.id, - external_wiki_url="https://MyAwesomeExternalWikiURL.com") - ``` - ## Import You can import a gitlab_service_external_wiki state using the project ID, e.g. @@ -256,20 +258,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#external-wiki) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - wiki = gitlab.ServiceExternalWiki("wiki", - project=awesome_project.id, - external_wiki_url="https://MyAwesomeExternalWikiURL.com") - ``` - ## Import You can import a gitlab_service_external_wiki state using the project ID, e.g. diff --git a/sdk/python/pulumi_gitlab/service_github.py b/sdk/python/pulumi_gitlab/service_github.py index 2b798b61..accd641b 100644 --- a/sdk/python/pulumi_gitlab/service_github.py +++ b/sdk/python/pulumi_gitlab/service_github.py @@ -35,11 +35,23 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - project: pulumi.Input[str], - repository_url: pulumi.Input[str], - token: pulumi.Input[str], + project: Optional[pulumi.Input[str]] = None, + repository_url: Optional[pulumi.Input[str]] = None, + token: Optional[pulumi.Input[str]] = None, static_context: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if project is None: + raise TypeError("Missing 'project' argument") + if repository_url is None and 'repositoryUrl' in kwargs: + repository_url = kwargs['repositoryUrl'] + if repository_url is None: + raise TypeError("Missing 'repository_url' argument") + if token is None: + raise TypeError("Missing 'token' argument") + if static_context is None and 'staticContext' in kwargs: + static_context = kwargs['staticContext'] + _setter("project", project) _setter("repository_url", repository_url) _setter("token", token) @@ -139,7 +151,17 @@ def _configure( title: Optional[pulumi.Input[str]] = None, token: Optional[pulumi.Input[str]] = None, updated_at: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if repository_url is None and 'repositoryUrl' in kwargs: + repository_url = kwargs['repositoryUrl'] + if static_context is None and 'staticContext' in kwargs: + static_context = kwargs['staticContext'] + if updated_at is None and 'updatedAt' in kwargs: + updated_at = kwargs['updatedAt'] + if active is not None: _setter("active", active) if created_at is not None: @@ -273,21 +295,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#github) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - github = gitlab.ServiceGithub("github", - project=awesome_project.id, - token="REDACTED", - repository_url="https://github.com/gitlabhq/terraform-provider-gitlab") - ``` - ## Import ```sh @@ -320,21 +327,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#github) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - github = gitlab.ServiceGithub("github", - project=awesome_project.id, - token="REDACTED", - repository_url="https://github.com/gitlabhq/terraform-provider-gitlab") - ``` - ## Import ```sh diff --git a/sdk/python/pulumi_gitlab/service_jira.py b/sdk/python/pulumi_gitlab/service_jira.py index c1b76662..f9cf7353 100644 --- a/sdk/python/pulumi_gitlab/service_jira.py +++ b/sdk/python/pulumi_gitlab/service_jira.py @@ -71,10 +71,10 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - password: pulumi.Input[str], - project: pulumi.Input[str], - url: pulumi.Input[str], - username: pulumi.Input[str], + password: Optional[pulumi.Input[str]] = None, + project: Optional[pulumi.Input[str]] = None, + url: Optional[pulumi.Input[str]] = None, + username: Optional[pulumi.Input[str]] = None, api_url: Optional[pulumi.Input[str]] = None, comment_on_event_enabled: Optional[pulumi.Input[bool]] = None, commit_events: Optional[pulumi.Input[bool]] = None, @@ -87,7 +87,41 @@ def _configure( project_key: Optional[pulumi.Input[str]] = None, push_events: Optional[pulumi.Input[bool]] = None, tag_push_events: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if password is None: + raise TypeError("Missing 'password' argument") + if project is None: + raise TypeError("Missing 'project' argument") + if url is None: + raise TypeError("Missing 'url' argument") + if username is None: + raise TypeError("Missing 'username' argument") + if api_url is None and 'apiUrl' in kwargs: + api_url = kwargs['apiUrl'] + if comment_on_event_enabled is None and 'commentOnEventEnabled' in kwargs: + comment_on_event_enabled = kwargs['commentOnEventEnabled'] + if commit_events is None and 'commitEvents' in kwargs: + commit_events = kwargs['commitEvents'] + if issues_events is None and 'issuesEvents' in kwargs: + issues_events = kwargs['issuesEvents'] + if jira_issue_transition_id is None and 'jiraIssueTransitionId' in kwargs: + jira_issue_transition_id = kwargs['jiraIssueTransitionId'] + if job_events is None and 'jobEvents' in kwargs: + job_events = kwargs['jobEvents'] + if merge_requests_events is None and 'mergeRequestsEvents' in kwargs: + merge_requests_events = kwargs['mergeRequestsEvents'] + if note_events is None and 'noteEvents' in kwargs: + note_events = kwargs['noteEvents'] + if pipeline_events is None and 'pipelineEvents' in kwargs: + pipeline_events = kwargs['pipelineEvents'] + if project_key is None and 'projectKey' in kwargs: + project_key = kwargs['projectKey'] + if push_events is None and 'pushEvents' in kwargs: + push_events = kwargs['pushEvents'] + if tag_push_events is None and 'tagPushEvents' in kwargs: + tag_push_events = kwargs['tagPushEvents'] + _setter("password", password) _setter("project", project) _setter("url", url) @@ -402,7 +436,37 @@ def _configure( updated_at: Optional[pulumi.Input[str]] = None, url: Optional[pulumi.Input[str]] = None, username: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if api_url is None and 'apiUrl' in kwargs: + api_url = kwargs['apiUrl'] + if comment_on_event_enabled is None and 'commentOnEventEnabled' in kwargs: + comment_on_event_enabled = kwargs['commentOnEventEnabled'] + if commit_events is None and 'commitEvents' in kwargs: + commit_events = kwargs['commitEvents'] + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if issues_events is None and 'issuesEvents' in kwargs: + issues_events = kwargs['issuesEvents'] + if jira_issue_transition_id is None and 'jiraIssueTransitionId' in kwargs: + jira_issue_transition_id = kwargs['jiraIssueTransitionId'] + if job_events is None and 'jobEvents' in kwargs: + job_events = kwargs['jobEvents'] + if merge_requests_events is None and 'mergeRequestsEvents' in kwargs: + merge_requests_events = kwargs['mergeRequestsEvents'] + if note_events is None and 'noteEvents' in kwargs: + note_events = kwargs['noteEvents'] + if pipeline_events is None and 'pipelineEvents' in kwargs: + pipeline_events = kwargs['pipelineEvents'] + if project_key is None and 'projectKey' in kwargs: + project_key = kwargs['projectKey'] + if push_events is None and 'pushEvents' in kwargs: + push_events = kwargs['pushEvents'] + if tag_push_events is None and 'tagPushEvents' in kwargs: + tag_push_events = kwargs['tagPushEvents'] + if updated_at is None and 'updatedAt' in kwargs: + updated_at = kwargs['updatedAt'] + if active is not None: _setter("active", active) if api_url is not None: @@ -714,22 +778,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/services.html#jira) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - jira = gitlab.ServiceJira("jira", - project=awesome_project.id, - url="https://jira.example.com", - username="user", - password="mypass") - ``` - ## Import You can import a gitlab_service_jira state using the project ID, e.g. @@ -770,22 +818,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/services.html#jira) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - jira = gitlab.ServiceJira("jira", - project=awesome_project.id, - url="https://jira.example.com", - username="user", - password="mypass") - ``` - ## Import You can import a gitlab_service_jira state using the project ID, e.g. diff --git a/sdk/python/pulumi_gitlab/service_microsoft_teams.py b/sdk/python/pulumi_gitlab/service_microsoft_teams.py index 9459f284..c925777f 100644 --- a/sdk/python/pulumi_gitlab/service_microsoft_teams.py +++ b/sdk/python/pulumi_gitlab/service_microsoft_teams.py @@ -62,8 +62,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - project: pulumi.Input[str], - webhook: pulumi.Input[str], + project: Optional[pulumi.Input[str]] = None, + webhook: Optional[pulumi.Input[str]] = None, branches_to_be_notified: Optional[pulumi.Input[str]] = None, confidential_issues_events: Optional[pulumi.Input[bool]] = None, confidential_note_events: Optional[pulumi.Input[bool]] = None, @@ -75,7 +75,35 @@ def _configure( push_events: Optional[pulumi.Input[bool]] = None, tag_push_events: Optional[pulumi.Input[bool]] = None, wiki_page_events: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if project is None: + raise TypeError("Missing 'project' argument") + if webhook is None: + raise TypeError("Missing 'webhook' argument") + if branches_to_be_notified is None and 'branchesToBeNotified' in kwargs: + branches_to_be_notified = kwargs['branchesToBeNotified'] + if confidential_issues_events is None and 'confidentialIssuesEvents' in kwargs: + confidential_issues_events = kwargs['confidentialIssuesEvents'] + if confidential_note_events is None and 'confidentialNoteEvents' in kwargs: + confidential_note_events = kwargs['confidentialNoteEvents'] + if issues_events is None and 'issuesEvents' in kwargs: + issues_events = kwargs['issuesEvents'] + if merge_requests_events is None and 'mergeRequestsEvents' in kwargs: + merge_requests_events = kwargs['mergeRequestsEvents'] + if note_events is None and 'noteEvents' in kwargs: + note_events = kwargs['noteEvents'] + if notify_only_broken_pipelines is None and 'notifyOnlyBrokenPipelines' in kwargs: + notify_only_broken_pipelines = kwargs['notifyOnlyBrokenPipelines'] + if pipeline_events is None and 'pipelineEvents' in kwargs: + pipeline_events = kwargs['pipelineEvents'] + if push_events is None and 'pushEvents' in kwargs: + push_events = kwargs['pushEvents'] + if tag_push_events is None and 'tagPushEvents' in kwargs: + tag_push_events = kwargs['tagPushEvents'] + if wiki_page_events is None and 'wikiPageEvents' in kwargs: + wiki_page_events = kwargs['wikiPageEvents'] + _setter("project", project) _setter("webhook", webhook) if branches_to_be_notified is not None: @@ -334,7 +362,35 @@ def _configure( updated_at: Optional[pulumi.Input[str]] = None, webhook: Optional[pulumi.Input[str]] = None, wiki_page_events: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if branches_to_be_notified is None and 'branchesToBeNotified' in kwargs: + branches_to_be_notified = kwargs['branchesToBeNotified'] + if confidential_issues_events is None and 'confidentialIssuesEvents' in kwargs: + confidential_issues_events = kwargs['confidentialIssuesEvents'] + if confidential_note_events is None and 'confidentialNoteEvents' in kwargs: + confidential_note_events = kwargs['confidentialNoteEvents'] + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if issues_events is None and 'issuesEvents' in kwargs: + issues_events = kwargs['issuesEvents'] + if merge_requests_events is None and 'mergeRequestsEvents' in kwargs: + merge_requests_events = kwargs['mergeRequestsEvents'] + if note_events is None and 'noteEvents' in kwargs: + note_events = kwargs['noteEvents'] + if notify_only_broken_pipelines is None and 'notifyOnlyBrokenPipelines' in kwargs: + notify_only_broken_pipelines = kwargs['notifyOnlyBrokenPipelines'] + if pipeline_events is None and 'pipelineEvents' in kwargs: + pipeline_events = kwargs['pipelineEvents'] + if push_events is None and 'pushEvents' in kwargs: + push_events = kwargs['pushEvents'] + if tag_push_events is None and 'tagPushEvents' in kwargs: + tag_push_events = kwargs['tagPushEvents'] + if updated_at is None and 'updatedAt' in kwargs: + updated_at = kwargs['updatedAt'] + if wiki_page_events is None and 'wikiPageEvents' in kwargs: + wiki_page_events = kwargs['wikiPageEvents'] + if active is not None: _setter("active", active) if branches_to_be_notified is not None: @@ -587,21 +643,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#microsoft-teams) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - teams = gitlab.ServiceMicrosoftTeams("teams", - project=awesome_project.id, - webhook="https://testurl.com/?token=XYZ", - push_events=True) - ``` - ## Import You can import a gitlab_service_microsoft_teams state using the project ID, e.g. @@ -639,21 +680,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#microsoft-teams) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - teams = gitlab.ServiceMicrosoftTeams("teams", - project=awesome_project.id, - webhook="https://testurl.com/?token=XYZ", - push_events=True) - ``` - ## Import You can import a gitlab_service_microsoft_teams state using the project ID, e.g. diff --git a/sdk/python/pulumi_gitlab/service_pipelines_email.py b/sdk/python/pulumi_gitlab/service_pipelines_email.py index 6527e151..346677bb 100644 --- a/sdk/python/pulumi_gitlab/service_pipelines_email.py +++ b/sdk/python/pulumi_gitlab/service_pipelines_email.py @@ -35,11 +35,21 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - project: pulumi.Input[str], - recipients: pulumi.Input[Sequence[pulumi.Input[str]]], + project: Optional[pulumi.Input[str]] = None, + recipients: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, branches_to_be_notified: Optional[pulumi.Input[str]] = None, notify_only_broken_pipelines: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if project is None: + raise TypeError("Missing 'project' argument") + if recipients is None: + raise TypeError("Missing 'recipients' argument") + if branches_to_be_notified is None and 'branchesToBeNotified' in kwargs: + branches_to_be_notified = kwargs['branchesToBeNotified'] + if notify_only_broken_pipelines is None and 'notifyOnlyBrokenPipelines' in kwargs: + notify_only_broken_pipelines = kwargs['notifyOnlyBrokenPipelines'] + _setter("project", project) _setter("recipients", recipients) if branches_to_be_notified is not None: @@ -124,7 +134,13 @@ def _configure( notify_only_broken_pipelines: Optional[pulumi.Input[bool]] = None, project: Optional[pulumi.Input[str]] = None, recipients: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if branches_to_be_notified is None and 'branchesToBeNotified' in kwargs: + branches_to_be_notified = kwargs['branchesToBeNotified'] + if notify_only_broken_pipelines is None and 'notifyOnlyBrokenPipelines' in kwargs: + notify_only_broken_pipelines = kwargs['notifyOnlyBrokenPipelines'] + if branches_to_be_notified is not None: _setter("branches_to_be_notified", branches_to_be_notified) if notify_only_broken_pipelines is not None: @@ -200,22 +216,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#pipeline-emails) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - email = gitlab.ServicePipelinesEmail("email", - project=awesome_project.id, - recipients=["gitlab@user.create"], - notify_only_broken_pipelines=True, - branches_to_be_notified="all") - ``` - ## Import You can import a gitlab_service_pipelines_email state using the project ID, e.g. @@ -244,22 +244,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#pipeline-emails) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - email = gitlab.ServicePipelinesEmail("email", - project=awesome_project.id, - recipients=["gitlab@user.create"], - notify_only_broken_pipelines=True, - branches_to_be_notified="all") - ``` - ## Import You can import a gitlab_service_pipelines_email state using the project ID, e.g. diff --git a/sdk/python/pulumi_gitlab/service_slack.py b/sdk/python/pulumi_gitlab/service_slack.py index 6eb558c5..723ef3c6 100644 --- a/sdk/python/pulumi_gitlab/service_slack.py +++ b/sdk/python/pulumi_gitlab/service_slack.py @@ -92,8 +92,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - project: pulumi.Input[str], - webhook: pulumi.Input[str], + project: Optional[pulumi.Input[str]] = None, + webhook: Optional[pulumi.Input[str]] = None, branches_to_be_notified: Optional[pulumi.Input[str]] = None, confidential_issue_channel: Optional[pulumi.Input[str]] = None, confidential_issues_events: Optional[pulumi.Input[bool]] = None, @@ -115,7 +115,53 @@ def _configure( username: Optional[pulumi.Input[str]] = None, wiki_page_channel: Optional[pulumi.Input[str]] = None, wiki_page_events: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if project is None: + raise TypeError("Missing 'project' argument") + if webhook is None: + raise TypeError("Missing 'webhook' argument") + if branches_to_be_notified is None and 'branchesToBeNotified' in kwargs: + branches_to_be_notified = kwargs['branchesToBeNotified'] + if confidential_issue_channel is None and 'confidentialIssueChannel' in kwargs: + confidential_issue_channel = kwargs['confidentialIssueChannel'] + if confidential_issues_events is None and 'confidentialIssuesEvents' in kwargs: + confidential_issues_events = kwargs['confidentialIssuesEvents'] + if confidential_note_events is None and 'confidentialNoteEvents' in kwargs: + confidential_note_events = kwargs['confidentialNoteEvents'] + if issue_channel is None and 'issueChannel' in kwargs: + issue_channel = kwargs['issueChannel'] + if issues_events is None and 'issuesEvents' in kwargs: + issues_events = kwargs['issuesEvents'] + if merge_request_channel is None and 'mergeRequestChannel' in kwargs: + merge_request_channel = kwargs['mergeRequestChannel'] + if merge_requests_events is None and 'mergeRequestsEvents' in kwargs: + merge_requests_events = kwargs['mergeRequestsEvents'] + if note_channel is None and 'noteChannel' in kwargs: + note_channel = kwargs['noteChannel'] + if note_events is None and 'noteEvents' in kwargs: + note_events = kwargs['noteEvents'] + if notify_only_broken_pipelines is None and 'notifyOnlyBrokenPipelines' in kwargs: + notify_only_broken_pipelines = kwargs['notifyOnlyBrokenPipelines'] + if notify_only_default_branch is None and 'notifyOnlyDefaultBranch' in kwargs: + notify_only_default_branch = kwargs['notifyOnlyDefaultBranch'] + if pipeline_channel is None and 'pipelineChannel' in kwargs: + pipeline_channel = kwargs['pipelineChannel'] + if pipeline_events is None and 'pipelineEvents' in kwargs: + pipeline_events = kwargs['pipelineEvents'] + if push_channel is None and 'pushChannel' in kwargs: + push_channel = kwargs['pushChannel'] + if push_events is None and 'pushEvents' in kwargs: + push_events = kwargs['pushEvents'] + if tag_push_channel is None and 'tagPushChannel' in kwargs: + tag_push_channel = kwargs['tagPushChannel'] + if tag_push_events is None and 'tagPushEvents' in kwargs: + tag_push_events = kwargs['tagPushEvents'] + if wiki_page_channel is None and 'wikiPageChannel' in kwargs: + wiki_page_channel = kwargs['wikiPageChannel'] + if wiki_page_events is None and 'wikiPageEvents' in kwargs: + wiki_page_events = kwargs['wikiPageEvents'] + _setter("project", project) _setter("webhook", webhook) if branches_to_be_notified is not None: @@ -552,7 +598,51 @@ def _configure( webhook: Optional[pulumi.Input[str]] = None, wiki_page_channel: Optional[pulumi.Input[str]] = None, wiki_page_events: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if branches_to_be_notified is None and 'branchesToBeNotified' in kwargs: + branches_to_be_notified = kwargs['branchesToBeNotified'] + if confidential_issue_channel is None and 'confidentialIssueChannel' in kwargs: + confidential_issue_channel = kwargs['confidentialIssueChannel'] + if confidential_issues_events is None and 'confidentialIssuesEvents' in kwargs: + confidential_issues_events = kwargs['confidentialIssuesEvents'] + if confidential_note_events is None and 'confidentialNoteEvents' in kwargs: + confidential_note_events = kwargs['confidentialNoteEvents'] + if issue_channel is None and 'issueChannel' in kwargs: + issue_channel = kwargs['issueChannel'] + if issues_events is None and 'issuesEvents' in kwargs: + issues_events = kwargs['issuesEvents'] + if job_events is None and 'jobEvents' in kwargs: + job_events = kwargs['jobEvents'] + if merge_request_channel is None and 'mergeRequestChannel' in kwargs: + merge_request_channel = kwargs['mergeRequestChannel'] + if merge_requests_events is None and 'mergeRequestsEvents' in kwargs: + merge_requests_events = kwargs['mergeRequestsEvents'] + if note_channel is None and 'noteChannel' in kwargs: + note_channel = kwargs['noteChannel'] + if note_events is None and 'noteEvents' in kwargs: + note_events = kwargs['noteEvents'] + if notify_only_broken_pipelines is None and 'notifyOnlyBrokenPipelines' in kwargs: + notify_only_broken_pipelines = kwargs['notifyOnlyBrokenPipelines'] + if notify_only_default_branch is None and 'notifyOnlyDefaultBranch' in kwargs: + notify_only_default_branch = kwargs['notifyOnlyDefaultBranch'] + if pipeline_channel is None and 'pipelineChannel' in kwargs: + pipeline_channel = kwargs['pipelineChannel'] + if pipeline_events is None and 'pipelineEvents' in kwargs: + pipeline_events = kwargs['pipelineEvents'] + if push_channel is None and 'pushChannel' in kwargs: + push_channel = kwargs['pushChannel'] + if push_events is None and 'pushEvents' in kwargs: + push_events = kwargs['pushEvents'] + if tag_push_channel is None and 'tagPushChannel' in kwargs: + tag_push_channel = kwargs['tagPushChannel'] + if tag_push_events is None and 'tagPushEvents' in kwargs: + tag_push_events = kwargs['tagPushEvents'] + if wiki_page_channel is None and 'wikiPageChannel' in kwargs: + wiki_page_channel = kwargs['wikiPageChannel'] + if wiki_page_events is None and 'wikiPageEvents' in kwargs: + wiki_page_events = kwargs['wikiPageEvents'] + if branches_to_be_notified is not None: _setter("branches_to_be_notified", branches_to_be_notified) if confidential_issue_channel is not None: @@ -933,23 +1023,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#slack-notifications) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - slack = gitlab.ServiceSlack("slack", - project=awesome_project.id, - webhook="https://webhook.com", - username="myuser", - push_events=True, - push_channel="push_chan") - ``` - ## Import You can import a gitlab_service_slack.slack state using the project ID, e.g. @@ -997,23 +1070,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#slack-notifications) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - awesome_project = gitlab.Project("awesomeProject", - description="My awesome project.", - visibility_level="public") - slack = gitlab.ServiceSlack("slack", - project=awesome_project.id, - webhook="https://webhook.com", - username="myuser", - push_events=True, - push_channel="push_chan") - ``` - ## Import You can import a gitlab_service_slack.slack state using the project ID, e.g. diff --git a/sdk/python/pulumi_gitlab/system_hook.py b/sdk/python/pulumi_gitlab/system_hook.py index 8c82a98a..0024e098 100644 --- a/sdk/python/pulumi_gitlab/system_hook.py +++ b/sdk/python/pulumi_gitlab/system_hook.py @@ -44,14 +44,28 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - url: pulumi.Input[str], + url: Optional[pulumi.Input[str]] = None, enable_ssl_verification: Optional[pulumi.Input[bool]] = None, merge_requests_events: Optional[pulumi.Input[bool]] = None, push_events: Optional[pulumi.Input[bool]] = None, repository_update_events: Optional[pulumi.Input[bool]] = None, tag_push_events: Optional[pulumi.Input[bool]] = None, token: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if url is None: + raise TypeError("Missing 'url' argument") + if enable_ssl_verification is None and 'enableSslVerification' in kwargs: + enable_ssl_verification = kwargs['enableSslVerification'] + if merge_requests_events is None and 'mergeRequestsEvents' in kwargs: + merge_requests_events = kwargs['mergeRequestsEvents'] + if push_events is None and 'pushEvents' in kwargs: + push_events = kwargs['pushEvents'] + if repository_update_events is None and 'repositoryUpdateEvents' in kwargs: + repository_update_events = kwargs['repositoryUpdateEvents'] + if tag_push_events is None and 'tagPushEvents' in kwargs: + tag_push_events = kwargs['tagPushEvents'] + _setter("url", url) if enable_ssl_verification is not None: _setter("enable_ssl_verification", enable_ssl_verification) @@ -195,7 +209,21 @@ def _configure( tag_push_events: Optional[pulumi.Input[bool]] = None, token: Optional[pulumi.Input[str]] = None, url: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if enable_ssl_verification is None and 'enableSslVerification' in kwargs: + enable_ssl_verification = kwargs['enableSslVerification'] + if merge_requests_events is None and 'mergeRequestsEvents' in kwargs: + merge_requests_events = kwargs['mergeRequestsEvents'] + if push_events is None and 'pushEvents' in kwargs: + push_events = kwargs['pushEvents'] + if repository_update_events is None and 'repositoryUpdateEvents' in kwargs: + repository_update_events = kwargs['repositoryUpdateEvents'] + if tag_push_events is None and 'tagPushEvents' in kwargs: + tag_push_events = kwargs['tagPushEvents'] + if created_at is not None: _setter("created_at", created_at) if enable_ssl_verification is not None: @@ -330,22 +358,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/system_hooks.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.SystemHook("example", - enable_ssl_verification=True, - merge_requests_events=True, - push_events=True, - repository_update_events=True, - tag_push_events=True, - token="secret-token", - url="https://example.com/hook-%d") - ``` - ## Import You can import a system hook using the hook id `{hook-id}`, e.g. @@ -379,22 +391,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/system_hooks.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.SystemHook("example", - enable_ssl_verification=True, - merge_requests_events=True, - push_events=True, - repository_update_events=True, - tag_push_events=True, - token="secret-token", - url="https://example.com/hook-%d") - ``` - ## Import You can import a system hook using the hook id `{hook-id}`, e.g. diff --git a/sdk/python/pulumi_gitlab/tag_protection.py b/sdk/python/pulumi_gitlab/tag_protection.py index b2020cf6..4fc87d26 100644 --- a/sdk/python/pulumi_gitlab/tag_protection.py +++ b/sdk/python/pulumi_gitlab/tag_protection.py @@ -37,11 +37,23 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - create_access_level: pulumi.Input[str], - project: pulumi.Input[str], - tag: pulumi.Input[str], + create_access_level: Optional[pulumi.Input[str]] = None, + project: Optional[pulumi.Input[str]] = None, + tag: Optional[pulumi.Input[str]] = None, allowed_to_creates: Optional[pulumi.Input[Sequence[pulumi.Input['TagProtectionAllowedToCreateArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if create_access_level is None and 'createAccessLevel' in kwargs: + create_access_level = kwargs['createAccessLevel'] + if create_access_level is None: + raise TypeError("Missing 'create_access_level' argument") + if project is None: + raise TypeError("Missing 'project' argument") + if tag is None: + raise TypeError("Missing 'tag' argument") + if allowed_to_creates is None and 'allowedToCreates' in kwargs: + allowed_to_creates = kwargs['allowedToCreates'] + _setter("create_access_level", create_access_level) _setter("project", project) _setter("tag", tag) @@ -125,7 +137,13 @@ def _configure( create_access_level: Optional[pulumi.Input[str]] = None, project: Optional[pulumi.Input[str]] = None, tag: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if allowed_to_creates is None and 'allowedToCreates' in kwargs: + allowed_to_creates = kwargs['allowedToCreates'] + if create_access_level is None and 'createAccessLevel' in kwargs: + create_access_level = kwargs['createAccessLevel'] + if allowed_to_creates is not None: _setter("allowed_to_creates", allowed_to_creates) if create_access_level is not None: @@ -195,26 +213,6 @@ def __init__(__self__, tag: Optional[pulumi.Input[str]] = None, __props__=None): """ - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - tag_protect = gitlab.TagProtection("tagProtect", - allowed_to_creates=[ - gitlab.TagProtectionAllowedToCreateArgs( - user_id=42, - ), - gitlab.TagProtectionAllowedToCreateArgs( - group_id=43, - ), - ], - create_access_level="developer", - project="12345", - tag="TagProtected") - ``` - ## Import Tag protections can be imported using an id made up of `project_id:tag_name`, e.g. @@ -237,26 +235,6 @@ def __init__(__self__, args: TagProtectionArgs, opts: Optional[pulumi.ResourceOptions] = None): """ - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - tag_protect = gitlab.TagProtection("tagProtect", - allowed_to_creates=[ - gitlab.TagProtectionAllowedToCreateArgs( - user_id=42, - ), - gitlab.TagProtectionAllowedToCreateArgs( - group_id=43, - ), - ], - create_access_level="developer", - project="12345", - tag="TagProtected") - ``` - ## Import Tag protections can be imported using an id made up of `project_id:tag_name`, e.g. diff --git a/sdk/python/pulumi_gitlab/topic.py b/sdk/python/pulumi_gitlab/topic.py index 9c7f58f8..26732a88 100644 --- a/sdk/python/pulumi_gitlab/topic.py +++ b/sdk/python/pulumi_gitlab/topic.py @@ -47,7 +47,13 @@ def _configure( name: Optional[pulumi.Input[str]] = None, soft_destroy: Optional[pulumi.Input[bool]] = None, title: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if avatar_hash is None and 'avatarHash' in kwargs: + avatar_hash = kwargs['avatarHash'] + if soft_destroy is None and 'softDestroy' in kwargs: + soft_destroy = kwargs['softDestroy'] + if avatar is not None: _setter("avatar", avatar) if avatar_hash is not None: @@ -180,7 +186,15 @@ def _configure( name: Optional[pulumi.Input[str]] = None, soft_destroy: Optional[pulumi.Input[bool]] = None, title: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if avatar_hash is None and 'avatarHash' in kwargs: + avatar_hash = kwargs['avatarHash'] + if avatar_url is None and 'avatarUrl' in kwargs: + avatar_url = kwargs['avatarUrl'] + if soft_destroy is None and 'softDestroy' in kwargs: + soft_destroy = kwargs['softDestroy'] + if avatar is not None: _setter("avatar", avatar) if avatar_hash is not None: diff --git a/sdk/python/pulumi_gitlab/user.py b/sdk/python/pulumi_gitlab/user.py index b85aba34..4bc55e2f 100644 --- a/sdk/python/pulumi_gitlab/user.py +++ b/sdk/python/pulumi_gitlab/user.py @@ -62,8 +62,8 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - email: pulumi.Input[str], - username: pulumi.Input[str], + email: Optional[pulumi.Input[str]] = None, + username: Optional[pulumi.Input[str]] = None, can_create_group: Optional[pulumi.Input[bool]] = None, is_admin: Optional[pulumi.Input[bool]] = None, is_external: Optional[pulumi.Input[bool]] = None, @@ -75,7 +75,27 @@ def _configure( reset_password: Optional[pulumi.Input[bool]] = None, skip_confirmation: Optional[pulumi.Input[bool]] = None, state: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if email is None: + raise TypeError("Missing 'email' argument") + if username is None: + raise TypeError("Missing 'username' argument") + if can_create_group is None and 'canCreateGroup' in kwargs: + can_create_group = kwargs['canCreateGroup'] + if is_admin is None and 'isAdmin' in kwargs: + is_admin = kwargs['isAdmin'] + if is_external is None and 'isExternal' in kwargs: + is_external = kwargs['isExternal'] + if namespace_id is None and 'namespaceId' in kwargs: + namespace_id = kwargs['namespaceId'] + if projects_limit is None and 'projectsLimit' in kwargs: + projects_limit = kwargs['projectsLimit'] + if reset_password is None and 'resetPassword' in kwargs: + reset_password = kwargs['resetPassword'] + if skip_confirmation is None and 'skipConfirmation' in kwargs: + skip_confirmation = kwargs['skipConfirmation'] + _setter("email", email) _setter("username", username) if can_create_group is not None: @@ -322,7 +342,23 @@ def _configure( skip_confirmation: Optional[pulumi.Input[bool]] = None, state: Optional[pulumi.Input[str]] = None, username: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if can_create_group is None and 'canCreateGroup' in kwargs: + can_create_group = kwargs['canCreateGroup'] + if is_admin is None and 'isAdmin' in kwargs: + is_admin = kwargs['isAdmin'] + if is_external is None and 'isExternal' in kwargs: + is_external = kwargs['isExternal'] + if namespace_id is None and 'namespaceId' in kwargs: + namespace_id = kwargs['namespaceId'] + if projects_limit is None and 'projectsLimit' in kwargs: + projects_limit = kwargs['projectsLimit'] + if reset_password is None and 'resetPassword' in kwargs: + reset_password = kwargs['resetPassword'] + if skip_confirmation is None and 'skipConfirmation' in kwargs: + skip_confirmation = kwargs['skipConfirmation'] + if can_create_group is not None: _setter("can_create_group", can_create_group) if email is not None: @@ -535,23 +571,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/users.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.User("example", - can_create_group=False, - email="gitlab@user.create", - is_admin=True, - is_external=True, - password="superPassword", - projects_limit=4, - reset_password=False, - username="example") - ``` - ## Import ```sh @@ -595,23 +614,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/users.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example = gitlab.User("example", - can_create_group=False, - email="gitlab@user.create", - is_admin=True, - is_external=True, - password="superPassword", - projects_limit=4, - reset_password=False, - username="example") - ``` - ## Import ```sh diff --git a/sdk/python/pulumi_gitlab/user_custom_attribute.py b/sdk/python/pulumi_gitlab/user_custom_attribute.py index a794e948..a2327f0f 100644 --- a/sdk/python/pulumi_gitlab/user_custom_attribute.py +++ b/sdk/python/pulumi_gitlab/user_custom_attribute.py @@ -32,10 +32,18 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - key: pulumi.Input[str], - user: pulumi.Input[int], - value: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + key: Optional[pulumi.Input[str]] = None, + user: Optional[pulumi.Input[int]] = None, + value: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if key is None: + raise TypeError("Missing 'key' argument") + if user is None: + raise TypeError("Missing 'user' argument") + if value is None: + raise TypeError("Missing 'value' argument") + _setter("key", key) _setter("user", user) _setter("value", value) @@ -101,7 +109,9 @@ def _configure( key: Optional[pulumi.Input[str]] = None, user: Optional[pulumi.Input[int]] = None, value: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if key is not None: _setter("key", key) if user is not None: @@ -160,18 +170,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/custom_attributes.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - attr = gitlab.UserCustomAttribute("attr", - key="location", - user=42, - value="Greenland") - ``` - ## Import You can import a user custom attribute using an id made up of `{user-id}:{key}`, e.g. @@ -197,18 +195,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/custom_attributes.html) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - attr = gitlab.UserCustomAttribute("attr", - key="location", - user=42, - value="Greenland") - ``` - ## Import You can import a user custom attribute using an id made up of `{user-id}:{key}`, e.g. diff --git a/sdk/python/pulumi_gitlab/user_gpg_key.py b/sdk/python/pulumi_gitlab/user_gpg_key.py index cdddd04f..1f8ee09b 100644 --- a/sdk/python/pulumi_gitlab/user_gpg_key.py +++ b/sdk/python/pulumi_gitlab/user_gpg_key.py @@ -29,9 +29,15 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - key: pulumi.Input[str], + key: Optional[pulumi.Input[str]] = None, user_id: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if key is None: + raise TypeError("Missing 'key' argument") + if user_id is None and 'userId' in kwargs: + user_id = kwargs['userId'] + _setter("key", key) if user_id is not None: _setter("user_id", user_id) @@ -89,7 +95,15 @@ def _configure( key: Optional[pulumi.Input[str]] = None, key_id: Optional[pulumi.Input[int]] = None, user_id: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if key_id is None and 'keyId' in kwargs: + key_id = kwargs['keyId'] + if user_id is None and 'userId' in kwargs: + user_id = kwargs['userId'] + if created_at is not None: _setter("created_at", created_at) if key is not None: @@ -163,25 +177,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/users.html#get-a-specific-gpg-key) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example_user = gitlab.get_user(username="example-user") - # Manages a GPG key for the specified user. An admin token is required if `user_id` is specified. - example_user_gpg_key = gitlab.UserGpgKey("exampleUserGpgKey", - user_id=example_user.id, - key=\"\"\"-----BEGIN PGP PUBLIC KEY BLOCK----- - ... - -----END PGP PUBLIC KEY BLOCK-----\"\"\") - # Manages a GPG key for the current user - example_user_user_gpg_key = gitlab.UserGpgKey("exampleUserUserGpgKey", key=\"\"\"-----BEGIN PGP PUBLIC KEY BLOCK----- - ... - -----END PGP PUBLIC KEY BLOCK-----\"\"\") - ``` - ## Import You can import a GPG key for a specific user using an id made up of `{user-id}:{key}`, e.g. @@ -214,25 +209,6 @@ def __init__(__self__, **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/users.html#get-a-specific-gpg-key) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example_user = gitlab.get_user(username="example-user") - # Manages a GPG key for the specified user. An admin token is required if `user_id` is specified. - example_user_gpg_key = gitlab.UserGpgKey("exampleUserGpgKey", - user_id=example_user.id, - key=\"\"\"-----BEGIN PGP PUBLIC KEY BLOCK----- - ... - -----END PGP PUBLIC KEY BLOCK-----\"\"\") - # Manages a GPG key for the current user - example_user_user_gpg_key = gitlab.UserGpgKey("exampleUserUserGpgKey", key=\"\"\"-----BEGIN PGP PUBLIC KEY BLOCK----- - ... - -----END PGP PUBLIC KEY BLOCK-----\"\"\") - ``` - ## Import You can import a GPG key for a specific user using an id made up of `{user-id}:{key}`, e.g. diff --git a/sdk/python/pulumi_gitlab/user_runner.py b/sdk/python/pulumi_gitlab/user_runner.py index 29ad8b85..99d18767 100644 --- a/sdk/python/pulumi_gitlab/user_runner.py +++ b/sdk/python/pulumi_gitlab/user_runner.py @@ -53,7 +53,7 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - runner_type: pulumi.Input[str], + runner_type: Optional[pulumi.Input[str]] = None, access_level: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, group_id: Optional[pulumi.Input[int]] = None, @@ -63,7 +63,23 @@ def _configure( project_id: Optional[pulumi.Input[int]] = None, tag_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, untagged: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if runner_type is None and 'runnerType' in kwargs: + runner_type = kwargs['runnerType'] + if runner_type is None: + raise TypeError("Missing 'runner_type' argument") + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if group_id is None and 'groupId' in kwargs: + group_id = kwargs['groupId'] + if maximum_timeout is None and 'maximumTimeout' in kwargs: + maximum_timeout = kwargs['maximumTimeout'] + if project_id is None and 'projectId' in kwargs: + project_id = kwargs['projectId'] + if tag_lists is None and 'tagLists' in kwargs: + tag_lists = kwargs['tagLists'] + _setter("runner_type", runner_type) if access_level is not None: _setter("access_level", access_level) @@ -261,7 +277,21 @@ def _configure( tag_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, token: Optional[pulumi.Input[str]] = None, untagged: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if access_level is None and 'accessLevel' in kwargs: + access_level = kwargs['accessLevel'] + if group_id is None and 'groupId' in kwargs: + group_id = kwargs['groupId'] + if maximum_timeout is None and 'maximumTimeout' in kwargs: + maximum_timeout = kwargs['maximumTimeout'] + if project_id is None and 'projectId' in kwargs: + project_id = kwargs['projectId'] + if runner_type is None and 'runnerType' in kwargs: + runner_type = kwargs['runnerType'] + if tag_lists is None and 'tagLists' in kwargs: + tag_lists = kwargs['tagLists'] + if access_level is not None: _setter("access_level", access_level) if description is not None: diff --git a/sdk/python/pulumi_gitlab/user_ssh_key.py b/sdk/python/pulumi_gitlab/user_ssh_key.py index b15cf3af..9e8051fd 100644 --- a/sdk/python/pulumi_gitlab/user_ssh_key.py +++ b/sdk/python/pulumi_gitlab/user_ssh_key.py @@ -35,11 +35,23 @@ def __init__(__self__, *, @staticmethod def _configure( _setter: Callable[[Any, Any], None], - key: pulumi.Input[str], - title: pulumi.Input[str], - user_id: pulumi.Input[int], + key: Optional[pulumi.Input[str]] = None, + title: Optional[pulumi.Input[str]] = None, + user_id: Optional[pulumi.Input[int]] = None, expires_at: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if key is None: + raise TypeError("Missing 'key' argument") + if title is None: + raise TypeError("Missing 'title' argument") + if user_id is None and 'userId' in kwargs: + user_id = kwargs['userId'] + if user_id is None: + raise TypeError("Missing 'user_id' argument") + if expires_at is None and 'expiresAt' in kwargs: + expires_at = kwargs['expiresAt'] + _setter("key", key) _setter("title", title) _setter("user_id", user_id) @@ -131,7 +143,17 @@ def _configure( key_id: Optional[pulumi.Input[int]] = None, title: Optional[pulumi.Input[str]] = None, user_id: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions] = None, + **kwargs): + if created_at is None and 'createdAt' in kwargs: + created_at = kwargs['createdAt'] + if expires_at is None and 'expiresAt' in kwargs: + expires_at = kwargs['expiresAt'] + if key_id is None and 'keyId' in kwargs: + key_id = kwargs['keyId'] + if user_id is None and 'userId' in kwargs: + user_id = kwargs['userId'] + if created_at is not None: _setter("created_at", created_at) if expires_at is not None: @@ -233,20 +255,6 @@ def __init__(__self__, **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/users.html#single-ssh-key) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example_user = gitlab.get_user(username="example-user") - example_user_ssh_key = gitlab.UserSshKey("exampleUserSshKey", - user_id=example_user.id, - title="example-key", - key="ssh-ed25519 AAAA...", - expires_at="2016-01-21T00:00:00.000Z") - ``` - ## Import You can import a user ssh key using an id made up of `{user-id}:{key}`, e.g. @@ -273,20 +281,6 @@ def __init__(__self__, **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/users.html#single-ssh-key) - ## Example Usage - - ```python - import pulumi - import pulumi_gitlab as gitlab - - example_user = gitlab.get_user(username="example-user") - example_user_ssh_key = gitlab.UserSshKey("exampleUserSshKey", - user_id=example_user.id, - title="example-key", - key="ssh-ed25519 AAAA...", - expires_at="2016-01-21T00:00:00.000Z") - ``` - ## Import You can import a user ssh key using an id made up of `{user-id}:{key}`, e.g.