diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml
new file mode 100644
index 0000000..f83f534
--- /dev/null
+++ b/.github/workflows/pull-request.yml
@@ -0,0 +1,91 @@
+name: build
+
+on:
+ pull_request:
+ paths-ignore:
+ - docs
+ - .devcontainer
+ - examples
+
+jobs:
+ build_sdk:
+ name: build_sdk
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: true
+ matrix:
+ dotnetversion:
+ - 6.0.x
+ goversion:
+ - 1.20.x
+ nodeversion:
+ - 16.x
+ pythonversion:
+ - "3.9"
+ # javaversion:
+ # - "11"
+ language:
+ - nodejs
+ - python
+ - dotnet
+ - go
+ # - java
+
+ steps:
+ - name: Checkout Repo
+ uses: actions/checkout@v2
+
+ - name: Unshallow clone for tags
+ run: git fetch --prune --unshallow --tags
+ - name: Install Go
+ uses: actions/setup-go@v3
+ with:
+ go-version: ${{matrix.goversion}}
+
+ - name: Install pulumictl
+ uses: jaxxstorm/action-install-gh-release@v1.10.0
+ with:
+ repo: pulumi/pulumictl
+
+ - name: Install pulumi
+ uses: pulumi/actions@v4
+
+ - if: ${{ matrix.language == 'nodejs'}}
+ name: Setup Node
+ uses: actions/setup-node@v2
+ with:
+ node-version: ${{matrix.nodeversion}}
+ registry-url: https://registry.npmjs.org
+
+ - if: ${{ matrix.language == 'dotnet'}}
+ name: Setup DotNet
+ uses: actions/setup-dotnet@v1
+ with:
+ dotnet-version: ${{matrix.dotnetversion}}
+
+ - if: ${{ matrix.language == 'python'}}
+ name: Setup Python
+ uses: actions/setup-python@v2
+ with:
+ python-version: ${{matrix.pythonversion}}
+
+ - if: ${{ matrix.language == 'java'}}
+ name: Setup Java
+ uses: actions/setup-java@v3
+ with:
+ cache: gradle
+ distribution: temurin
+ java-version: ${{matrix.javaversion}}
+
+ - name: Build SDK
+ run: make build_${{ matrix.language }}
+
+ - name: Check worktree clean
+ run: |
+ git update-index -q --refresh
+ if ! git diff-files --quiet; then
+ >&2 echo "error: working tree is not clean, aborting!"
+ git status
+ git diff
+ exit 1
+ fi
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index c3fae14..c0aaf36 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -1,10 +1,15 @@
name: release
+
on:
push:
tags:
- v*.*.*
+ paths-ignore:
+ - docs
+ - .devcontainer
+ - examples
+
env:
- # THIS GITHUB_TOKEN IS A REQUIREMENT TO BE ABLE TO WRITE TO GH RELEASES
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# IF YOU NEED TO PUBLISH A NPM PACKAGE THEN ENSURE A NPM_TOKEN SECRET IS SET
# AND PUBLISH_NPM: TRUE. IF YOU WANT TO PUBLISH TO A PRIVATE NPM REGISTRY
@@ -28,6 +33,7 @@ env:
PYPI_USERNAME: "__token__"
PYPI_REPOSITORY_URL: ""
PUBLISH_PYPI: true
+
jobs:
publish_binary:
name: publish
@@ -37,16 +43,20 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v3
+
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
+
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{matrix.goversion}}
+
- name: Install pulumictl
- uses: jaxxstorm/action-install-gh-release@v1.5.0
+ uses: jaxxstorm/action-install-gh-release@v1.10.0
with:
repo: pulumi/pulumictl
+
- name: Set PreRelease Version
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)" >> $GITHUB_ENV
- name: Run GoReleaser
@@ -54,11 +64,13 @@ jobs:
with:
args: -p 3 release --rm-dist
version: latest
+
strategy:
fail-fast: true
matrix:
goversion:
- 1.20.x
+
publish_sdk:
name: Publish SDKs
runs-on: ubuntu-latest
@@ -66,33 +78,53 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v2
+
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
+
- name: Install Go
- uses: actions/setup-go@v2
+ uses: actions/setup-go@v3
with:
go-version: ${{ matrix.goversion }}
+
- name: Install pulumictl
- uses: jaxxstorm/action-install-gh-release@v1.5.0
+ uses: jaxxstorm/action-install-gh-release@v1.10.0
with:
repo: pulumi/pulumictl
- - name: Install Pulumi CLI
- uses: pulumi/action-install-pulumi-cli@v2.0.0
- - name: Setup Node
+
+ - name: Install pulumi
+ uses: pulumi/actions@v4
+
+ - if: ${{ matrix.language == 'nodejs'}}
+ name: Setup Node
uses: actions/setup-node@v1
with:
node-version: ${{matrix.nodeversion}}
registry-url: ${{env.NPM_REGISTRY_URL}}
- - name: Setup DotNet
+
+ - if: ${{ matrix.language == 'dotnet'}}
+ name: Setup DotNet
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{matrix.dotnetversion}}
- - name: Setup Python
+
+ - if: ${{ matrix.language == 'java'}}
+ name: Setup Java
+ uses: actions/setup-java@v3
+ with:
+ cache: gradle
+ distribution: temurin
+ java-version: ${{matrix.javaversion}}
+
+ - if: ${{ matrix.language == 'python'}}
+ name: Setup Python
uses: actions/setup-python@v1
with:
python-version: ${{matrix.pythonversion}}
+
- name: Build SDK
run: make build_${{ matrix.language }}
+
- name: Check worktree clean
run: |
git update-index -q --refresh
@@ -102,6 +134,7 @@ jobs:
git diff
exit 1
fi
+
- if: ${{ matrix.language == 'python' && env.PUBLISH_PYPI == 'true' }}
name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
@@ -109,17 +142,20 @@ jobs:
user: ${{ env.PYPI_USERNAME }}
password: ${{ env.PYPI_PASSWORD }}
packages_dir: ${{github.workspace}}/sdk/python/bin/dist
+
- if: ${{ matrix.language == 'nodejs' && env.PUBLISH_NPM == 'true' }}
uses: JS-DevTools/npm-publish@v1
with:
access: "public"
token: ${{ env.NPM_TOKEN }}
package: ${{github.workspace}}/sdk/nodejs/bin/package.json
+
- if: ${{ matrix.language == 'dotnet' && env.PUBLISH_NUGET == 'true' }}
name: publish nuget package
run: |
dotnet nuget push ${{github.workspace}}/sdk/dotnet/bin/Debug/*.nupkg -s ${{ env.NUGET_FEED_URL }} -k ${{ env.NUGET_PUBLISH_KEY }}
echo "done publishing packages"
+
strategy:
fail-fast: true
matrix:
@@ -127,12 +163,15 @@ jobs:
- 6.0.x
goversion:
- 1.20.x
+ nodeversion:
+ - 16.x
+ pythonversion:
+ - "3.9"
+ # javaversion:
+ # - "11"
language:
- nodejs
- python
- dotnet
- go
- nodeversion:
- - 16.x
- pythonversion:
- - "3.9"
+ # - java
diff --git a/Makefile b/Makefile
index c7e99d0..c21506c 100644
--- a/Makefile
+++ b/Makefile
@@ -43,6 +43,9 @@ development:: install_plugins provider lint_provider build_sdks install_sdks cle
build:: install_plugins provider build_sdks install_sdks
only_build:: build
+generate::
+ go generate provider/resources.go
+
tfgen:: install_plugins
(cd provider && go build -o $(WORKING_DIR)/bin/${TFGEN} -ldflags "-X ${PROJECT}/${VERSION_PATH}=${VERSION}" ${PROJECT}/${PROVIDER_PATH}/cmd/${TFGEN})
$(WORKING_DIR)/bin/${TFGEN} schema --out provider/cmd/${PROVIDER}
@@ -59,8 +62,7 @@ build_nodejs:: install_plugins tfgen # build the node sdk
cd sdk/nodejs/ && \
yarn install && \
yarn run tsc && \
- cp -R scripts/ bin && \
- cp ../../README.md ../../LICENSE package.json yarn.lock ./bin/ && \
+ cp ../../README.md ../../LICENSE package.json yarn.lock ./bin/ && \
sed -i.bak -e "s/\$${VERSION}/$(VERSION)/g" ./bin/package.json
build_python:: PYPI_VERSION := $(shell pulumictl get version --language python)
diff --git a/go.work.sum b/go.work.sum
index 7ca8d39..5c1302b 100644
--- a/go.work.sum
+++ b/go.work.sum
@@ -1,122 +1,247 @@
cloud.google.com/go v0.43.0/go.mod h1:BOSR3VbTLkk6FDC/TcffxP4NF/FFBGA5ku+jvKOP7pg=
cloud.google.com/go v0.61.0/go.mod h1:XukKJg4Y7QsUu0Hxg3qQKUWR4VuWivmyMK2+rUyxAqw=
cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM=
+cloud.google.com/go v0.110.0/go.mod h1:SJnCLqQ0FCFGSZMUNUf84MV3Aia54kn7pi8st7tMzaY=
+cloud.google.com/go v0.110.2/go.mod h1:k04UEeEtb6ZBRTv3dZz4CeJC3jKGxyhl0sAiVVquxiw=
cloud.google.com/go/accessapproval v1.5.0/go.mod h1:HFy3tuiGvMdcd/u+Cu5b9NkO1pEICJ46IR82PoUdplw=
+cloud.google.com/go/accessapproval v1.7.1/go.mod h1:JYczztsHRMK7NTXb6Xw+dwbs/WnOJxbo/2mTI+Kgg68=
cloud.google.com/go/accesscontextmanager v1.4.0/go.mod h1:/Kjh7BBu/Gh83sv+K60vN9QE5NJcd80sU33vIe2IFPE=
+cloud.google.com/go/accesscontextmanager v1.8.1/go.mod h1:JFJHfvuaTC+++1iL1coPiG1eu5D24db2wXCDWDjIrxo=
cloud.google.com/go/aiplatform v1.27.0/go.mod h1:Bvxqtl40l0WImSb04d0hXFU7gDOiq9jQmorivIiWcKg=
+cloud.google.com/go/aiplatform v1.45.0/go.mod h1:Iu2Q7sC7QGhXUeOhAj/oCK9a+ULz1O4AotZiqjQ8MYA=
+cloud.google.com/go/analytics v0.21.2/go.mod h1:U8dcUtmDmjrmUTnnnRnI4m6zKn/yaA5N9RlEkYFHpQo=
cloud.google.com/go/apigateway v1.4.0/go.mod h1:pHVY9MKGaH9PQ3pJ4YLzoj6U5FUDeDFBllIz7WmzJoc=
+cloud.google.com/go/apigateway v1.6.1/go.mod h1:ufAS3wpbRjqfZrzpvLC2oh0MFlpRJm2E/ts25yyqmXA=
cloud.google.com/go/apigeeconnect v1.4.0/go.mod h1:kV4NwOKqjvt2JYR0AoIWo2QGfoRtn/pkS3QlHp0Ni04=
+cloud.google.com/go/apigeeconnect v1.6.1/go.mod h1:C4awq7x0JpLtrlQCr8AzVIzAaYgngRqWf9S5Uhg+wWs=
+cloud.google.com/go/apigeeregistry v0.7.1/go.mod h1:1XgyjZye4Mqtw7T9TsY4NW10U7BojBvG4RMD+vRDrIw=
cloud.google.com/go/appengine v1.5.0/go.mod h1:TfasSozdkFI0zeoxW3PTBLiNqRmzraodCWatWI9Dmak=
+cloud.google.com/go/appengine v1.8.1/go.mod h1:6NJXGLVhZCN9aQ/AEDvmfzKEfoYBlfB80/BHiKVputY=
+cloud.google.com/go/area120 v0.8.1/go.mod h1:BVfZpGpB7KFVNxPiQBuHkX6Ed0rS51xIgmGyjrAfzsg=
cloud.google.com/go/artifactregistry v1.9.0/go.mod h1:2K2RqvA2CYvAeARHRkLDhMDJ3OXy26h3XW+3/Jh2uYc=
+cloud.google.com/go/artifactregistry v1.14.1/go.mod h1:nxVdG19jTaSTu7yA7+VbWL346r3rIdkZ142BSQqhn5E=
cloud.google.com/go/asset v1.10.0/go.mod h1:pLz7uokL80qKhzKr4xXGvBQXnzHn5evJAEAtZiIb0wY=
+cloud.google.com/go/asset v1.14.1/go.mod h1:4bEJ3dnHCqWCDbWJ/6Vn7GVI9LerSi7Rfdi03hd+WTQ=
cloud.google.com/go/assuredworkloads v1.9.0/go.mod h1:kFuI1P78bplYtT77Tb1hi0FMxM0vVpRC7VVoJC3ZoT0=
+cloud.google.com/go/assuredworkloads v1.11.1/go.mod h1:+F04I52Pgn5nmPG36CWFtxmav6+7Q+c5QyJoL18Lry0=
cloud.google.com/go/automl v1.8.0/go.mod h1:xWx7G/aPEe/NP+qzYXktoBSDfjO+vnKMGgsApGJJquM=
+cloud.google.com/go/automl v1.13.1/go.mod h1:1aowgAHWYZU27MybSCFiukPO7xnyawv7pt3zK4bheQE=
cloud.google.com/go/baremetalsolution v0.4.0/go.mod h1:BymplhAadOO/eBa7KewQ0Ppg4A4Wplbn+PsFKRLo0uI=
+cloud.google.com/go/baremetalsolution v1.1.1/go.mod h1:D1AV6xwOksJMV4OSlWHtWuFNZZYujJknMAP4Qa27QIA=
cloud.google.com/go/batch v0.4.0/go.mod h1:WZkHnP43R/QCGQsZ+0JyG4i79ranE2u8xvjq/9+STPE=
+cloud.google.com/go/batch v1.3.1/go.mod h1:VguXeQKXIYaeeIYbuozUmBR13AfL4SJP7IltNPS+A4A=
cloud.google.com/go/beyondcorp v0.3.0/go.mod h1:E5U5lcrcXMsCuoDNyGrpyTm/hn7ne941Jz2vmksAxW8=
+cloud.google.com/go/beyondcorp v1.0.0/go.mod h1:YhxDWw946SCbmcWo3fAhw3V4XZMSpQ/VYfcKGAEU8/4=
cloud.google.com/go/bigquery v1.44.0/go.mod h1:0Y33VqXTEsbamHJvJHdFmtqHvMIY28aK1+dFsvaChGc=
+cloud.google.com/go/bigquery v1.52.0/go.mod h1:3b/iXjRQGU4nKa87cXeg6/gogLjO8C6PmuM8i5Bi/u4=
cloud.google.com/go/billing v1.7.0/go.mod h1:q457N3Hbj9lYwwRbnlD7vUpyjq6u5U1RAOArInEiD5Y=
+cloud.google.com/go/billing v1.16.0/go.mod h1:y8vx09JSSJG02k5QxbycNRrN7FGZB6F3CAcgum7jvGA=
cloud.google.com/go/binaryauthorization v1.4.0/go.mod h1:tsSPQrBd77VLplV70GUhBf/Zm3FsKmgSqgm4UmiDItk=
+cloud.google.com/go/binaryauthorization v1.6.1/go.mod h1:TKt4pa8xhowwffiBmbrbcxijJRZED4zrqnwZ1lKH51U=
cloud.google.com/go/certificatemanager v1.4.0/go.mod h1:vowpercVFyqs8ABSmrdV+GiFf2H/ch3KyudYQEMM590=
+cloud.google.com/go/certificatemanager v1.7.1/go.mod h1:iW8J3nG6SaRYImIa+wXQ0g8IgoofDFRp5UMzaNk1UqI=
cloud.google.com/go/channel v1.9.0/go.mod h1:jcu05W0my9Vx4mt3/rEHpfxc9eKi9XwsdDL8yBMbKUk=
+cloud.google.com/go/channel v1.16.0/go.mod h1:eN/q1PFSl5gyu0dYdmxNXscY/4Fi7ABmeHCJNf/oHmc=
cloud.google.com/go/cloudbuild v1.4.0/go.mod h1:5Qwa40LHiOXmz3386FrjrYM93rM/hdRr7b53sySrTqA=
+cloud.google.com/go/cloudbuild v1.10.1/go.mod h1:lyJg7v97SUIPq4RC2sGsz/9tNczhyv2AjML/ci4ulzU=
cloud.google.com/go/clouddms v1.4.0/go.mod h1:Eh7sUGCC+aKry14O1NRljhjyrr0NFC0G2cjwX0cByRk=
+cloud.google.com/go/clouddms v1.6.1/go.mod h1:Ygo1vL52Ov4TBZQquhz5fiw2CQ58gvu+PlS6PVXCpZI=
cloud.google.com/go/cloudtasks v1.8.0/go.mod h1:gQXUIwCSOI4yPVK7DgTVFiiP0ZW/eQkydWzwVMdHxrI=
+cloud.google.com/go/cloudtasks v1.11.1/go.mod h1:a9udmnou9KO2iulGscKR0qBYjreuX8oHwpmFsKspEvM=
cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU=
cloud.google.com/go/compute v1.13.0/go.mod h1:5aPTS0cUNMIc1CE546K+Th6weJUNQErARyZtRXDJ8GE=
cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo=
+cloud.google.com/go/compute v1.18.0/go.mod h1:1X7yHxec2Ga+Ss6jPyjxRxpu2uu7PLgsOVXvgU0yacs=
+cloud.google.com/go/compute v1.19.1/go.mod h1:6ylj3a05WF8leseCdIf77NK0g1ey+nj5IKd5/kvShxE=
+cloud.google.com/go/compute v1.19.3/go.mod h1:qxvISKp/gYnXkSAD1ppcSOveRAmzxicEv/JlizULFrI=
cloud.google.com/go/compute/metadata v0.2.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k=
cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM=
cloud.google.com/go/contactcenterinsights v1.4.0/go.mod h1:L2YzkGbPsv+vMQMCADxJoT9YiTTnSEd6fEvCeHTYVck=
+cloud.google.com/go/contactcenterinsights v1.9.1/go.mod h1:bsg/R7zGLYMVxFFzfh9ooLTruLRCG9fnzhH9KznHhbM=
cloud.google.com/go/container v1.7.0/go.mod h1:Dp5AHtmothHGX3DwwIHPgq45Y8KmNsgN3amoYfxVkLo=
+cloud.google.com/go/container v1.22.1/go.mod h1:lTNExE2R7f+DLbAN+rJiKTisauFCaoDq6NURZ83eVH4=
+cloud.google.com/go/containeranalysis v0.10.1/go.mod h1:Ya2jiILITMY68ZLPaogjmOMNkwsDrWBSTyBubGXO7j0=
cloud.google.com/go/datacatalog v1.8.0/go.mod h1:KYuoVOv9BM8EYz/4eMFxrr4DUKhGIOXxZoKYF5wdISM=
+cloud.google.com/go/datacatalog v1.14.1/go.mod h1:d2CevwTG4yedZilwe+v3E3ZBDRMobQfSG/a6cCCN5R4=
+cloud.google.com/go/dataflow v0.9.1/go.mod h1:Wp7s32QjYuQDWqJPFFlnBKhkAtiFpMTdg00qGbnIHVw=
cloud.google.com/go/dataform v0.5.0/go.mod h1:GFUYRe8IBa2hcomWplodVmUx/iTL0FrsauObOM3Ipr0=
+cloud.google.com/go/dataform v0.8.1/go.mod h1:3BhPSiw8xmppbgzeBbmDvmSWlwouuJkXsXsb8UBih9M=
cloud.google.com/go/datafusion v1.5.0/go.mod h1:Kz+l1FGHB0J+4XF2fud96WMmRiq/wj8N9u007vyXZ2w=
+cloud.google.com/go/datafusion v1.7.1/go.mod h1:KpoTBbFmoToDExJUso/fcCiguGDk7MEzOWXUsJo0wsI=
+cloud.google.com/go/datalabeling v0.8.1/go.mod h1:XS62LBSVPbYR54GfYQsPXZjTW8UxCK2fkDciSrpRFdY=
cloud.google.com/go/dataplex v1.4.0/go.mod h1:X51GfLXEMVJ6UN47ESVqvlsRplbLhcsAt0kZCCKsU0A=
+cloud.google.com/go/dataplex v1.8.1/go.mod h1:7TyrDT6BCdI8/38Uvp0/ZxBslOslP2X2MPDucliyvSE=
cloud.google.com/go/dataproc v1.8.0/go.mod h1:5OW+zNAH0pMpw14JVrPONsxMQYMBqJuzORhIBfBn9uI=
+cloud.google.com/go/dataproc v1.12.0/go.mod h1:zrF3aX0uV3ikkMz6z4uBbIKyhRITnxvr4i3IjKsKrw4=
+cloud.google.com/go/dataqna v0.8.1/go.mod h1:zxZM0Bl6liMePWsHA8RMGAfmTG34vJMapbHAxQ5+WA8=
cloud.google.com/go/datastore v1.10.0/go.mod h1:PC5UzAmDEkAmkfaknstTYbNpgE49HAgW2J1gcgUfmdM=
+cloud.google.com/go/datastore v1.12.1/go.mod h1:KjdB88W897MRITkvWWJrg2OUtrR5XVj1EoLgSp6/N70=
cloud.google.com/go/datastream v1.5.0/go.mod h1:6TZMMNPwjUqZHBKPQ1wwXpb0d5VDVPl2/XoS5yi88q4=
+cloud.google.com/go/datastream v1.9.1/go.mod h1:hqnmr8kdUBmrnk65k5wNRoHSCYksvpdZIcZIEl8h43Q=
cloud.google.com/go/deploy v1.5.0/go.mod h1:ffgdD0B89tToyW/U/D2eL0jN2+IEV/3EMuXHA0l4r+s=
+cloud.google.com/go/deploy v1.11.0/go.mod h1:tKuSUV5pXbn67KiubiUNUejqLs4f5cxxiCNCeyl0F2g=
cloud.google.com/go/dialogflow v1.19.0/go.mod h1:JVmlG1TwykZDtxtTXujec4tQ+D8SBFMoosgy+6Gn0s0=
+cloud.google.com/go/dialogflow v1.38.0/go.mod h1:L7jnH+JL2mtmdChzAIcXQHXMvQkE3U4hTaNltEuxXn4=
cloud.google.com/go/dlp v1.7.0/go.mod h1:68ak9vCiMBjbasxeVD17hVPxDEck+ExiHavX8kiHG+Q=
+cloud.google.com/go/dlp v1.10.1/go.mod h1:IM8BWz1iJd8njcNcG0+Kyd9OPnqnRNkDV8j42VT5KOI=
cloud.google.com/go/documentai v1.10.0/go.mod h1:vod47hKQIPeCfN2QS/jULIvQTugbmdc0ZvxxfQY1bg4=
+cloud.google.com/go/documentai v1.20.0/go.mod h1:yJkInoMcK0qNAEdRnqY/D5asy73tnPe88I1YTZT+a8E=
+cloud.google.com/go/domains v0.9.1/go.mod h1:aOp1c0MbejQQ2Pjf1iJvnVyT+z6R6s8pX66KaCSDYfE=
+cloud.google.com/go/edgecontainer v1.1.1/go.mod h1:O5bYcS//7MELQZs3+7mabRqoWQhXCzenBu0R8bz2rwk=
cloud.google.com/go/errorreporting v0.3.0/go.mod h1:xsP2yaAp+OAW4OIm60An2bbLpqIhKXdWR/tawvl7QzU=
cloud.google.com/go/essentialcontacts v1.4.0/go.mod h1:8tRldvHYsmnBCHdFpvU+GL75oWiBKl80BiqlFh9tp+8=
+cloud.google.com/go/essentialcontacts v1.6.2/go.mod h1:T2tB6tX+TRak7i88Fb2N9Ok3PvY3UNbUsMag9/BARh4=
cloud.google.com/go/eventarc v1.8.0/go.mod h1:imbzxkyAU4ubfsaKYdQg04WS1NvncblHEup4kvF+4gw=
+cloud.google.com/go/eventarc v1.12.1/go.mod h1:mAFCW6lukH5+IZjkvrEss+jmt2kOdYlN8aMx3sRJiAI=
cloud.google.com/go/filestore v1.4.0/go.mod h1:PaG5oDfo9r224f8OYXURtAsY+Fbyq/bLYoINEK8XQAI=
+cloud.google.com/go/filestore v1.7.1/go.mod h1:y10jsorq40JJnjR/lQ8AfFbbcGlw3g+Dp8oN7i7FjV4=
cloud.google.com/go/firestore v1.9.0/go.mod h1:HMkjKHNTtRyZNiMzu7YAsLr9K3X2udY2AMwDaMEQiiE=
+cloud.google.com/go/firestore v1.11.0/go.mod h1:b38dKhgzlmNNGTNZZwe7ZRFEuRab1Hay3/DBsIGKKy4=
cloud.google.com/go/functions v1.9.0/go.mod h1:Y+Dz8yGguzO3PpIjhLTbnqV1CWmgQ5UwtlpzoyquQ08=
+cloud.google.com/go/functions v1.15.1/go.mod h1:P5yNWUTkyU+LvW/S9O6V+V423VZooALQlqoXdoPz5AE=
cloud.google.com/go/gaming v1.8.0/go.mod h1:xAqjS8b7jAVW0KFYeRUxngo9My3f33kFmua++Pi+ggM=
cloud.google.com/go/gkebackup v0.3.0/go.mod h1:n/E671i1aOQvUxT541aTkCwExO/bTer2HDlj4TsBRAo=
+cloud.google.com/go/gkebackup v1.3.0/go.mod h1:vUDOu++N0U5qs4IhG1pcOnD1Mac79xWy6GoBFlWCWBU=
+cloud.google.com/go/gkeconnect v0.8.1/go.mod h1:KWiK1g9sDLZqhxB2xEuPV8V9NYzrqTUmQR9shJHpOZw=
+cloud.google.com/go/gkehub v0.14.1/go.mod h1:VEXKIJZ2avzrbd7u+zeMtW00Y8ddk/4V9511C9CQGTY=
cloud.google.com/go/gkemulticloud v0.4.0/go.mod h1:E9gxVBnseLWCk24ch+P9+B2CoDFJZTyIgLKSalC7tuI=
+cloud.google.com/go/gkemulticloud v0.6.1/go.mod h1:kbZ3HKyTsiwqKX7Yw56+wUGwwNZViRnxWK2DVknXWfw=
cloud.google.com/go/gsuiteaddons v1.4.0/go.mod h1:rZK5I8hht7u7HxFQcFei0+AtfS9uSushomRlg+3ua1o=
+cloud.google.com/go/gsuiteaddons v1.6.1/go.mod h1:CodrdOqRZcLp5WOwejHWYBjZvfY0kOphkAKpF/3qdZY=
cloud.google.com/go/iam v0.6.0/go.mod h1:+1AH33ueBne5MzYccyMHtEKqLE4/kJOibtffMHDMFMc=
cloud.google.com/go/iam v0.7.0/go.mod h1:H5Br8wRaDGNc8XP3keLc4unfUUZeyH3Sfl9XpQEYOeg=
+cloud.google.com/go/iam v0.12.0/go.mod h1:knyHGviacl11zrtZUoDuYpDgLjvr28sLQaG0YB2GYAY=
+cloud.google.com/go/iam v0.13.0/go.mod h1:ljOg+rcNfzZ5d6f1nAUJ8ZIxOaZUVoS14bKCtaLZ/D0=
+cloud.google.com/go/iam v1.1.0/go.mod h1:nxdHjaKfCr7fNYx/HJMM8LgiMugmveWlkatear5gVyk=
cloud.google.com/go/iap v1.5.0/go.mod h1:UH/CGgKd4KyohZL5Pt0jSKE4m3FR51qg6FKQ/z/Ix9A=
+cloud.google.com/go/iap v1.8.1/go.mod h1:sJCbeqg3mvWLqjZNsI6dfAtbbV1DL2Rl7e1mTyXYREQ=
cloud.google.com/go/ids v1.2.0/go.mod h1:5WXvp4n25S0rA/mQWAg1YEEBBq6/s+7ml1RDCW1IrcY=
+cloud.google.com/go/ids v1.4.1/go.mod h1:np41ed8YMU8zOgv53MMMoCntLTn2lF+SUzlM+O3u/jw=
cloud.google.com/go/iot v1.4.0/go.mod h1:dIDxPOn0UvNDUMD8Ger7FIaTuvMkj+aGk94RPP0iV+g=
+cloud.google.com/go/iot v1.7.1/go.mod h1:46Mgw7ev1k9KqK1ao0ayW9h0lI+3hxeanz+L1zmbbbk=
+cloud.google.com/go/kms v1.9.0/go.mod h1:qb1tPTgfF9RQP8e1wq4cLFErVuTJv7UsSC915J8dh3w=
cloud.google.com/go/language v1.8.0/go.mod h1:qYPVHf7SPoNNiCL2Dr0FfEFNil1qi3pQEyygwpgVKB8=
+cloud.google.com/go/language v1.10.1/go.mod h1:CPp94nsdVNiQEt1CNjF5WkTcisLiHPyIbMhvR8H2AW0=
+cloud.google.com/go/lifesciences v0.9.1/go.mod h1:hACAOd1fFbCGLr/+weUKRAJas82Y4vrL3O5326N//Wc=
cloud.google.com/go/logging v1.0.0/go.mod h1:V1cc3ogwobYzQq5f2R7DS/GvRIrI4FKj01Gs5glwAls=
+cloud.google.com/go/longrunning v0.4.1/go.mod h1:4iWDqhBZ70CvZ6BfETbvam3T8FMvLK+eFj0E6AaRQTo=
+cloud.google.com/go/longrunning v0.5.0/go.mod h1:0JNuqRShmscVAhIACGtskSAWtqtOoPkwP0YF1oVEchc=
cloud.google.com/go/managedidentities v1.4.0/go.mod h1:NWSBYbEMgqmbZsLIyKvxrYbtqOsxY1ZrGM+9RgDqInM=
+cloud.google.com/go/managedidentities v1.6.1/go.mod h1:h/irGhTN2SkZ64F43tfGPMbHnypMbu4RB3yl8YcuEak=
cloud.google.com/go/maps v0.1.0/go.mod h1:BQM97WGyfw9FWEmQMpZ5T6cpovXXSd1cGmFma94eubI=
+cloud.google.com/go/maps v1.3.0/go.mod h1:6mWTUv+WhnOwAgjVsSW2QPPECmW+s3PcRyOa9vgG/5s=
+cloud.google.com/go/mediatranslation v0.8.1/go.mod h1:L/7hBdEYbYHQJhX2sldtTO5SZZ1C1vkapubj0T2aGig=
cloud.google.com/go/memcache v1.7.0/go.mod h1:ywMKfjWhNtkQTxrWxCkCFkoPjLHPW6A7WOTVI8xy3LY=
+cloud.google.com/go/memcache v1.10.1/go.mod h1:47YRQIarv4I3QS5+hoETgKO40InqzLP6kpNLvyXuyaA=
cloud.google.com/go/metastore v1.8.0/go.mod h1:zHiMc4ZUpBiM7twCIFQmJ9JMEkDSyZS9U12uf7wHqSI=
+cloud.google.com/go/metastore v1.11.1/go.mod h1:uZuSo80U3Wd4zi6C22ZZliOUJ3XeM/MlYi/z5OAOWRA=
cloud.google.com/go/monitoring v1.8.0/go.mod h1:E7PtoMJ1kQXWxPjB6mv2fhC5/15jInuulFdYYtlcvT4=
+cloud.google.com/go/monitoring v1.15.1/go.mod h1:lADlSAlFdbqQuwwpaImhsJXu1QSdd3ojypXrFSMr2rM=
cloud.google.com/go/networkconnectivity v1.7.0/go.mod h1:RMuSbkdbPwNMQjB5HBWD5MpTBnNm39iAVpC3TmsExt8=
+cloud.google.com/go/networkconnectivity v1.12.1/go.mod h1:PelxSWYM7Sh9/guf8CFhi6vIqf19Ir/sbfZRUwXh92E=
cloud.google.com/go/networkmanagement v1.5.0/go.mod h1:ZnOeZ/evzUdUsnvRt792H0uYEnHQEMaz+REhhzJRcf4=
+cloud.google.com/go/networkmanagement v1.8.0/go.mod h1:Ho/BUGmtyEqrttTgWEe7m+8vDdK74ibQc+Be0q7Fof0=
+cloud.google.com/go/networksecurity v0.9.1/go.mod h1:MCMdxOKQ30wsBI1eI659f9kEp4wuuAueoC9AJKSPWZQ=
cloud.google.com/go/notebooks v1.5.0/go.mod h1:q8mwhnP9aR8Hpfnrc5iN5IBhrXUy8S2vuYs+kBJ/gu0=
+cloud.google.com/go/notebooks v1.9.1/go.mod h1:zqG9/gk05JrzgBt4ghLzEepPHNwE5jgPcHZRKhlC1A8=
cloud.google.com/go/optimization v1.2.0/go.mod h1:Lr7SOHdRDENsh+WXVmQhQTrzdu9ybg0NecjHidBq6xs=
+cloud.google.com/go/optimization v1.4.1/go.mod h1:j64vZQP7h9bO49m2rVaTVoNM0vEBEN5eKPUPbZyXOrk=
cloud.google.com/go/orchestration v1.4.0/go.mod h1:6W5NLFWs2TlniBphAViZEVhrXRSMgUGDfW7vrWKvsBk=
+cloud.google.com/go/orchestration v1.8.1/go.mod h1:4sluRF3wgbYVRqz7zJ1/EUNc90TTprliq9477fGobD8=
cloud.google.com/go/orgpolicy v1.5.0/go.mod h1:hZEc5q3wzwXJaKrsx5+Ewg0u1LxJ51nNFlext7Tanwc=
+cloud.google.com/go/orgpolicy v1.11.1/go.mod h1:8+E3jQcpZJQliP+zaFfayC2Pg5bmhuLK755wKhIIUCE=
cloud.google.com/go/osconfig v1.10.0/go.mod h1:uMhCzqC5I8zfD9zDEAfvgVhDS8oIjySWh+l4WK6GnWw=
+cloud.google.com/go/osconfig v1.12.1/go.mod h1:4CjBxND0gswz2gfYRCUoUzCm9zCABp91EeTtWXyz0tE=
cloud.google.com/go/oslogin v1.7.0/go.mod h1:e04SN0xO1UNJ1M5GP0vzVBFicIe4O53FOfcixIqTyXo=
+cloud.google.com/go/oslogin v1.10.1/go.mod h1:x692z7yAue5nE7CsSnoG0aaMbNoRJRXO4sn73R+ZqAs=
+cloud.google.com/go/phishingprotection v0.8.1/go.mod h1:AxonW7GovcA8qdEk13NfHq9hNx5KPtfxXNeUxTDxB6I=
cloud.google.com/go/policytroubleshooter v1.4.0/go.mod h1:DZT4BcRw3QoO8ota9xw/LKtPa8lKeCByYeKTIf/vxdE=
+cloud.google.com/go/policytroubleshooter v1.7.1/go.mod h1:0NaT5v3Ag1M7U5r0GfDCpUFkWd9YqpubBWsQlhanRv0=
+cloud.google.com/go/privatecatalog v0.9.1/go.mod h1:0XlDXW2unJXdf9zFz968Hp35gl/bhF4twwpXZAW50JA=
cloud.google.com/go/pubsub v1.27.1/go.mod h1:hQN39ymbV9geqBnfQq6Xf63yNhUAhv9CZhzp5O6qsW0=
+cloud.google.com/go/pubsub v1.32.0/go.mod h1:f+w71I33OMyxf9VpMVcZbnG5KSUkCOUHYpFd5U1GdRc=
cloud.google.com/go/pubsublite v1.5.0/go.mod h1:xapqNQ1CuLfGi23Yda/9l4bBCKz/wC3KIJ5gKcxveZg=
+cloud.google.com/go/pubsublite v1.8.1/go.mod h1:fOLdU4f5xldK4RGJrBMm+J7zMWNj/k4PxwEZXy39QS0=
cloud.google.com/go/recaptchaenterprise/v2 v2.5.0/go.mod h1:O8LzcHXN3rz0j+LBC91jrwI3R+1ZSZEWrfL7XHgNo9U=
+cloud.google.com/go/recaptchaenterprise/v2 v2.7.2/go.mod h1:kR0KjsJS7Jt1YSyWFkseQ756D45kaYNTlDPPaRAvDBU=
+cloud.google.com/go/recommendationengine v0.8.1/go.mod h1:MrZihWwtFYWDzE6Hz5nKcNz3gLizXVIDI/o3G1DLcrE=
cloud.google.com/go/recommender v1.8.0/go.mod h1:PkjXrTT05BFKwxaUxQmtIlrtj0kph108r02ZZQ5FE70=
+cloud.google.com/go/recommender v1.10.1/go.mod h1:XFvrE4Suqn5Cq0Lf+mCP6oBHD/yRMA8XxP5sb7Q7gpA=
cloud.google.com/go/redis v1.10.0/go.mod h1:ThJf3mMBQtW18JzGgh41/Wld6vnDDc/F/F35UolRZPM=
+cloud.google.com/go/redis v1.13.1/go.mod h1:VP7DGLpE91M6bcsDdMuyCm2hIpB6Vp2hI090Mfd1tcg=
cloud.google.com/go/resourcemanager v1.4.0/go.mod h1:MwxuzkumyTX7/a3n37gmsT3py7LIXwrShilPh3P1tR0=
+cloud.google.com/go/resourcemanager v1.9.1/go.mod h1:dVCuosgrh1tINZ/RwBufr8lULmWGOkPS8gL5gqyjdT8=
cloud.google.com/go/resourcesettings v1.4.0/go.mod h1:ldiH9IJpcrlC3VSuCGvjR5of/ezRrOxFtpJoJo5SmXg=
+cloud.google.com/go/resourcesettings v1.6.1/go.mod h1:M7mk9PIZrC5Fgsu1kZJci6mpgN8o0IUzVx3eJU3y4Jw=
cloud.google.com/go/retail v1.11.0/go.mod h1:MBLk1NaWPmh6iVFSz9MeKG/Psyd7TAgm6y/9L2B4x9Y=
+cloud.google.com/go/retail v1.14.1/go.mod h1:y3Wv3Vr2k54dLNIrCzenyKG8g8dhvhncT2NcNjb/6gE=
cloud.google.com/go/run v0.3.0/go.mod h1:TuyY1+taHxTjrD0ZFk2iAR+xyOXEA0ztb7U3UNA0zBo=
+cloud.google.com/go/run v1.2.0/go.mod h1:36V1IlDzQ0XxbQjUx6IYbw8H3TJnWvhii963WW3B/bo=
cloud.google.com/go/scheduler v1.7.0/go.mod h1:jyCiBqWW956uBjjPMMuX09n3x37mtyPJegEWKxRsn44=
+cloud.google.com/go/scheduler v1.10.1/go.mod h1:R63Ldltd47Bs4gnhQkmNDse5w8gBRrhObZ54PxgR2Oo=
cloud.google.com/go/secretmanager v1.9.0/go.mod h1:b71qH2l1yHmWQHt9LC80akm86mX8AL6X1MA01dW8ht4=
+cloud.google.com/go/secretmanager v1.11.1/go.mod h1:znq9JlXgTNdBeQk9TBW/FnR/W4uChEKGeqQWAJ8SXFw=
cloud.google.com/go/security v1.10.0/go.mod h1:QtOMZByJVlibUT2h9afNDWRZ1G96gVywH8T5GUSb9IA=
+cloud.google.com/go/security v1.15.1/go.mod h1:MvTnnbsWnehoizHi09zoiZob0iCHVcL4AUBj76h9fXA=
cloud.google.com/go/securitycenter v1.16.0/go.mod h1:Q9GMaLQFUD+5ZTabrbujNWLtSLZIZF7SAR0wWECrjdk=
+cloud.google.com/go/securitycenter v1.23.0/go.mod h1:8pwQ4n+Y9WCWM278R8W3nF65QtY172h4S8aXyI9/hsQ=
cloud.google.com/go/servicecontrol v1.5.0/go.mod h1:qM0CnXHhyqKVuiZnGKrIurvVImCs8gmqWsDoqe9sU1s=
cloud.google.com/go/servicedirectory v1.7.0/go.mod h1:5p/U5oyvgYGYejufvxhgwjL8UVXjkuw7q5XcG10wx1U=
+cloud.google.com/go/servicedirectory v1.10.1/go.mod h1:Xv0YVH8s4pVOwfM/1eMTl0XJ6bzIOSLDt8f8eLaGOxQ=
cloud.google.com/go/servicemanagement v1.5.0/go.mod h1:XGaCRe57kfqu4+lRxaFEAuqmjzF0r+gWHjWqKqBvKFo=
cloud.google.com/go/serviceusage v1.4.0/go.mod h1:SB4yxXSaYVuUBYUml6qklyONXNLt83U0Rb+CXyhjEeU=
cloud.google.com/go/shell v1.4.0/go.mod h1:HDxPzZf3GkDdhExzD/gs8Grqk+dmYcEjGShZgYa9URw=
+cloud.google.com/go/shell v1.7.1/go.mod h1:u1RaM+huXFaTojTbW4g9P5emOrrmLE69KrxqQahKn4g=
cloud.google.com/go/spanner v1.41.0/go.mod h1:MLYDBJR/dY4Wt7ZaMIQ7rXOTLjYrmxLE/5ve9vFfWos=
+cloud.google.com/go/spanner v1.47.0/go.mod h1:IXsJwVW2j4UKs0eYDqodab6HgGuA1bViSqW4uH9lfUI=
cloud.google.com/go/speech v1.9.0/go.mod h1:xQ0jTcmnRFFM2RfX/U+rk6FQNUF6DQlydUSyoooSpco=
+cloud.google.com/go/speech v1.17.1/go.mod h1:8rVNzU43tQvxDaGvqOhpDqgkJTFowBpDvCJ14kGlJYo=
+cloud.google.com/go/storage v1.28.1/go.mod h1:Qnisd4CqDdo6BGs2AD5LLnEsmSQ80wQ5ogcBBKhU86Y=
cloud.google.com/go/storagetransfer v1.6.0/go.mod h1:y77xm4CQV/ZhFZH75PLEXY0ROiS7Gh6pSKrM8dJyg6I=
+cloud.google.com/go/storagetransfer v1.10.0/go.mod h1:DM4sTlSmGiNczmV6iZyceIh2dbs+7z2Ayg6YAiQlYfA=
cloud.google.com/go/talent v1.4.0/go.mod h1:ezFtAgVuRf8jRsvyE6EwmbTK5LKciD4KVnHuDEFmOOA=
+cloud.google.com/go/talent v1.6.2/go.mod h1:CbGvmKCG61mkdjcqTcLOkb2ZN1SrQI8MDyma2l7VD24=
cloud.google.com/go/texttospeech v1.5.0/go.mod h1:oKPLhR4n4ZdQqWKURdwxMy0uiTS1xU161C8W57Wkea4=
+cloud.google.com/go/texttospeech v1.7.1/go.mod h1:m7QfG5IXxeneGqTapXNxv2ItxP/FS0hCZBwXYqucgSk=
cloud.google.com/go/tpu v1.4.0/go.mod h1:mjZaX8p0VBgllCzF6wcU2ovUXN9TONFLd7iz227X2Xg=
+cloud.google.com/go/tpu v1.6.1/go.mod h1:sOdcHVIgDEEOKuqUoi6Fq53MKHJAtOwtz0GuKsWSH3E=
cloud.google.com/go/trace v1.4.0/go.mod h1:UG0v8UBqzusp+z63o7FK74SdFE+AXpCLdFb1rshXG+Y=
+cloud.google.com/go/trace v1.10.1/go.mod h1:gbtL94KE5AJLH3y+WVpfWILmqgc6dXcqgNXdOPAQTYk=
cloud.google.com/go/translate v1.4.0/go.mod h1:06Dn/ppvLD6WvA5Rhdp029IX2Mi3Mn7fpMRLPvXT5Wg=
+cloud.google.com/go/translate v1.8.1/go.mod h1:d1ZH5aaOA0CNhWeXeC8ujd4tdCFw8XoNWRljklu5RHs=
cloud.google.com/go/video v1.9.0/go.mod h1:0RhNKFRF5v92f8dQt0yhaHrEuH95m068JYOvLZYnJSw=
+cloud.google.com/go/video v1.17.1/go.mod h1:9qmqPqw/Ib2tLqaeHgtakU+l5TcJxCJbhFXM7UJjVzU=
cloud.google.com/go/videointelligence v1.9.0/go.mod h1:29lVRMPDYHikk3v8EdPSaL8Ku+eMzDljjuvRs105XoU=
+cloud.google.com/go/videointelligence v1.11.1/go.mod h1:76xn/8InyQHarjTWsBR058SmlPCwQjgcvoW0aZykOvo=
cloud.google.com/go/vision/v2 v2.5.0/go.mod h1:MmaezXOOE+IWa+cS7OhRRLK2cNv1ZL98zhqFFZaaH2E=
+cloud.google.com/go/vision/v2 v2.7.2/go.mod h1:jKa8oSYBWhYiXarHPvP4USxYANYUEdEsQrloLjrSwJU=
cloud.google.com/go/vmmigration v1.3.0/go.mod h1:oGJ6ZgGPQOFdjHuocGcLqX4lc98YQ7Ygq8YQwHh9A7g=
+cloud.google.com/go/vmmigration v1.7.1/go.mod h1:WD+5z7a/IpZ5bKK//YmT9E047AD+rjycCAvyMxGJbro=
cloud.google.com/go/vmwareengine v0.1.0/go.mod h1:RsdNEf/8UDvKllXhMz5J40XxDrNJNN4sagiox+OI208=
+cloud.google.com/go/vmwareengine v0.4.1/go.mod h1:Px64x+BvjPZwWuc4HdmVhoygcXqEkGHXoa7uyfTgSI0=
cloud.google.com/go/vpcaccess v1.5.0/go.mod h1:drmg4HLk9NkZpGfCmZ3Tz0Bwnm2+DKqViEpeEpOq0m8=
+cloud.google.com/go/vpcaccess v1.7.1/go.mod h1:FogoD46/ZU+JUBX9D606X21EnxiszYi2tArQwLY4SXs=
cloud.google.com/go/webrisk v1.7.0/go.mod h1:mVMHgEYH0r337nmt1JyLthzMr6YxwN1aAIEc2fTcq7A=
+cloud.google.com/go/webrisk v1.9.1/go.mod h1:4GCmXKcOa2BZcZPn6DCEvE7HypmEJcJkr4mtM+sqYPc=
cloud.google.com/go/websecurityscanner v1.4.0/go.mod h1:ebit/Fp0a+FWu5j4JOmJEV8S8CzdTkAS77oDsiSqYWQ=
+cloud.google.com/go/websecurityscanner v1.6.1/go.mod h1:Njgaw3rttgRHXzwCB8kgCYqv5/rGpFCsBOvPbYgszpg=
cloud.google.com/go/workflows v1.9.0/go.mod h1:ZGkj1aFIOd9c8Gerkjjq7OW7I5+l6cSvT3ujaO/WwSA=
+cloud.google.com/go/workflows v1.11.1/go.mod h1:Z+t10G1wF7h8LgdY/EmRcQY8ptBD/nvofaL6FqlET6g=
+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-sdk-for-go/sdk/storage/azblob v0.4.1 h1:QSdcrd/UFJv6Bp/CfoVf2SrENpFn9P6Yh8yb+xNhYMM=
github.com/HdrHistogram/hdrhistogram-go v1.1.2/go.mod h1:yDgFjdqOqDEKOvasDdhWNXYg9BVp4O+o5f6V/ehm6Oo=
github.com/Masterminds/goutils v1.1.0/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU=
-github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y=
github.com/Masterminds/sprig v2.22.0+incompatible h1:z4yfnGrZ7netVz+0EDJ0Wi+5VZCSYp4Z0m2dk6cEM60=
github.com/Masterminds/sprig v2.22.0+incompatible/go.mod h1:y6hNFY5UBTIWBxnzTeuNhlNS5hqE0NB0E6fgfo2Br3o=
+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/agext/levenshtein v1.2.1/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558=
github.com/agext/levenshtein v1.2.2/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558=
github.com/agl/ed25519 v0.0.0-20170116200512-5312a6153412/go.mod h1:WPjqKcmVOxf0XSf3YxCJs6N6AOSrOx3obionmG7T0y0=
github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw=
github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7/go.mod h1:6zEj6s6u/ghQa61ZWa/C2Aw3RkjiTBOix7dkqa1VLIs=
+github.com/alecthomas/chroma v0.10.0/go.mod h1:jtJATyUxlIORhUOFNA9NZDWGAQ8wpxQQqNSB4rjA/1s=
github.com/apparentlymart/go-cidr v1.0.1/go.mod h1:EBcsNrHc3zQeuaeCeCtQruQm+n9/YjEn/vI25Lg7Gwc=
github.com/apparentlymart/go-dump v0.0.0-20180507223929-23540a00eaa3/go.mod h1:oL81AME2rN47vu18xqj1S1jPIPuN7afo62yKTNn3XMM=
github.com/apparentlymart/go-dump v0.0.0-20190214190832-042adf3cf4a0/go.mod h1:oL81AME2rN47vu18xqj1S1jPIPuN7afo62yKTNn3XMM=
@@ -124,21 +249,42 @@ github.com/apparentlymart/go-textseg v1.0.0 h1:rRmlIsPEEhUTIKQb7T++Nz/A5Q6C9IuX2
github.com/aws/aws-sdk-go v1.15.78/go.mod h1:E3/ieXAlvM0XWO57iftYVDLLvQ824smPP3ATZkfNZeM=
github.com/aws/aws-sdk-go v1.25.3/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
github.com/aws/aws-sdk-go-v2/service/iam v1.19.0/go.mod h1:OyAuvpFeSVNppcSsp1hFOVQcaTRc1LE24YIR7pMbbAA=
+github.com/aymanbagabas/go-osc52 v1.0.3 h1:DTwqENW7X9arYimJrPeGZcV0ln14sGMt3pHZspWD+Mg=
+github.com/aymanbagabas/go-osc52 v1.0.3/go.mod h1:zT8H+Rk4VSabYN90pWyugflM3ZhpTZNC7cASDfUCdT4=
+github.com/aymerick/douceur v0.2.0/go.mod h1:wlT5vV2O3h55X9m7iVYN0TBM0NH/MmbLnd30/FjWUq4=
+github.com/bufbuild/protocompile v0.4.0/go.mod h1:3v93+mbWn/v3xzN+31nwkJfrEpAUwp+BagBSZWx+TP8=
+github.com/ccojocar/zxcvbn-go v1.0.1/go.mod h1:g1qkXtUSvHP8lhHp5GrSmTz6uWALGRMQdw6Qnz/hi60=
github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4=
github.com/census-instrumentation/opencensus-proto v0.4.1/go.mod h1:4T9NM4+4Vw91VeyqjLS6ao50K5bOcLKN6Q42XnYaRYw=
github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
+github.com/charmbracelet/glamour v0.6.0/go.mod h1:taqWV4swIMMbWALc0m7AfE9JkPSU8om2538k9ITBxOc=
github.com/cncf/udpa/go v0.0.0-20220112060539-c52dc94e7fbe/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI=
github.com/cncf/xds/go v0.0.0-20230105202645-06c439db220b/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
+github.com/cncf/xds/go v0.0.0-20230607035331-e9ce68804cb4/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
+github.com/creack/pty v1.1.9 h1:uDmaGzcdjhF4i/plgjmEsriH11Y0o7RKapEf/LDaM3w=
+github.com/creack/pty v1.1.17 h1:QeVUsEDNrLBW4tMgZHvxy18sKtr6VI492kBhUfhDJNI=
github.com/creack/pty v1.1.17/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4=
+github.com/dlclark/regexp2 v1.4.0/go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc=
+github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY=
+github.com/elazarl/goproxy v0.0.0-20221015165544-a0805db90819/go.mod h1:Ro8st/ElPeALwNFlcTpWmkr6IoMFfkjXAvTHpevnDsM=
+github.com/elazarl/goproxy/ext v0.0.0-20190711103511-473e67f1d7d2/go.mod h1:gNh8nYJoAm43RfaxurUnxr+N1PwuFV3ZMl/efxlIlY8=
+github.com/envoyproxy/go-control-plane v0.11.1-0.20230524094728-9239064ad72f/go.mod h1:sfYdkwUW4BA3PbKjySwjJy+O4Pu0h62rlqCMHNk+K+Q=
github.com/envoyproxy/protoc-gen-validate v0.9.1/go.mod h1:OKNgG7TCp5pF4d6XftA0++PMirau2/yoOwVac3AbF2w=
+github.com/envoyproxy/protoc-gen-validate v0.10.1/go.mod h1:DRjgyB0I43LtJapqN6NiRwroiAU2PaFuvk/vjgh61ss=
github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k=
github.com/frankban/quicktest v1.14.3/go.mod h1:mgiwOwqx65TmIk1wJ6Q7wvnVMocbUorkibMOrVTHZps=
github.com/go-git/go-billy/v5 v5.0.0/go.mod h1:pmpqyWchKfYfrkb/UVH4otLvyi/5gJlGI4Hb3ZqZ3W0=
github.com/go-git/go-git-fixtures/v4 v4.0.1/go.mod h1:m+ICp2rF3jDhFgEZ/8yziagdT1C+ZpZcrJjappBCDSw=
+github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20230305113008-0c11038e723f/go.mod h1:8LHG1a3SRW71ettAD/jW13h8c6AqjVSeL11RAdgaqpo=
github.com/go-git/go-git/v5 v5.1.0/go.mod h1:ZKfuPUoY1ZqIG4QG9BDBh3G4gLM5zvPuSJAozQrZuyM=
github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0=
github.com/go-test/deep v1.0.3/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA=
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k=
+github.com/google/pprof v0.0.0-20230406165453-00490a63f317/go.mod h1:79YE0hCXdHag9sBkw2o+N/YnZtTkXi0UT9Nnixa5eYk=
+github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8=
+github.com/googleapis/gax-go/v2 v2.7.1/go.mod h1:4orTrqY6hXxxaUL4LHIPl6lGo8vAE38/qKbhSAKP6QI=
+github.com/googleapis/gax-go/v2 v2.10.0/go.mod h1:4UOEnMCrxsSqQ940WnTiD6qJ63le2ev3xfyagutxiPw=
+github.com/gorilla/css v1.0.0/go.mod h1:Dn721qIggHpt4+EFCcTLTU/vk5ySda2ReITrtgBl60c=
github.com/hashicorp/go-getter v1.4.0/go.mod h1:7qxyCd8rBfcShwsvxgIguu4KbS3l8bUCwg2Umn7RjeY=
github.com/hashicorp/go-getter v1.4.2-0.20200106182914-9813cbd4eb02/go.mod h1:7qxyCd8rBfcShwsvxgIguu4KbS3l8bUCwg2Umn7RjeY=
github.com/hashicorp/go-getter v1.7.0 h1:bzrYP+qu/gMrL1au7/aDvkoOVGUJpeKBgbqRHACAFDY=
@@ -177,12 +323,23 @@ github.com/hexops/autogold v1.3.0/go.mod h1:d4hwi2rid66Sag+BVuHgwakW/EmaFr8vdTSb
github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg=
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/ijc/Gotty v0.0.0-20170406111628-a8b993ba6abd h1:anPrsicrIi2ColgWTVPk+TrN42hJIWlfPHSBP9S0ZkM=
github.com/imdario/mergo v0.3.9/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA=
+github.com/jhump/protoreflect v1.15.1/go.mod h1:jD/2GMKKE6OqX8qTjhADU1e6DShO+gavG9e0Q693nKo=
github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes=
+github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs=
github.com/kevinburke/ssh_config v0.0.0-20190725054713-01f96b0aa0cd/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM=
github.com/kevinburke/ssh_config v1.1.0/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM=
github.com/keybase/go-crypto v0.0.0-20161004153544-93f5b35093ba/go.mod h1:ghbZscTyKdM07+Fw3KSi0hcJm+AlEUWj8QLlPtijN/M=
+github.com/liquidgecka/testlib v0.0.0-20180123051607-561e6b271c63/go.mod h1:vwMPvLIhXhkJaBfsk/6l+eDuiQaIVHC0b6eCvUVBsB0=
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I=
+github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
+github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
+github.com/mattn/go-runewidth v0.0.13/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
+github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b h1:j7+1HpAFS1zy5+Q4qx1fWh90gTKwiN4QCGoY9TWyyO4=
+github.com/microcosm-cc/bluemonday v1.0.21/go.mod h1:ytNkv4RrDrLJ2pqlsSI46O6IVXmZOBBD4SaJyDwwTkM=
github.com/mitchellh/cli v1.1.1/go.mod h1:xcISNoH86gajksDmfB23e/pu+B+GeFRMYmoHXxx3xhI=
github.com/mitchellh/cli v1.1.2/go.mod h1:6iaV0fGdElS6dPBx0EApTxHrcWvmJphyh2n8YBLPPZ4=
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db/go.mod h1:l0dey0ia/Uv7NcFFVbCLtqEBQbrT4OCwCSKTEv6enCw=
@@ -191,9 +348,13 @@ github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7/go.mod h1:ZX
github.com/mitchellh/mapstructure v1.4.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
github.com/mitchellh/reflectwalk v1.0.1/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=
github.com/moby/moby v23.0.0+incompatible/go.mod h1:fDXVQ6+S340veQPv35CzDahGBmHsiclFwfEygB/TWMc=
+github.com/moby/moby v23.0.3+incompatible/go.mod h1:fDXVQ6+S340veQPv35CzDahGBmHsiclFwfEygB/TWMc=
+github.com/muesli/termenv v0.13.0/go.mod h1:sP1+uffeLaEYpyOTb8pLCUctGcGLnoFjSn4YJK5e2bc=
github.com/mxschmitt/golang-combinations v1.0.0/go.mod h1:RbMhWvfCelHR6WROvT2bVfxJvZHoEvBj71SKe+H0MYU=
github.com/nbutton23/zxcvbn-go v0.0.0-20180912185939-ae427f1e4c1d/go.mod h1:o96djdrsSGy3AWPyBgZMAGfxZNfgntdJG+11KU4QvbU=
github.com/nightlyone/lockfile v1.0.0/go.mod h1:rywoIealpdNse2r832aiD9jRk8ErCatROs6LzC841CI=
+github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY=
+github.com/petar-dambovaliev/aho-corasick v0.0.0-20230725210150-fb29fc3c913e/go.mod h1:EHPiTAKtiFmrMldLUNswFwfZ2eJIYBHktdaUTZxYWRw=
github.com/pgavlin/diff v0.0.0-20230503175810-113847418e2e/go.mod h1:WGwlmuPAiQTGQUjxyAfP7j4JgbgiFvFpI/qRtsQtS/4=
github.com/pgavlin/text v0.0.0-20230428184845-84c285f11d2f/go.mod h1:fk4+YyTLi0Ap0CsL1HA70/tAs6evqw3hbPGdR8rD/3E=
github.com/posener/complete v1.2.1/go.mod h1:6gapUrK/U1TAN7ciCoNRIdVC5sbdBTUh1DKN0g6uH7E=
@@ -211,18 +372,23 @@ github.com/pulumi/pulumi-yaml v1.0.4/go.mod h1:Szj8ud4Vqyq3oO1n3kzIUfaP3AiCjYZM4
github.com/pulumi/pulumi/pkg/v3 v3.53.1/go.mod h1:XqciW5mPO8RxBEbN2/My9XjO829UQ2cHuhVLfoKM/yE=
github.com/pulumi/pulumi/pkg/v3 v3.59.0 h1:RlY3FnW7gEyLEbdNlJBE0mpOX4H5NtF7eOqDxfl/Juc=
github.com/pulumi/pulumi/pkg/v3 v3.59.0/go.mod h1:whC7X+KJOqKcZtcUWypaOhYuQJitnF+32TQQAa5sgIU=
+github.com/pulumi/pulumi/pkg/v3 v3.69.0/go.mod h1:GbsJqE2bGotPY+mj07LKlpps9ZzAlV7qRQ/u77kw9yk=
github.com/pulumi/pulumi/sdk/v3 v3.53.1/go.mod h1:IYcBrkAwKEGRVq7R1ne3XJKB5bcux5eL3M/zqco7d6Y=
github.com/pulumi/pulumi/sdk/v3 v3.59.0 h1:ONbWeLkPX27aMwux+Y548qRaUn+mdJC79f68espqpZ8=
github.com/pulumi/pulumi/sdk/v3 v3.59.0/go.mod h1:Pb5H3OaRZg0n4TRIfY0pagR/NBIEvjp3lZe2Spr6Umc=
github.com/pulumi/pulumi/sdk/v3 v3.62.0/go.mod h1:Pb5H3OaRZg0n4TRIfY0pagR/NBIEvjp3lZe2Spr6Umc=
+github.com/pulumi/pulumi/sdk/v3 v3.69.0/go.mod h1:BUUBfQZsH0FPuznRfFHkR+b96VlXELnn+DgidFj4XSQ=
github.com/pulumi/terraform-diff-reader v0.0.0-20201211191010-ad4715e9285e/go.mod h1:sZ9FUzGO+yM41hsQHs/yIcj/Y993qMdBxBU5mpDmAfQ=
+github.com/rogpeppe/go-charset v0.0.0-20180617210344-2471d30d28b4/go.mod h1:qgYeAmZ5ZIpBWTGllZSQnw97Dj+woV0toclVaRGI8pc=
github.com/rogpeppe/go-internal v1.6.2/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
github.com/russross/blackfriday v1.6.0 h1:KqfZb0pUVN2lYqZUYRddxF4OR8ZMURnJIG5Y3VRLtww=
github.com/russross/blackfriday v1.6.0/go.mod h1:ti0ldHuxg49ri4ksnFxlkCfN+hvslNlmVHqNRXXJNAY=
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=
+github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=
github.com/shirou/gopsutil/v3 v3.22.3/go.mod h1:D01hZJ4pVHPpCTZ3m3T2+wDF2YAGfd+H4ifUguaQzHM=
github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041/go.mod h1:N5mDOmsrJOB+vfqUK+7DmDyjhSLIIBnXo9lvZJj3MWQ=
github.com/shurcooL/go-goon v0.0.0-20210110234559-7585751d9a17/go.mod h1:N5mDOmsrJOB+vfqUK+7DmDyjhSLIIBnXo9lvZJj3MWQ=
+github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
github.com/spf13/cast v1.4.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
github.com/spf13/pflag v1.0.2/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
github.com/tklauser/go-sysconf v0.3.10/go.mod h1:C8XykCvCb+Gn0oNCWPIlcb0RuglQTYaQ2hGm7jmxEFk=
@@ -230,31 +396,52 @@ github.com/tklauser/numcpus v0.4.0/go.mod h1:1+UI3pD8NW14VMwdgJNJ1ESk2UnwhAnz5hM
github.com/ulikunitz/xz v0.5.5/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8=
github.com/ulikunitz/xz v0.5.7/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14=
github.com/vmihailenco/msgpack v4.0.1+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk=
-github.com/vmihailenco/msgpack/v5 v5.3.5/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q/V5KbhBonMG9jc=
-github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds=
github.com/xanzy/ssh-agent v0.2.1/go.mod h1:mLlQY/MoOhWBj+gOGMQkOeiEvkx+8pJSI+0Bx9h2kr4=
github.com/xanzy/ssh-agent v0.3.2/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw=
+github.com/yuin/goldmark v1.5.2/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
+github.com/yuin/goldmark-emoji v1.0.1/go.mod h1:2w1E6FEWLcDQkoTE+7HU6QF1F6SLlNGjRIBbIZQFqkQ=
github.com/yusufpapurcu/wmi v1.2.2/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0=
github.com/zclconf/go-cty v1.0.0/go.mod h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s=
github.com/zclconf/go-cty v1.2.1/go.mod h1:hOPWgoHbaTUnI5k4D2ld+GRpFJSCe6bCM7m1q/N4PQ8=
github.com/zclconf/go-cty v1.12.1/go.mod h1:s9IfD1LK5ccNMSWCVFCE2rJfHiZgi7JijgeWIMfhLvA=
+github.com/zclconf/go-cty v1.13.0/go.mod h1:YKQzy/7pZ7iq2jNFzy5go57xdxdWoLLpaEp4u238AE0=
+github.com/zclconf/go-cty v1.13.2/go.mod h1:YKQzy/7pZ7iq2jNFzy5go57xdxdWoLLpaEp4u238AE0=
github.com/zclconf/go-cty-yaml v1.0.1/go.mod h1:IP3Ylp0wQpYm50IHK8OZWKMu6sPJIUgKa8XhiVHura0=
+go.pennock.tech/tabular v1.1.3/go.mod h1:UzyxF5itNqTCS1ZGXfwDwbFgYj/lS+e67Fid68QOYZ0=
golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
golang.org/x/crypto v0.0.0-20220824171710-5757bc0c5503/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
+golang.org/x/crypto v0.8.0/go.mod h1:mRqEX+O9/h5TFCrQhkgjo2yKi0yYA+9ecGkdQoHrywE=
+golang.org/x/crypto v0.9.0/go.mod h1:yrmDGqONDYtNj3tH8X9dzUun2m2lzPa9ngI6/RUPGR0=
+golang.org/x/crypto v0.11.0/go.mod h1:xgJhtzW8F9jGdVFWZESrid1U1bjeNy4zgy5cRr/CIio=
+golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc=
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-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs=
-golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
-golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
+golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
+golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
+golang.org/x/net v0.0.0-20221002022538-bcab6841153b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk=
+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/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA=
+golang.org/x/net v0.16.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE=
+golang.org/x/oauth2 v0.6.0/go.mod h1:ycmewcwgD4Rpr3eZJLSB4Kyyljb3qDh40vJ8STE5HKw=
+golang.org/x/oauth2 v0.7.0/go.mod h1:hPLQkd9LyjfXTiRohC/41GhcFqxisoUQ99sCUOHO9x4=
golang.org/x/sys v0.0.0-20190129075346-302c3dd5f1cc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190221075227-b4e8571b14e0/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190502175342-a43fa875dd82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190804053845-51ab0e2deafa/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201204225414-ed752295db88/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210218084038-e8e29180ff58/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ=
+golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/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/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
+golang.org/x/text v0.11.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
golang.org/x/time v0.1.0 h1:xYY+Bajn2a7VBmTM5GikTmnK8ZuX8YgnQCqZpbBNtmA=
golang.org/x/time v0.1.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
@@ -263,12 +450,15 @@ golang.org/x/tools v0.0.0-20200713011307-fd294ab11aed/go.mod h1:njjCfa9FT2d7l9Bc
golang.org/x/tools v0.0.0-20210101214203-2dba1e4ea05c/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/tools v0.3.0 h1:SrNbZl6ECOS1qFzgTdQfWXZM9XBkiA6tkFrH9YSTPHM=
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.9.3/go.mod h1:owI94Op576fPu3cIGQeHs3joujW/2Oc6MtlxbF5dfNc=
+golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58=
gonum.org/v1/gonum v0.0.0-20180816165407-929014505bf4/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo=
gonum.org/v1/gonum v0.8.2/go.mod h1:oe/vMfY3deqTw+1EZJhuvEW2iwGF1bW9wwu7XCu0+v0=
gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw=
gonum.org/v1/plot v0.0.0-20190515093506-e2840ee46a6b/go.mod h1:Wt8AAjI+ypCyYX3nZBvf6cAIx93T+c/OS2HFAYskSZc=
google.golang.org/api v0.102.0/go.mod h1:3VFl6/fzoA+qNuS1N1/VfXY4LjoXN/wzeIp7TweWwGo=
+google.golang.org/api v0.110.0/go.mod h1:7FC4Vvx1Mooxh8C5HWjzZHcavuS2f6pmJpZx60ca7iI=
+google.golang.org/api v0.114.0/go.mod h1:ifYI2ZsFK6/uGddGfAD5BMxlnkBqCmqHSDUVi45N5Yg=
google.golang.org/genproto v0.0.0-20190708153700-3bdd9d9f5532/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s=
google.golang.org/genproto v0.0.0-20190716160619-c506a9f90610/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
google.golang.org/genproto v0.0.0-20200711021454-869866162049/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
@@ -276,11 +466,29 @@ google.golang.org/genproto v0.0.0-20221024183307-1bc688fe9f3e/go.mod h1:9qHF0xnp
google.golang.org/genproto v0.0.0-20221027153422-115e99e71e1c/go.mod h1:CGI5F/G+E5bKwmfYo09AXuVN4dD894kIKUFmVbP2/Fo=
google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg=
google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd/go.mod h1:cTsE614GARnxrLsqKREzmNYJACSWWpAWdNMwnD7c2BE=
+google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4/go.mod h1:NWraEVixdDnqcqQ30jipen1STv2r/n24Wb7twVTGR4s=
+google.golang.org/genproto v0.0.0-20230320184635-7606e756e683/go.mod h1:NWraEVixdDnqcqQ30jipen1STv2r/n24Wb7twVTGR4s=
+google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1/go.mod h1:nKE/iIaLqn2bQwXBg8f1g2Ylh6r5MN5CmZvuzZCgsCU=
+google.golang.org/genproto v0.0.0-20230526161137-0005af68ea54/go.mod h1:zqTuNwFlFRsw5zIts5VnzLQxSRqh+CGOTVMlYbY0Eyk=
+google.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:xZnkP7mREFX5MORlOPEzLMr+90PPZQ2QWzrVTWfAq64=
+google.golang.org/genproto v0.0.0-20230629202037-9506855d4529/go.mod h1:xZnkP7mREFX5MORlOPEzLMr+90PPZQ2QWzrVTWfAq64=
+google.golang.org/genproto/googleapis/api v0.0.0-20230525234035-dd9d682886f9/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig=
+google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig=
+google.golang.org/genproto/googleapis/bytestream v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:ylj+BE99M198VPbBh6A8d9n3w8fChvyLK3wwBOjXBFA=
+google.golang.org/genproto/googleapis/rpc v0.0.0-20230525234030-28d5490b6b19/go.mod h1:66JfowdXAEgad5O9NnYcsNPLCPZJD++2L9X0PCMODrA=
+google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:66JfowdXAEgad5O9NnYcsNPLCPZJD++2L9X0PCMODrA=
+google.golang.org/genproto/googleapis/rpc v0.0.0-20230629202037-9506855d4529/go.mod h1:66JfowdXAEgad5O9NnYcsNPLCPZJD++2L9X0PCMODrA=
google.golang.org/grpc v1.14.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw=
google.golang.org/grpc v1.51.0/go.mod h1:wgNDFcnuBGmxLKI/qn4T+m5BtEBYXJPvibbUPsAIPww=
+google.golang.org/grpc v1.55.0/go.mod h1:iYEXKGkEBhg1PjZQvoYEVPTDkHo1/bjTnfwTeGONTY8=
+google.golang.org/grpc v1.56.0/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s=
+google.golang.org/grpc v1.56.2/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s=
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.2.0/go.mod h1:DNq5QpG7LJqD2AamLZ7zvKE0DEpVl2BSEVjFycAAjRY=
+google.golang.org/protobuf v1.28.2-0.20230222093303-bc1253ad3743/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
google.golang.org/protobuf v1.29.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
+google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
mvdan.cc/gofumpt v0.0.0-20210107193838-d24d34e18d44/go.mod h1:yXG1r1WqZVKWbVRtBWKWX9+CxGYfA51nSomhM0woR48=
mvdan.cc/gofumpt v0.1.0/go.mod h1:yXG1r1WqZVKWbVRtBWKWX9+CxGYfA51nSomhM0woR48=
pgregory.net/rapid v0.5.5/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04=
+pgregory.net/rapid v0.6.1/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04=
sourcegraph.com/sourcegraph/appdash-data v0.0.0-20151005221446-73f23eafcf67/go.mod h1:L5q+DGLGOQFpo1snNEkLOJT2d1YTW66rWNzatr3He1k=
diff --git a/provider/cmd/pulumi-resource-mssql/schema.json b/provider/cmd/pulumi-resource-mssql/schema.json
index be2971f..e507ab8 100644
--- a/provider/cmd/pulumi-resource-mssql/schema.json
+++ b/provider/cmd/pulumi-resource-mssql/schema.json
@@ -19,25 +19,27 @@
},
"language": {
"csharp": {
- "compatibility": "tfbridge20",
- "namespaces": null,
"packageReferences": {
"Pulumi": "3.*"
},
+ "compatibility": "tfbridge20",
"rootNamespace": "Pulumiverse"
},
"go": {
- "generateExtraInputTypes": true,
+ "importBasePath": "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql",
"generateResourceContainerTypes": true,
- "importBasePath": "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql"
+ "generateExtraInputTypes": true
},
"java": {
"basePackage": "com.pulumiverse",
"buildFiles": "",
- "gradleNexusPublishPluginVersion": ""
+ "gradleNexusPublishPluginVersion": "",
+ "gradleTest": ""
},
"nodejs": {
- "compatibility": "tfbridge20",
+ "packageName": "@pulumiverse/mssql",
+ "packageDescription": "A Pulumi Provider for Microsoft SQL Server and Azure SQL",
+ "readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/PGSSoft/terraform-provider-mssql)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-mssql` repo](https://github.com/pulumiverse/pulumi-mssql/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-mssql` repo](https://github.com/PGSSoft/terraform-provider-mssql/issues).",
"dependencies": {
"@pulumi/pulumi": "^3.0.0"
},
@@ -45,19 +47,17 @@
"@types/mime": "^2.0.0",
"@types/node": "^10.0.0"
},
- "disableUnionOutputTypes": true,
- "packageDescription": "A Pulumi Provider for Microsoft SQL Server and Azure SQL",
- "packageName": "@pulumiverse/mssql",
- "readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/PGSSoft/terraform-provider-mssql)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-mssql` repo](https://github.com/pulumiverse/pulumi-mssql/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-mssql` repo](https://github.com/PGSSoft/terraform-provider-mssql/issues).",
- "typescriptVersion": ""
+ "compatibility": "tfbridge20",
+ "disableUnionOutputTypes": true
},
"python": {
- "compatibility": "tfbridge20",
"packageName": "pulumiverse_mssql",
- "readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/PGSSoft/terraform-provider-mssql)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-mssql` repo](https://github.com/pulumiverse/pulumi-mssql/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-mssql` repo](https://github.com/PGSSoft/terraform-provider-mssql/issues).",
"requires": {
"pulumi": "\u003e=3.0.0,\u003c4.0.0"
- }
+ },
+ "readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/PGSSoft/terraform-provider-mssql)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-mssql` repo](https://github.com/pulumiverse/pulumi-mssql/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-mssql` repo](https://github.com/PGSSoft/terraform-provider-mssql/issues).",
+ "compatibility": "tfbridge20",
+ "pyproject": {}
}
},
"config": {
@@ -539,7 +539,7 @@
},
"resources": {
"mssql:index/azureadServicePrincipal:AzureadServicePrincipal": {
- "description": "Managed database-level user mapped to Azure AD identity (service principal or managed identity).\n\n\u003e **Note** When using this resource, Azure SQL server managed identity does not need any [AzureAD role assignments](https://docs.microsoft.com/en-us/azure/azure-sql/database/authentication-aad-service-principal?view=azuresql).\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst exampleServicePrincipal = azuread.getServicePrincipal({\n displayName: \"test-application\",\n});\nconst exampleAzureadServicePrincipal = new mssql.AzureadServicePrincipal(\"exampleAzureadServicePrincipal\", {\n name: \"example\",\n databaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n clientId: exampleServicePrincipal.then(exampleServicePrincipal =\u003e exampleServicePrincipal.applicationId),\n});\nexport const userId = exampleAzureadServicePrincipal.id;\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nexample_service_principal = azuread.get_service_principal(display_name=\"test-application\")\nexample_azuread_service_principal = mssql.AzureadServicePrincipal(\"exampleAzureadServicePrincipal\",\n name=\"example\",\n database_id=example_database.id,\n client_id=example_service_principal.application_id)\npulumi.export(\"userId\", example_azuread_service_principal.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var exampleServicePrincipal = AzureAD.GetServicePrincipal.Invoke(new()\n {\n DisplayName = \"test-application\",\n });\n\n var exampleAzureadServicePrincipal = new Mssql.AzureadServicePrincipal(\"exampleAzureadServicePrincipal\", new()\n {\n Name = \"example\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n ClientId = exampleServicePrincipal.Apply(getServicePrincipalResult =\u003e getServicePrincipalResult.ApplicationId),\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"userId\"] = exampleAzureadServicePrincipal.Id,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleServicePrincipal, err := azuread.LookupServicePrincipal(ctx, \u0026azuread.LookupServicePrincipalArgs{\n\t\t\tDisplayName: pulumi.StringRef(\"test-application\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleAzureadServicePrincipal, err := mssql.NewAzureadServicePrincipal(ctx, \"exampleAzureadServicePrincipal\", \u0026mssql.AzureadServicePrincipalArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tClientId: *pulumi.String(exampleServicePrincipal.ApplicationId),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"userId\", exampleAzureadServicePrincipal.ID())\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetServicePrincipalArgs;\nimport com.pulumi.mssql.AzureadServicePrincipal;\nimport com.pulumi.mssql.AzureadServicePrincipalArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var exampleServicePrincipal = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder()\n .displayName(\"test-application\")\n .build());\n\n var exampleAzureadServicePrincipal = new AzureadServicePrincipal(\"exampleAzureadServicePrincipal\", AzureadServicePrincipalArgs.builder() \n .name(\"example\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .clientId(exampleServicePrincipal.applyValue(getServicePrincipalResult -\u003e getServicePrincipalResult.applicationId()))\n .build());\n\n ctx.export(\"userId\", exampleAzureadServicePrincipal.id());\n }\n}\n```\n```yaml\nresources:\n exampleAzureadServicePrincipal:\n type: mssql:AzureadServicePrincipal\n properties:\n name: example\n databaseId: ${exampleDatabase.id}\n clientId: ${exampleServicePrincipal.applicationId}\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n exampleServicePrincipal:\n fn::invoke:\n Function: azuread:getServicePrincipal\n Arguments:\n displayName: test-application\noutputs:\n userId: ${exampleAzureadServicePrincipal.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003cdb_id\u003e/\u003cuser_id\u003e - can be retrieved using `SELECT CONCAT(DB_ID(), '/', principal_id) FROM sys.database_principals WHERE [name] = '\u003cusername\u003e'`\n\n```sh\n $ pulumi import mssql:index/azureadServicePrincipal:AzureadServicePrincipal example '7/5'\n```\n\n ",
+ "description": "Managed database-level user mapped to Azure AD identity (service principal or managed identity).\n\n\u003e **Note** When using this resource, Azure SQL server managed identity does not need any [AzureAD role assignments](https://docs.microsoft.com/en-us/azure/azure-sql/database/authentication-aad-service-principal?view=azuresql).\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst exampleServicePrincipal = azuread.getServicePrincipal({\n displayName: \"test-application\",\n});\nconst exampleAzureadServicePrincipal = new mssql.AzureadServicePrincipal(\"exampleAzureadServicePrincipal\", {\n databaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n clientId: exampleServicePrincipal.then(exampleServicePrincipal =\u003e exampleServicePrincipal.applicationId),\n});\nexport const userId = exampleAzureadServicePrincipal.id;\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nexample_service_principal = azuread.get_service_principal(display_name=\"test-application\")\nexample_azuread_service_principal = mssql.AzureadServicePrincipal(\"exampleAzureadServicePrincipal\",\n database_id=example_database.id,\n client_id=example_service_principal.application_id)\npulumi.export(\"userId\", example_azuread_service_principal.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var exampleServicePrincipal = AzureAD.GetServicePrincipal.Invoke(new()\n {\n DisplayName = \"test-application\",\n });\n\n var exampleAzureadServicePrincipal = new Mssql.AzureadServicePrincipal(\"exampleAzureadServicePrincipal\", new()\n {\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n ClientId = exampleServicePrincipal.Apply(getServicePrincipalResult =\u003e getServicePrincipalResult.ApplicationId),\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"userId\"] = exampleAzureadServicePrincipal.Id,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleServicePrincipal, err := azuread.LookupServicePrincipal(ctx, \u0026azuread.LookupServicePrincipalArgs{\n\t\t\tDisplayName: pulumi.StringRef(\"test-application\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleAzureadServicePrincipal, err := mssql.NewAzureadServicePrincipal(ctx, \"exampleAzureadServicePrincipal\", \u0026mssql.AzureadServicePrincipalArgs{\n\t\t\tDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tClientId: *pulumi.String(exampleServicePrincipal.ApplicationId),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"userId\", exampleAzureadServicePrincipal.ID())\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetServicePrincipalArgs;\nimport com.pulumi.mssql.AzureadServicePrincipal;\nimport com.pulumi.mssql.AzureadServicePrincipalArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var exampleServicePrincipal = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder()\n .displayName(\"test-application\")\n .build());\n\n var exampleAzureadServicePrincipal = new AzureadServicePrincipal(\"exampleAzureadServicePrincipal\", AzureadServicePrincipalArgs.builder() \n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .clientId(exampleServicePrincipal.applyValue(getServicePrincipalResult -\u003e getServicePrincipalResult.applicationId()))\n .build());\n\n ctx.export(\"userId\", exampleAzureadServicePrincipal.id());\n }\n}\n```\n```yaml\nresources:\n exampleAzureadServicePrincipal:\n type: mssql:AzureadServicePrincipal\n properties:\n databaseId: ${exampleDatabase.id}\n clientId: ${exampleServicePrincipal.applicationId}\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n exampleServicePrincipal:\n fn::invoke:\n Function: azuread:getServicePrincipal\n Arguments:\n displayName: test-application\noutputs:\n userId: ${exampleAzureadServicePrincipal.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003cdb_id\u003e/\u003cuser_id\u003e - can be retrieved using `SELECT CONCAT(DB_ID(), '/', principal_id) FROM sys.database_principals WHERE [name] = '\u003cusername\u003e'`\n\n```sh\n $ pulumi import mssql:index/azureadServicePrincipal:AzureadServicePrincipal example '7/5'\n```\n\n ",
"properties": {
"clientId": {
"type": "string",
@@ -575,8 +575,7 @@
},
"requiredInputs": [
"clientId",
- "databaseId",
- "name"
+ "databaseId"
],
"stateInputs": {
"description": "Input properties used for looking up and filtering AzureadServicePrincipal resources.\n",
@@ -598,7 +597,7 @@
}
},
"mssql:index/azureadUser:AzureadUser": {
- "description": "Managed database-level user mapped to Azure AD identity (user or group).\n\n\u003e **Note** When using this resource, Azure SQL server managed identity does not need any [AzureAD role assignments](https://docs.microsoft.com/en-us/azure/azure-sql/database/authentication-aad-service-principal?view=azuresql).\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst exampleUser = azuread.getUser({\n userPrincipalName: \"user@example.com\",\n});\nconst exampleAzureadUser = new mssql.AzureadUser(\"exampleAzureadUser\", {\n name: \"example\",\n databaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n userObjectId: exampleUser.then(exampleUser =\u003e exampleUser.objectId),\n});\nexport const userId = exampleAzureadUser.id;\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nexample_user = azuread.get_user(user_principal_name=\"user@example.com\")\nexample_azuread_user = mssql.AzureadUser(\"exampleAzureadUser\",\n name=\"example\",\n database_id=example_database.id,\n user_object_id=example_user.object_id)\npulumi.export(\"userId\", example_azuread_user.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var exampleUser = AzureAD.GetUser.Invoke(new()\n {\n UserPrincipalName = \"user@example.com\",\n });\n\n var exampleAzureadUser = new Mssql.AzureadUser(\"exampleAzureadUser\", new()\n {\n Name = \"example\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n UserObjectId = exampleUser.Apply(getUserResult =\u003e getUserResult.ObjectId),\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"userId\"] = exampleAzureadUser.Id,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleUser, err := azuread.LookupUser(ctx, \u0026azuread.LookupUserArgs{\n\t\t\tUserPrincipalName: pulumi.StringRef(\"user@example.com\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleAzureadUser, err := mssql.NewAzureadUser(ctx, \"exampleAzureadUser\", \u0026mssql.AzureadUserArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tUserObjectId: *pulumi.String(exampleUser.ObjectId),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"userId\", exampleAzureadUser.ID())\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetUserArgs;\nimport com.pulumi.mssql.AzureadUser;\nimport com.pulumi.mssql.AzureadUserArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var exampleUser = AzureadFunctions.getUser(GetUserArgs.builder()\n .userPrincipalName(\"user@example.com\")\n .build());\n\n var exampleAzureadUser = new AzureadUser(\"exampleAzureadUser\", AzureadUserArgs.builder() \n .name(\"example\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .userObjectId(exampleUser.applyValue(getUserResult -\u003e getUserResult.objectId()))\n .build());\n\n ctx.export(\"userId\", exampleAzureadUser.id());\n }\n}\n```\n```yaml\nresources:\n exampleAzureadUser:\n type: mssql:AzureadUser\n properties:\n name: example\n databaseId: ${exampleDatabase.id}\n userObjectId: ${exampleUser.objectId}\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n exampleUser:\n fn::invoke:\n Function: azuread:getUser\n Arguments:\n userPrincipalName: user@example.com\noutputs:\n userId: ${exampleAzureadUser.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003cdb_id\u003e/\u003cuser_id\u003e - can be retrieved using `SELECT CONCAT(DB_ID(), '/', principal_id) FROM sys.database_principals WHERE [name] = '\u003cusername\u003e'`\n\n```sh\n $ pulumi import mssql:index/azureadUser:AzureadUser example '7/5'\n```\n\n ",
+ "description": "Managed database-level user mapped to Azure AD identity (user or group).\n\n\u003e **Note** When using this resource, Azure SQL server managed identity does not need any [AzureAD role assignments](https://docs.microsoft.com/en-us/azure/azure-sql/database/authentication-aad-service-principal?view=azuresql).\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst exampleUser = azuread.getUser({\n userPrincipalName: \"user@example.com\",\n});\nconst exampleAzureadUser = new mssql.AzureadUser(\"exampleAzureadUser\", {\n databaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n userObjectId: exampleUser.then(exampleUser =\u003e exampleUser.objectId),\n});\nexport const userId = exampleAzureadUser.id;\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nexample_user = azuread.get_user(user_principal_name=\"user@example.com\")\nexample_azuread_user = mssql.AzureadUser(\"exampleAzureadUser\",\n database_id=example_database.id,\n user_object_id=example_user.object_id)\npulumi.export(\"userId\", example_azuread_user.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var exampleUser = AzureAD.GetUser.Invoke(new()\n {\n UserPrincipalName = \"user@example.com\",\n });\n\n var exampleAzureadUser = new Mssql.AzureadUser(\"exampleAzureadUser\", new()\n {\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n UserObjectId = exampleUser.Apply(getUserResult =\u003e getUserResult.ObjectId),\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"userId\"] = exampleAzureadUser.Id,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleUser, err := azuread.LookupUser(ctx, \u0026azuread.LookupUserArgs{\n\t\t\tUserPrincipalName: pulumi.StringRef(\"user@example.com\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleAzureadUser, err := mssql.NewAzureadUser(ctx, \"exampleAzureadUser\", \u0026mssql.AzureadUserArgs{\n\t\t\tDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tUserObjectId: *pulumi.String(exampleUser.ObjectId),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"userId\", exampleAzureadUser.ID())\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetUserArgs;\nimport com.pulumi.mssql.AzureadUser;\nimport com.pulumi.mssql.AzureadUserArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var exampleUser = AzureadFunctions.getUser(GetUserArgs.builder()\n .userPrincipalName(\"user@example.com\")\n .build());\n\n var exampleAzureadUser = new AzureadUser(\"exampleAzureadUser\", AzureadUserArgs.builder() \n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .userObjectId(exampleUser.applyValue(getUserResult -\u003e getUserResult.objectId()))\n .build());\n\n ctx.export(\"userId\", exampleAzureadUser.id());\n }\n}\n```\n```yaml\nresources:\n exampleAzureadUser:\n type: mssql:AzureadUser\n properties:\n databaseId: ${exampleDatabase.id}\n userObjectId: ${exampleUser.objectId}\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n exampleUser:\n fn::invoke:\n Function: azuread:getUser\n Arguments:\n userPrincipalName: user@example.com\noutputs:\n userId: ${exampleAzureadUser.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003cdb_id\u003e/\u003cuser_id\u003e - can be retrieved using `SELECT CONCAT(DB_ID(), '/', principal_id) FROM sys.database_principals WHERE [name] = '\u003cusername\u003e'`\n\n```sh\n $ pulumi import mssql:index/azureadUser:AzureadUser example '7/5'\n```\n\n ",
"properties": {
"databaseId": {
"type": "string",
@@ -634,7 +633,6 @@
},
"requiredInputs": [
"databaseId",
- "name",
"userObjectId"
],
"stateInputs": {
@@ -657,7 +655,7 @@
}
},
"mssql:index/database:Database": {
- "description": "Manages single database.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst example = new mssql.Database(\"example\", {\n collation: \"SQL_Latin1_General_CP1_CS_AS\",\n name: \"example\",\n});\n```\n```python\nimport pulumi\nimport pulumiverse_mssql as mssql\n\nexample = mssql.Database(\"example\",\n collation=\"SQL_Latin1_General_CP1_CS_AS\",\n name=\"example\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Mssql.Database(\"example\", new()\n {\n Collation = \"SQL_Latin1_General_CP1_CS_AS\",\n Name = \"example\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := mssql.NewDatabase(ctx, \"example\", \u0026mssql.DatabaseArgs{\n\t\t\tCollation: pulumi.String(\"SQL_Latin1_General_CP1_CS_AS\"),\n\t\t\tName: pulumi.String(\"example\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.Database;\nimport com.pulumi.mssql.DatabaseArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Database(\"example\", DatabaseArgs.builder() \n .collation(\"SQL_Latin1_General_CP1_CS_AS\")\n .name(\"example\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: mssql:Database\n properties:\n collation: SQL_Latin1_General_CP1_CS_AS\n name: example\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using database ID - can be retrieved using `SELECT DB_ID('\u003cdb_name\u003e')`\n\n```sh\n $ pulumi import mssql:index/database:Database example 12\n```\n\n ",
+ "description": "Manages single database.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst example = new mssql.Database(\"example\", {collation: \"SQL_Latin1_General_CP1_CS_AS\"});\n```\n```python\nimport pulumi\nimport pulumiverse_mssql as mssql\n\nexample = mssql.Database(\"example\", collation=\"SQL_Latin1_General_CP1_CS_AS\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Mssql.Database(\"example\", new()\n {\n Collation = \"SQL_Latin1_General_CP1_CS_AS\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := mssql.NewDatabase(ctx, \"example\", \u0026mssql.DatabaseArgs{\n\t\t\tCollation: pulumi.String(\"SQL_Latin1_General_CP1_CS_AS\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.Database;\nimport com.pulumi.mssql.DatabaseArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Database(\"example\", DatabaseArgs.builder() \n .collation(\"SQL_Latin1_General_CP1_CS_AS\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: mssql:Database\n properties:\n collation: SQL_Latin1_General_CP1_CS_AS\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using database ID - can be retrieved using `SELECT DB_ID('\u003cdb_name\u003e')`\n\n```sh\n $ pulumi import mssql:index/database:Database example 12\n```\n\n ",
"properties": {
"collation": {
"type": "string",
@@ -682,9 +680,6 @@
"description": "Database name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers).\n"
}
},
- "requiredInputs": [
- "name"
- ],
"stateInputs": {
"description": "Input properties used for looking up and filtering Database resources.\n",
"properties": {
@@ -759,7 +754,7 @@
}
},
"mssql:index/databaseRole:DatabaseRole": {
- "description": "Manages database-level role.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst owner = mssql.getSqlUser({\n name: \"example_user\",\n});\nconst exampleDatabaseRole = new mssql.DatabaseRole(\"exampleDatabaseRole\", {\n name: \"example\",\n databaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n ownerId: owner.then(owner =\u003e owner.id),\n});\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nowner = mssql.get_sql_user(name=\"example_user\")\nexample_database_role = mssql.DatabaseRole(\"exampleDatabaseRole\",\n name=\"example\",\n database_id=example_database.id,\n owner_id=owner.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var owner = Mssql.GetSqlUser.Invoke(new()\n {\n Name = \"example_user\",\n });\n\n var exampleDatabaseRole = new Mssql.DatabaseRole(\"exampleDatabaseRole\", new()\n {\n Name = \"example\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n OwnerId = owner.Apply(getSqlUserResult =\u003e getSqlUserResult.Id),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\towner, err := mssql.LookupSqlUser(ctx, \u0026mssql.LookupSqlUserArgs{\n\t\t\tName: \"example_user\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.NewDatabaseRole(ctx, \"exampleDatabaseRole\", \u0026mssql.DatabaseRoleArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tOwnerId: *pulumi.String(owner.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetSqlUserArgs;\nimport com.pulumi.mssql.DatabaseRole;\nimport com.pulumi.mssql.DatabaseRoleArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var owner = MssqlFunctions.getSqlUser(GetSqlUserArgs.builder()\n .name(\"example_user\")\n .build());\n\n var exampleDatabaseRole = new DatabaseRole(\"exampleDatabaseRole\", DatabaseRoleArgs.builder() \n .name(\"example\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .ownerId(owner.applyValue(getSqlUserResult -\u003e getSqlUserResult.id()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleDatabaseRole:\n type: mssql:DatabaseRole\n properties:\n name: example\n databaseId: ${exampleDatabase.id}\n ownerId: ${owner.id}\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n owner:\n fn::invoke:\n Function: mssql:getSqlUser\n Arguments:\n name: example_user\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003cdb_id\u003e/\u003crole_id\u003e - can be retrieved using `SELECT CONCAT(DB_ID(), '/', DATABASE_PRINCIPAL_ID('\u003crole_name\u003e'))`\n\n```sh\n $ pulumi import mssql:index/databaseRole:DatabaseRole example '7/5'\n```\n\n ",
+ "description": "Manages database-level role.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst owner = mssql.getSqlUser({\n name: \"example_user\",\n});\nconst exampleDatabaseRole = new mssql.DatabaseRole(\"exampleDatabaseRole\", {\n databaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n ownerId: owner.then(owner =\u003e owner.id),\n});\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nowner = mssql.get_sql_user(name=\"example_user\")\nexample_database_role = mssql.DatabaseRole(\"exampleDatabaseRole\",\n database_id=example_database.id,\n owner_id=owner.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var owner = Mssql.GetSqlUser.Invoke(new()\n {\n Name = \"example_user\",\n });\n\n var exampleDatabaseRole = new Mssql.DatabaseRole(\"exampleDatabaseRole\", new()\n {\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n OwnerId = owner.Apply(getSqlUserResult =\u003e getSqlUserResult.Id),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\towner, err := mssql.LookupSqlUser(ctx, \u0026mssql.LookupSqlUserArgs{\n\t\t\tName: \"example_user\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.NewDatabaseRole(ctx, \"exampleDatabaseRole\", \u0026mssql.DatabaseRoleArgs{\n\t\t\tDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tOwnerId: *pulumi.String(owner.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetSqlUserArgs;\nimport com.pulumi.mssql.DatabaseRole;\nimport com.pulumi.mssql.DatabaseRoleArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var owner = MssqlFunctions.getSqlUser(GetSqlUserArgs.builder()\n .name(\"example_user\")\n .build());\n\n var exampleDatabaseRole = new DatabaseRole(\"exampleDatabaseRole\", DatabaseRoleArgs.builder() \n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .ownerId(owner.applyValue(getSqlUserResult -\u003e getSqlUserResult.id()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleDatabaseRole:\n type: mssql:DatabaseRole\n properties:\n databaseId: ${exampleDatabase.id}\n ownerId: ${owner.id}\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n owner:\n fn::invoke:\n Function: mssql:getSqlUser\n Arguments:\n name: example_user\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003cdb_id\u003e/\u003crole_id\u003e - can be retrieved using `SELECT CONCAT(DB_ID(), '/', DATABASE_PRINCIPAL_ID('\u003crole_name\u003e'))`\n\n```sh\n $ pulumi import mssql:index/databaseRole:DatabaseRole example '7/5'\n```\n\n ",
"properties": {
"databaseId": {
"type": "string",
@@ -793,9 +788,6 @@
"description": "ID of another database role or user owning this role. Can be retrieved using `mssql_database_role` or `mssql_sql_user`.\nDefaults to ID of current user, used to authorize the Terraform provider.\n"
}
},
- "requiredInputs": [
- "name"
- ],
"stateInputs": {
"description": "Input properties used for looking up and filtering DatabaseRole resources.\n",
"properties": {
@@ -816,7 +808,7 @@
}
},
"mssql:index/databaseRoleMember:DatabaseRoleMember": {
- "description": "Manages database role membership.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst owner = exampleDatabase.then(exampleDatabase =\u003e mssql.getSqlUser({\n name: \"example_user\",\n databaseId: exampleDatabase.id,\n}));\nconst member = exampleDatabase.then(exampleDatabase =\u003e mssql.getSqlUser({\n name: \"member_user\",\n databaseId: exampleDatabase.id,\n}));\nconst exampleDatabaseRole = new mssql.DatabaseRole(\"exampleDatabaseRole\", {\n name: \"example\",\n databaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n ownerId: owner.then(owner =\u003e owner.id),\n});\nconst exampleDatabaseRoleMember = new mssql.DatabaseRoleMember(\"exampleDatabaseRoleMember\", {\n roleId: exampleDatabaseRole.id,\n memberId: member.then(member =\u003e member.id),\n});\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nowner = mssql.get_sql_user(name=\"example_user\",\n database_id=example_database.id)\nmember = mssql.get_sql_user(name=\"member_user\",\n database_id=example_database.id)\nexample_database_role = mssql.DatabaseRole(\"exampleDatabaseRole\",\n name=\"example\",\n database_id=example_database.id,\n owner_id=owner.id)\nexample_database_role_member = mssql.DatabaseRoleMember(\"exampleDatabaseRoleMember\",\n role_id=example_database_role.id,\n member_id=member.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var owner = Mssql.GetSqlUser.Invoke(new()\n {\n Name = \"example_user\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n var member = Mssql.GetSqlUser.Invoke(new()\n {\n Name = \"member_user\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n var exampleDatabaseRole = new Mssql.DatabaseRole(\"exampleDatabaseRole\", new()\n {\n Name = \"example\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n OwnerId = owner.Apply(getSqlUserResult =\u003e getSqlUserResult.Id),\n });\n\n var exampleDatabaseRoleMember = new Mssql.DatabaseRoleMember(\"exampleDatabaseRoleMember\", new()\n {\n RoleId = exampleDatabaseRole.Id,\n MemberId = member.Apply(getSqlUserResult =\u003e getSqlUserResult.Id),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\towner, err := mssql.LookupSqlUser(ctx, \u0026mssql.LookupSqlUserArgs{\n\t\t\tName: \"example_user\",\n\t\t\tDatabaseId: pulumi.StringRef(exampleDatabase.Id),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tmember, err := mssql.LookupSqlUser(ctx, \u0026mssql.LookupSqlUserArgs{\n\t\t\tName: \"member_user\",\n\t\t\tDatabaseId: pulumi.StringRef(exampleDatabase.Id),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleDatabaseRole, err := mssql.NewDatabaseRole(ctx, \"exampleDatabaseRole\", \u0026mssql.DatabaseRoleArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tOwnerId: *pulumi.String(owner.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.NewDatabaseRoleMember(ctx, \"exampleDatabaseRoleMember\", \u0026mssql.DatabaseRoleMemberArgs{\n\t\t\tRoleId: exampleDatabaseRole.ID(),\n\t\t\tMemberId: *pulumi.String(member.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetSqlUserArgs;\nimport com.pulumi.mssql.DatabaseRole;\nimport com.pulumi.mssql.DatabaseRoleArgs;\nimport com.pulumi.mssql.DatabaseRoleMember;\nimport com.pulumi.mssql.DatabaseRoleMemberArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var owner = MssqlFunctions.getSqlUser(GetSqlUserArgs.builder()\n .name(\"example_user\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n final var member = MssqlFunctions.getSqlUser(GetSqlUserArgs.builder()\n .name(\"member_user\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n var exampleDatabaseRole = new DatabaseRole(\"exampleDatabaseRole\", DatabaseRoleArgs.builder() \n .name(\"example\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .ownerId(owner.applyValue(getSqlUserResult -\u003e getSqlUserResult.id()))\n .build());\n\n var exampleDatabaseRoleMember = new DatabaseRoleMember(\"exampleDatabaseRoleMember\", DatabaseRoleMemberArgs.builder() \n .roleId(exampleDatabaseRole.id())\n .memberId(member.applyValue(getSqlUserResult -\u003e getSqlUserResult.id()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleDatabaseRole:\n type: mssql:DatabaseRole\n properties:\n name: example\n databaseId: ${exampleDatabase.id}\n ownerId: ${owner.id}\n exampleDatabaseRoleMember:\n type: mssql:DatabaseRoleMember\n properties:\n roleId: ${exampleDatabaseRole.id}\n memberId: ${member.id}\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n owner:\n fn::invoke:\n Function: mssql:getSqlUser\n Arguments:\n name: example_user\n databaseId: ${exampleDatabase.id}\n member:\n fn::invoke:\n Function: mssql:getSqlUser\n Arguments:\n name: member_user\n databaseId: ${exampleDatabase.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003cdb_id\u003e/\u003crole_id\u003e - can be retrieved using `SELECT CONCAT(DB_ID(), '/', DATABASE_PRINCIPAL_ID('\u003crole_name\u003e'), '/', DATABASE_PRINCIPAL_ID('\u003cmember_name'))`\n\n```sh\n $ pulumi import mssql:index/databaseRoleMember:DatabaseRoleMember example '7/5/9'\n```\n\n ",
+ "description": "Manages database role membership.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst owner = exampleDatabase.then(exampleDatabase =\u003e mssql.getSqlUser({\n name: \"example_user\",\n databaseId: exampleDatabase.id,\n}));\nconst member = exampleDatabase.then(exampleDatabase =\u003e mssql.getSqlUser({\n name: \"member_user\",\n databaseId: exampleDatabase.id,\n}));\nconst exampleDatabaseRole = new mssql.DatabaseRole(\"exampleDatabaseRole\", {\n databaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n ownerId: owner.then(owner =\u003e owner.id),\n});\nconst exampleDatabaseRoleMember = new mssql.DatabaseRoleMember(\"exampleDatabaseRoleMember\", {\n roleId: exampleDatabaseRole.id,\n memberId: member.then(member =\u003e member.id),\n});\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nowner = mssql.get_sql_user(name=\"example_user\",\n database_id=example_database.id)\nmember = mssql.get_sql_user(name=\"member_user\",\n database_id=example_database.id)\nexample_database_role = mssql.DatabaseRole(\"exampleDatabaseRole\",\n database_id=example_database.id,\n owner_id=owner.id)\nexample_database_role_member = mssql.DatabaseRoleMember(\"exampleDatabaseRoleMember\",\n role_id=example_database_role.id,\n member_id=member.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var owner = Mssql.GetSqlUser.Invoke(new()\n {\n Name = \"example_user\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n var member = Mssql.GetSqlUser.Invoke(new()\n {\n Name = \"member_user\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n });\n\n var exampleDatabaseRole = new Mssql.DatabaseRole(\"exampleDatabaseRole\", new()\n {\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n OwnerId = owner.Apply(getSqlUserResult =\u003e getSqlUserResult.Id),\n });\n\n var exampleDatabaseRoleMember = new Mssql.DatabaseRoleMember(\"exampleDatabaseRoleMember\", new()\n {\n RoleId = exampleDatabaseRole.Id,\n MemberId = member.Apply(getSqlUserResult =\u003e getSqlUserResult.Id),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\towner, err := mssql.LookupSqlUser(ctx, \u0026mssql.LookupSqlUserArgs{\n\t\t\tName: \"example_user\",\n\t\t\tDatabaseId: pulumi.StringRef(exampleDatabase.Id),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tmember, err := mssql.LookupSqlUser(ctx, \u0026mssql.LookupSqlUserArgs{\n\t\t\tName: \"member_user\",\n\t\t\tDatabaseId: pulumi.StringRef(exampleDatabase.Id),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleDatabaseRole, err := mssql.NewDatabaseRole(ctx, \"exampleDatabaseRole\", \u0026mssql.DatabaseRoleArgs{\n\t\t\tDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tOwnerId: *pulumi.String(owner.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.NewDatabaseRoleMember(ctx, \"exampleDatabaseRoleMember\", \u0026mssql.DatabaseRoleMemberArgs{\n\t\t\tRoleId: exampleDatabaseRole.ID(),\n\t\t\tMemberId: *pulumi.String(member.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetSqlUserArgs;\nimport com.pulumi.mssql.DatabaseRole;\nimport com.pulumi.mssql.DatabaseRoleArgs;\nimport com.pulumi.mssql.DatabaseRoleMember;\nimport com.pulumi.mssql.DatabaseRoleMemberArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var owner = MssqlFunctions.getSqlUser(GetSqlUserArgs.builder()\n .name(\"example_user\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n final var member = MssqlFunctions.getSqlUser(GetSqlUserArgs.builder()\n .name(\"member_user\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .build());\n\n var exampleDatabaseRole = new DatabaseRole(\"exampleDatabaseRole\", DatabaseRoleArgs.builder() \n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .ownerId(owner.applyValue(getSqlUserResult -\u003e getSqlUserResult.id()))\n .build());\n\n var exampleDatabaseRoleMember = new DatabaseRoleMember(\"exampleDatabaseRoleMember\", DatabaseRoleMemberArgs.builder() \n .roleId(exampleDatabaseRole.id())\n .memberId(member.applyValue(getSqlUserResult -\u003e getSqlUserResult.id()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleDatabaseRole:\n type: mssql:DatabaseRole\n properties:\n databaseId: ${exampleDatabase.id}\n ownerId: ${owner.id}\n exampleDatabaseRoleMember:\n type: mssql:DatabaseRoleMember\n properties:\n roleId: ${exampleDatabaseRole.id}\n memberId: ${member.id}\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n owner:\n fn::invoke:\n Function: mssql:getSqlUser\n Arguments:\n name: example_user\n databaseId: ${exampleDatabase.id}\n member:\n fn::invoke:\n Function: mssql:getSqlUser\n Arguments:\n name: member_user\n databaseId: ${exampleDatabase.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003cdb_id\u003e/\u003crole_id\u003e - can be retrieved using `SELECT CONCAT(DB_ID(), '/', DATABASE_PRINCIPAL_ID('\u003crole_name\u003e'), '/', DATABASE_PRINCIPAL_ID('\u003cmember_name'))`\n\n```sh\n $ pulumi import mssql:index/databaseRoleMember:DatabaseRoleMember example '7/5/9'\n```\n\n ",
"properties": {
"memberId": {
"type": "string",
@@ -861,7 +853,7 @@
}
},
"mssql:index/schema:Schema": {
- "description": "Manages single DB schema.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst owner = mssql.getSqlUser({\n name: \"example_user\",\n});\nconst exampleSchema = new mssql.Schema(\"exampleSchema\", {\n name: \"example\",\n databaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n ownerId: owner.then(owner =\u003e owner.id),\n});\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nowner = mssql.get_sql_user(name=\"example_user\")\nexample_schema = mssql.Schema(\"exampleSchema\",\n name=\"example\",\n database_id=example_database.id,\n owner_id=owner.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var owner = Mssql.GetSqlUser.Invoke(new()\n {\n Name = \"example_user\",\n });\n\n var exampleSchema = new Mssql.Schema(\"exampleSchema\", new()\n {\n Name = \"example\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n OwnerId = owner.Apply(getSqlUserResult =\u003e getSqlUserResult.Id),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\towner, err := mssql.LookupSqlUser(ctx, \u0026mssql.LookupSqlUserArgs{\n\t\t\tName: \"example_user\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.NewSchema(ctx, \"exampleSchema\", \u0026mssql.SchemaArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tOwnerId: *pulumi.String(owner.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetSqlUserArgs;\nimport com.pulumi.mssql.Schema;\nimport com.pulumi.mssql.SchemaArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var owner = MssqlFunctions.getSqlUser(GetSqlUserArgs.builder()\n .name(\"example_user\")\n .build());\n\n var exampleSchema = new Schema(\"exampleSchema\", SchemaArgs.builder() \n .name(\"example\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .ownerId(owner.applyValue(getSqlUserResult -\u003e getSqlUserResult.id()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleSchema:\n type: mssql:Schema\n properties:\n name: example\n databaseId: ${exampleDatabase.id}\n ownerId: ${owner.id}\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n owner:\n fn::invoke:\n Function: mssql:getSqlUser\n Arguments:\n name: example_user\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003cdb_id\u003e/\u003cschema_id\u003e - can be retrieved using `SELECT CONCAT(DB_ID(), '/', SCHEMA_ID('\u003cschema_name\u003e'))`\n\n```sh\n $ pulumi import mssql:index/schema:Schema example '7/5'\n```\n\n ",
+ "description": "Manages single DB schema.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst owner = mssql.getSqlUser({\n name: \"example_user\",\n});\nconst exampleSchema = new mssql.Schema(\"exampleSchema\", {\n databaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n ownerId: owner.then(owner =\u003e owner.id),\n});\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nowner = mssql.get_sql_user(name=\"example_user\")\nexample_schema = mssql.Schema(\"exampleSchema\",\n database_id=example_database.id,\n owner_id=owner.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var owner = Mssql.GetSqlUser.Invoke(new()\n {\n Name = \"example_user\",\n });\n\n var exampleSchema = new Mssql.Schema(\"exampleSchema\", new()\n {\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n OwnerId = owner.Apply(getSqlUserResult =\u003e getSqlUserResult.Id),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\towner, err := mssql.LookupSqlUser(ctx, \u0026mssql.LookupSqlUserArgs{\n\t\t\tName: \"example_user\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.NewSchema(ctx, \"exampleSchema\", \u0026mssql.SchemaArgs{\n\t\t\tDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tOwnerId: *pulumi.String(owner.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.inputs.GetSqlUserArgs;\nimport com.pulumi.mssql.Schema;\nimport com.pulumi.mssql.SchemaArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n final var owner = MssqlFunctions.getSqlUser(GetSqlUserArgs.builder()\n .name(\"example_user\")\n .build());\n\n var exampleSchema = new Schema(\"exampleSchema\", SchemaArgs.builder() \n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .ownerId(owner.applyValue(getSqlUserResult -\u003e getSqlUserResult.id()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleSchema:\n type: mssql:Schema\n properties:\n databaseId: ${exampleDatabase.id}\n ownerId: ${owner.id}\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\n owner:\n fn::invoke:\n Function: mssql:getSqlUser\n Arguments:\n name: example_user\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003cdb_id\u003e/\u003cschema_id\u003e - can be retrieved using `SELECT CONCAT(DB_ID(), '/', SCHEMA_ID('\u003cschema_name\u003e'))`\n\n```sh\n $ pulumi import mssql:index/schema:Schema example '7/5'\n```\n\n ",
"properties": {
"databaseId": {
"type": "string",
@@ -895,9 +887,6 @@
"description": "ID of database role or user owning this schema. Can be retrieved using `mssql.DatabaseRole`, `mssql.SqlUser`, `mssql.AzureadUser` or `mssql.AzureadServicePrincipal`\n"
}
},
- "requiredInputs": [
- "name"
- ],
"stateInputs": {
"description": "Input properties used for looking up and filtering Schema resources.\n",
"properties": {
@@ -1154,7 +1143,7 @@
}
},
"mssql:index/serverRole:ServerRole": {
- "description": "Manages server-level role.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst owner = new mssql.ServerRole(\"owner\", {name: \"owner_role\"});\nconst example = new mssql.ServerRole(\"example\", {\n name: \"example\",\n ownerId: owner.id,\n});\n```\n```python\nimport pulumi\nimport pulumiverse_mssql as mssql\n\nowner = mssql.ServerRole(\"owner\", name=\"owner_role\")\nexample = mssql.ServerRole(\"example\",\n name=\"example\",\n owner_id=owner.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var owner = new Mssql.ServerRole(\"owner\", new()\n {\n Name = \"owner_role\",\n });\n\n var example = new Mssql.ServerRole(\"example\", new()\n {\n Name = \"example\",\n OwnerId = owner.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\towner, err := mssql.NewServerRole(ctx, \"owner\", \u0026mssql.ServerRoleArgs{\n\t\t\tName: pulumi.String(\"owner_role\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.NewServerRole(ctx, \"example\", \u0026mssql.ServerRoleArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tOwnerId: owner.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.ServerRole;\nimport com.pulumi.mssql.ServerRoleArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var owner = new ServerRole(\"owner\", ServerRoleArgs.builder() \n .name(\"owner_role\")\n .build());\n\n var example = new ServerRole(\"example\", ServerRoleArgs.builder() \n .name(\"example\")\n .ownerId(owner.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n owner:\n type: mssql:ServerRole\n properties:\n name: owner_role\n example:\n type: mssql:ServerRole\n properties:\n name: example\n ownerId: ${owner.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003crole_id\u003e - can be retrieved using `SELECT [principal_id] FROM sys.server_principals WHERE [name]='\u003crole_name\u003e'`\n\n```sh\n $ pulumi import mssql:index/serverRole:ServerRole example 7\n```\n\n ",
+ "description": "Manages server-level role.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst owner = new mssql.ServerRole(\"owner\", {});\nconst example = new mssql.ServerRole(\"example\", {ownerId: owner.id});\n```\n```python\nimport pulumi\nimport pulumiverse_mssql as mssql\n\nowner = mssql.ServerRole(\"owner\")\nexample = mssql.ServerRole(\"example\", owner_id=owner.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var owner = new Mssql.ServerRole(\"owner\");\n\n var example = new Mssql.ServerRole(\"example\", new()\n {\n OwnerId = owner.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\towner, err := mssql.NewServerRole(ctx, \"owner\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.NewServerRole(ctx, \"example\", \u0026mssql.ServerRoleArgs{\n\t\t\tOwnerId: owner.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.ServerRole;\nimport com.pulumi.mssql.ServerRoleArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var owner = new ServerRole(\"owner\");\n\n var example = new ServerRole(\"example\", ServerRoleArgs.builder() \n .ownerId(owner.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n owner:\n type: mssql:ServerRole\n example:\n type: mssql:ServerRole\n properties:\n ownerId: ${owner.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003crole_id\u003e - can be retrieved using `SELECT [principal_id] FROM sys.server_principals WHERE [name]='\u003crole_name\u003e'`\n\n```sh\n $ pulumi import mssql:index/serverRole:ServerRole example 7\n```\n\n ",
"properties": {
"name": {
"type": "string",
@@ -1179,9 +1168,6 @@
"description": "ID of another server role or login owning this role. Can be retrieved using `mssql.ServerRole` or `mssql.SqlLogin`.\n"
}
},
- "requiredInputs": [
- "name"
- ],
"stateInputs": {
"description": "Input properties used for looking up and filtering ServerRole resources.\n",
"properties": {
@@ -1198,7 +1184,7 @@
}
},
"mssql:index/serverRoleMember:ServerRoleMember": {
- "description": "Manages server role membership.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst member = mssql.getSqlLogin({\n name: \"member_login\",\n});\nconst exampleServerRole = new mssql.ServerRole(\"exampleServerRole\", {name: \"example\"});\nconst exampleServerRoleMember = new mssql.ServerRoleMember(\"exampleServerRoleMember\", {\n roleId: exampleServerRole.id,\n memberId: member.then(member =\u003e member.id),\n});\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nmember = mssql.get_sql_login(name=\"member_login\")\nexample_server_role = mssql.ServerRole(\"exampleServerRole\", name=\"example\")\nexample_server_role_member = mssql.ServerRoleMember(\"exampleServerRoleMember\",\n role_id=example_server_role.id,\n member_id=member.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var member = Mssql.GetSqlLogin.Invoke(new()\n {\n Name = \"member_login\",\n });\n\n var exampleServerRole = new Mssql.ServerRole(\"exampleServerRole\", new()\n {\n Name = \"example\",\n });\n\n var exampleServerRoleMember = new Mssql.ServerRoleMember(\"exampleServerRoleMember\", new()\n {\n RoleId = exampleServerRole.Id,\n MemberId = member.Apply(getSqlLoginResult =\u003e getSqlLoginResult.Id),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tmember, err := mssql.LookupSqlLogin(ctx, \u0026mssql.LookupSqlLoginArgs{\n\t\t\tName: \"member_login\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleServerRole, err := mssql.NewServerRole(ctx, \"exampleServerRole\", \u0026mssql.ServerRoleArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.NewServerRoleMember(ctx, \"exampleServerRoleMember\", \u0026mssql.ServerRoleMemberArgs{\n\t\t\tRoleId: exampleServerRole.ID(),\n\t\t\tMemberId: *pulumi.String(member.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetSqlLoginArgs;\nimport com.pulumi.mssql.ServerRole;\nimport com.pulumi.mssql.ServerRoleArgs;\nimport com.pulumi.mssql.ServerRoleMember;\nimport com.pulumi.mssql.ServerRoleMemberArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var member = MssqlFunctions.getSqlLogin(GetSqlLoginArgs.builder()\n .name(\"member_login\")\n .build());\n\n var exampleServerRole = new ServerRole(\"exampleServerRole\", ServerRoleArgs.builder() \n .name(\"example\")\n .build());\n\n var exampleServerRoleMember = new ServerRoleMember(\"exampleServerRoleMember\", ServerRoleMemberArgs.builder() \n .roleId(exampleServerRole.id())\n .memberId(member.applyValue(getSqlLoginResult -\u003e getSqlLoginResult.id()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleServerRole:\n type: mssql:ServerRole\n properties:\n name: example\n exampleServerRoleMember:\n type: mssql:ServerRoleMember\n properties:\n roleId: ${exampleServerRole.id}\n memberId: ${member.id}\nvariables:\n member:\n fn::invoke:\n Function: mssql:getSqlLogin\n Arguments:\n name: member_login\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003crole_id\u003e/\u003cmember_id\u003e - can be retrieved using `sys.server_principals` view\n\n```sh\n $ pulumi import mssql:index/serverRoleMember:ServerRoleMember example '7/5'\n```\n\n ",
+ "description": "Manages server role membership.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst member = mssql.getSqlLogin({\n name: \"member_login\",\n});\nconst exampleServerRole = new mssql.ServerRole(\"exampleServerRole\", {});\nconst exampleServerRoleMember = new mssql.ServerRoleMember(\"exampleServerRoleMember\", {\n roleId: exampleServerRole.id,\n memberId: member.then(member =\u003e member.id),\n});\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nmember = mssql.get_sql_login(name=\"member_login\")\nexample_server_role = mssql.ServerRole(\"exampleServerRole\")\nexample_server_role_member = mssql.ServerRoleMember(\"exampleServerRoleMember\",\n role_id=example_server_role.id,\n member_id=member.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var member = Mssql.GetSqlLogin.Invoke(new()\n {\n Name = \"member_login\",\n });\n\n var exampleServerRole = new Mssql.ServerRole(\"exampleServerRole\");\n\n var exampleServerRoleMember = new Mssql.ServerRoleMember(\"exampleServerRoleMember\", new()\n {\n RoleId = exampleServerRole.Id,\n MemberId = member.Apply(getSqlLoginResult =\u003e getSqlLoginResult.Id),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tmember, err := mssql.LookupSqlLogin(ctx, \u0026mssql.LookupSqlLoginArgs{\n\t\t\tName: \"member_login\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleServerRole, err := mssql.NewServerRole(ctx, \"exampleServerRole\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mssql.NewServerRoleMember(ctx, \"exampleServerRoleMember\", \u0026mssql.ServerRoleMemberArgs{\n\t\t\tRoleId: exampleServerRole.ID(),\n\t\t\tMemberId: *pulumi.String(member.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetSqlLoginArgs;\nimport com.pulumi.mssql.ServerRole;\nimport com.pulumi.mssql.ServerRoleMember;\nimport com.pulumi.mssql.ServerRoleMemberArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var member = MssqlFunctions.getSqlLogin(GetSqlLoginArgs.builder()\n .name(\"member_login\")\n .build());\n\n var exampleServerRole = new ServerRole(\"exampleServerRole\");\n\n var exampleServerRoleMember = new ServerRoleMember(\"exampleServerRoleMember\", ServerRoleMemberArgs.builder() \n .roleId(exampleServerRole.id())\n .memberId(member.applyValue(getSqlLoginResult -\u003e getSqlLoginResult.id()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleServerRole:\n type: mssql:ServerRole\n exampleServerRoleMember:\n type: mssql:ServerRoleMember\n properties:\n roleId: ${exampleServerRole.id}\n memberId: ${member.id}\nvariables:\n member:\n fn::invoke:\n Function: mssql:getSqlLogin\n Arguments:\n name: member_login\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003crole_id\u003e/\u003cmember_id\u003e - can be retrieved using `sys.server_principals` view\n\n```sh\n $ pulumi import mssql:index/serverRoleMember:ServerRoleMember example '7/5'\n```\n\n ",
"properties": {
"memberId": {
"type": "string",
@@ -1243,7 +1229,7 @@
}
},
"mssql:index/sqlLogin:SqlLogin": {
- "description": "Manages single login.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst exampleSqlLogin = new mssql.SqlLogin(\"exampleSqlLogin\", {\n name: \"example\",\n password: \"Str0ngPa$$word12\",\n mustChangePassword: true,\n defaultDatabaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n defaultLanguage: \"english\",\n checkPasswordExpiration: true,\n checkPasswordPolicy: true,\n});\nexport const loginId = exampleSqlLogin.id;\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nexample_sql_login = mssql.SqlLogin(\"exampleSqlLogin\",\n name=\"example\",\n password=\"Str0ngPa$$word12\",\n must_change_password=True,\n default_database_id=example_database.id,\n default_language=\"english\",\n check_password_expiration=True,\n check_password_policy=True)\npulumi.export(\"loginId\", example_sql_login.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var exampleSqlLogin = new Mssql.SqlLogin(\"exampleSqlLogin\", new()\n {\n Name = \"example\",\n Password = \"Str0ngPa$$word12\",\n MustChangePassword = true,\n DefaultDatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n DefaultLanguage = \"english\",\n CheckPasswordExpiration = true,\n CheckPasswordPolicy = true,\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"loginId\"] = exampleSqlLogin.Id,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSqlLogin, err := mssql.NewSqlLogin(ctx, \"exampleSqlLogin\", \u0026mssql.SqlLoginArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tPassword: pulumi.String(\"Str0ngPa$$word12\"),\n\t\t\tMustChangePassword: pulumi.Bool(true),\n\t\t\tDefaultDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tDefaultLanguage: pulumi.String(\"english\"),\n\t\t\tCheckPasswordExpiration: pulumi.Bool(true),\n\t\t\tCheckPasswordPolicy: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"loginId\", exampleSqlLogin.ID())\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.SqlLogin;\nimport com.pulumi.mssql.SqlLoginArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n var exampleSqlLogin = new SqlLogin(\"exampleSqlLogin\", SqlLoginArgs.builder() \n .name(\"example\")\n .password(\"Str0ngPa$$word12\")\n .mustChangePassword(true)\n .defaultDatabaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .defaultLanguage(\"english\")\n .checkPasswordExpiration(true)\n .checkPasswordPolicy(true)\n .build());\n\n ctx.export(\"loginId\", exampleSqlLogin.id());\n }\n}\n```\n```yaml\nresources:\n exampleSqlLogin:\n type: mssql:SqlLogin\n properties:\n name: example\n password: Str0ngPa$$word12\n mustChangePassword: true\n defaultDatabaseId: ${exampleDatabase.id}\n defaultLanguage: english\n checkPasswordExpiration: true\n checkPasswordPolicy: true\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\noutputs:\n loginId: ${exampleSqlLogin.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using login ID - can be retrieved using `SELECT SUSER_SID('\u003clogin_name\u003e')`\n\n```sh\n $ pulumi import mssql:index/sqlLogin:SqlLogin example 0x27578D8516843E4094EFA2CEED085C82\n```\n\n ",
+ "description": "Manages single login.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst exampleSqlLogin = new mssql.SqlLogin(\"exampleSqlLogin\", {\n password: \"Str0ngPa$$word12\",\n mustChangePassword: true,\n defaultDatabaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n defaultLanguage: \"english\",\n checkPasswordExpiration: true,\n checkPasswordPolicy: true,\n});\nexport const loginId = exampleSqlLogin.id;\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nexample_sql_login = mssql.SqlLogin(\"exampleSqlLogin\",\n password=\"Str0ngPa$$word12\",\n must_change_password=True,\n default_database_id=example_database.id,\n default_language=\"english\",\n check_password_expiration=True,\n check_password_policy=True)\npulumi.export(\"loginId\", example_sql_login.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var exampleSqlLogin = new Mssql.SqlLogin(\"exampleSqlLogin\", new()\n {\n Password = \"Str0ngPa$$word12\",\n MustChangePassword = true,\n DefaultDatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n DefaultLanguage = \"english\",\n CheckPasswordExpiration = true,\n CheckPasswordPolicy = true,\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"loginId\"] = exampleSqlLogin.Id,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSqlLogin, err := mssql.NewSqlLogin(ctx, \"exampleSqlLogin\", \u0026mssql.SqlLoginArgs{\n\t\t\tPassword: pulumi.String(\"Str0ngPa$$word12\"),\n\t\t\tMustChangePassword: pulumi.Bool(true),\n\t\t\tDefaultDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tDefaultLanguage: pulumi.String(\"english\"),\n\t\t\tCheckPasswordExpiration: pulumi.Bool(true),\n\t\t\tCheckPasswordPolicy: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"loginId\", exampleSqlLogin.ID())\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.SqlLogin;\nimport com.pulumi.mssql.SqlLoginArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n var exampleSqlLogin = new SqlLogin(\"exampleSqlLogin\", SqlLoginArgs.builder() \n .password(\"Str0ngPa$$word12\")\n .mustChangePassword(true)\n .defaultDatabaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .defaultLanguage(\"english\")\n .checkPasswordExpiration(true)\n .checkPasswordPolicy(true)\n .build());\n\n ctx.export(\"loginId\", exampleSqlLogin.id());\n }\n}\n```\n```yaml\nresources:\n exampleSqlLogin:\n type: mssql:SqlLogin\n properties:\n password: Str0ngPa$$word12\n mustChangePassword: true\n defaultDatabaseId: ${exampleDatabase.id}\n defaultLanguage: english\n checkPasswordExpiration: true\n checkPasswordPolicy: true\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\noutputs:\n loginId: ${exampleSqlLogin.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using login ID - can be retrieved using `SELECT SUSER_SID('\u003clogin_name\u003e')`\n\n```sh\n $ pulumi import mssql:index/sqlLogin:SqlLogin example 0x27578D8516843E4094EFA2CEED085C82\n```\n\n ",
"properties": {
"checkPasswordExpiration": {
"type": "boolean",
@@ -1316,7 +1302,6 @@
}
},
"requiredInputs": [
- "name",
"password"
],
"stateInputs": {
@@ -1360,7 +1345,7 @@
}
},
"mssql:index/sqlUser:SqlUser": {
- "description": "Manages database-level user, based on SQL login.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst exampleSqlLogin = new mssql.SqlLogin(\"exampleSqlLogin\", {\n name: \"example\",\n password: \"Str0ngPa$$word12\",\n mustChangePassword: true,\n defaultDatabaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n defaultLanguage: \"english\",\n checkPasswordExpiration: true,\n checkPasswordPolicy: true,\n});\nconst exampleSqlUser = new mssql.SqlUser(\"exampleSqlUser\", {\n name: \"example\",\n databaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n loginId: exampleSqlLogin.id,\n});\nexport const userId = exampleSqlUser.id;\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nexample_sql_login = mssql.SqlLogin(\"exampleSqlLogin\",\n name=\"example\",\n password=\"Str0ngPa$$word12\",\n must_change_password=True,\n default_database_id=example_database.id,\n default_language=\"english\",\n check_password_expiration=True,\n check_password_policy=True)\nexample_sql_user = mssql.SqlUser(\"exampleSqlUser\",\n name=\"example\",\n database_id=example_database.id,\n login_id=example_sql_login.id)\npulumi.export(\"userId\", example_sql_user.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var exampleSqlLogin = new Mssql.SqlLogin(\"exampleSqlLogin\", new()\n {\n Name = \"example\",\n Password = \"Str0ngPa$$word12\",\n MustChangePassword = true,\n DefaultDatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n DefaultLanguage = \"english\",\n CheckPasswordExpiration = true,\n CheckPasswordPolicy = true,\n });\n\n var exampleSqlUser = new Mssql.SqlUser(\"exampleSqlUser\", new()\n {\n Name = \"example\",\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n LoginId = exampleSqlLogin.Id,\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"userId\"] = exampleSqlUser.Id,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSqlLogin, err := mssql.NewSqlLogin(ctx, \"exampleSqlLogin\", \u0026mssql.SqlLoginArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tPassword: pulumi.String(\"Str0ngPa$$word12\"),\n\t\t\tMustChangePassword: pulumi.Bool(true),\n\t\t\tDefaultDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tDefaultLanguage: pulumi.String(\"english\"),\n\t\t\tCheckPasswordExpiration: pulumi.Bool(true),\n\t\t\tCheckPasswordPolicy: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSqlUser, err := mssql.NewSqlUser(ctx, \"exampleSqlUser\", \u0026mssql.SqlUserArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tLoginId: exampleSqlLogin.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"userId\", exampleSqlUser.ID())\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.SqlLogin;\nimport com.pulumi.mssql.SqlLoginArgs;\nimport com.pulumi.mssql.SqlUser;\nimport com.pulumi.mssql.SqlUserArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n var exampleSqlLogin = new SqlLogin(\"exampleSqlLogin\", SqlLoginArgs.builder() \n .name(\"example\")\n .password(\"Str0ngPa$$word12\")\n .mustChangePassword(true)\n .defaultDatabaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .defaultLanguage(\"english\")\n .checkPasswordExpiration(true)\n .checkPasswordPolicy(true)\n .build());\n\n var exampleSqlUser = new SqlUser(\"exampleSqlUser\", SqlUserArgs.builder() \n .name(\"example\")\n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .loginId(exampleSqlLogin.id())\n .build());\n\n ctx.export(\"userId\", exampleSqlUser.id());\n }\n}\n```\n```yaml\nresources:\n exampleSqlLogin:\n type: mssql:SqlLogin\n properties:\n name: example\n password: Str0ngPa$$word12\n mustChangePassword: true\n defaultDatabaseId: ${exampleDatabase.id}\n defaultLanguage: english\n checkPasswordExpiration: true\n checkPasswordPolicy: true\n exampleSqlUser:\n type: mssql:SqlUser\n properties:\n name: example\n databaseId: ${exampleDatabase.id}\n loginId: ${exampleSqlLogin.id}\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\noutputs:\n userId: ${exampleSqlUser.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003cdb_id\u003e/\u003cuser_id\u003e - can be retrieved using `SELECT CONCAT(DB_ID(), '/', DATABASE_PRINCIPAL_ID('\u003cusername\u003e'))`\n\n```sh\n $ pulumi import mssql:index/sqlUser:SqlUser example '7/5'\n```\n\n ",
+ "description": "Manages database-level user, based on SQL login.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mssql from \"@pulumi/mssql\";\nimport * as mssql from \"@pulumiverse/mssql\";\n\nconst exampleDatabase = mssql.getDatabase({\n name: \"example\",\n});\nconst exampleSqlLogin = new mssql.SqlLogin(\"exampleSqlLogin\", {\n password: \"Str0ngPa$$word12\",\n mustChangePassword: true,\n defaultDatabaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n defaultLanguage: \"english\",\n checkPasswordExpiration: true,\n checkPasswordPolicy: true,\n});\nconst exampleSqlUser = new mssql.SqlUser(\"exampleSqlUser\", {\n databaseId: exampleDatabase.then(exampleDatabase =\u003e exampleDatabase.id),\n loginId: exampleSqlLogin.id,\n});\nexport const userId = exampleSqlUser.id;\n```\n```python\nimport pulumi\nimport pulumi_mssql as mssql\nimport pulumiverse_mssql as mssql\n\nexample_database = mssql.get_database(name=\"example\")\nexample_sql_login = mssql.SqlLogin(\"exampleSqlLogin\",\n password=\"Str0ngPa$$word12\",\n must_change_password=True,\n default_database_id=example_database.id,\n default_language=\"english\",\n check_password_expiration=True,\n check_password_policy=True)\nexample_sql_user = mssql.SqlUser(\"exampleSqlUser\",\n database_id=example_database.id,\n login_id=example_sql_login.id)\npulumi.export(\"userId\", example_sql_user.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mssql = Pulumi.Mssql;\nusing Mssql = Pulumiverse.Mssql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDatabase = Mssql.GetDatabase.Invoke(new()\n {\n Name = \"example\",\n });\n\n var exampleSqlLogin = new Mssql.SqlLogin(\"exampleSqlLogin\", new()\n {\n Password = \"Str0ngPa$$word12\",\n MustChangePassword = true,\n DefaultDatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n DefaultLanguage = \"english\",\n CheckPasswordExpiration = true,\n CheckPasswordPolicy = true,\n });\n\n var exampleSqlUser = new Mssql.SqlUser(\"exampleSqlUser\", new()\n {\n DatabaseId = exampleDatabase.Apply(getDatabaseResult =\u003e getDatabaseResult.Id),\n LoginId = exampleSqlLogin.Id,\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"userId\"] = exampleSqlUser.Id,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-mssql/sdk/go/mssql\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDatabase, err := mssql.LookupDatabase(ctx, \u0026mssql.LookupDatabaseArgs{\n\t\t\tName: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSqlLogin, err := mssql.NewSqlLogin(ctx, \"exampleSqlLogin\", \u0026mssql.SqlLoginArgs{\n\t\t\tPassword: pulumi.String(\"Str0ngPa$$word12\"),\n\t\t\tMustChangePassword: pulumi.Bool(true),\n\t\t\tDefaultDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tDefaultLanguage: pulumi.String(\"english\"),\n\t\t\tCheckPasswordExpiration: pulumi.Bool(true),\n\t\t\tCheckPasswordPolicy: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSqlUser, err := mssql.NewSqlUser(ctx, \"exampleSqlUser\", \u0026mssql.SqlUserArgs{\n\t\t\tDatabaseId: *pulumi.String(exampleDatabase.Id),\n\t\t\tLoginId: exampleSqlLogin.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"userId\", exampleSqlUser.ID())\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mssql.MssqlFunctions;\nimport com.pulumi.mssql.inputs.GetDatabaseArgs;\nimport com.pulumi.mssql.SqlLogin;\nimport com.pulumi.mssql.SqlLoginArgs;\nimport com.pulumi.mssql.SqlUser;\nimport com.pulumi.mssql.SqlUserArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleDatabase = MssqlFunctions.getDatabase(GetDatabaseArgs.builder()\n .name(\"example\")\n .build());\n\n var exampleSqlLogin = new SqlLogin(\"exampleSqlLogin\", SqlLoginArgs.builder() \n .password(\"Str0ngPa$$word12\")\n .mustChangePassword(true)\n .defaultDatabaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .defaultLanguage(\"english\")\n .checkPasswordExpiration(true)\n .checkPasswordPolicy(true)\n .build());\n\n var exampleSqlUser = new SqlUser(\"exampleSqlUser\", SqlUserArgs.builder() \n .databaseId(exampleDatabase.applyValue(getDatabaseResult -\u003e getDatabaseResult.id()))\n .loginId(exampleSqlLogin.id())\n .build());\n\n ctx.export(\"userId\", exampleSqlUser.id());\n }\n}\n```\n```yaml\nresources:\n exampleSqlLogin:\n type: mssql:SqlLogin\n properties:\n password: Str0ngPa$$word12\n mustChangePassword: true\n defaultDatabaseId: ${exampleDatabase.id}\n defaultLanguage: english\n checkPasswordExpiration: true\n checkPasswordPolicy: true\n exampleSqlUser:\n type: mssql:SqlUser\n properties:\n databaseId: ${exampleDatabase.id}\n loginId: ${exampleSqlLogin.id}\nvariables:\n exampleDatabase:\n fn::invoke:\n Function: mssql:getDatabase\n Arguments:\n name: example\noutputs:\n userId: ${exampleSqlUser.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nimport using \u003cdb_id\u003e/\u003cuser_id\u003e - can be retrieved using `SELECT CONCAT(DB_ID(), '/', DATABASE_PRINCIPAL_ID('\u003cusername\u003e'))`\n\n```sh\n $ pulumi import mssql:index/sqlUser:SqlUser example '7/5'\n```\n\n ",
"properties": {
"databaseId": {
"type": "string",
@@ -1395,8 +1380,7 @@
}
},
"requiredInputs": [
- "loginId",
- "name"
+ "loginId"
],
"stateInputs": {
"description": "Input properties used for looking up and filtering SqlUser resources.\n",
@@ -1615,7 +1599,7 @@
},
"name": {
"type": "string",
- "description": "Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars.\n"
+ "description": "Name of the database principal.\n"
}
},
"type": "object",
@@ -1666,7 +1650,7 @@
"properties": {
"databaseId": {
"type": "string",
- "description": "ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('\u003cdb_name\u003e')`. Defaults to ID of `master`.\n"
+ "description": "ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('\u003cdb_name\u003e')`.\n"
}
},
"type": "object"
@@ -1883,7 +1867,7 @@
"properties": {
"databaseId": {
"type": "string",
- "description": "ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('\u003cdb_name\u003e')`. Defaults to ID of `master`.\n"
+ "description": "ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('\u003cdb_name\u003e')`.\n"
}
},
"type": "object"
@@ -1964,11 +1948,11 @@
"properties": {
"id": {
"type": "string",
- "description": "Role principal ID. Either `name` or `id` must be provided.\n"
+ "description": "ID of the member principal\n"
},
"name": {
"type": "string",
- "description": "Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars. Either `name` or `id` must be provided.\n"
+ "description": "Name of the server principal\n"
}
},
"type": "object"
@@ -2171,7 +2155,7 @@
"properties": {
"databaseId": {
"type": "string",
- "description": "ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('\u003cdb_name\u003e')`. Defaults to ID of `master`.\n"
+ "description": "ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('\u003cdb_name\u003e')`.\n"
}
},
"type": "object"
diff --git a/provider/generate.go b/provider/generate.go
new file mode 100644
index 0000000..aec565b
--- /dev/null
+++ b/provider/generate.go
@@ -0,0 +1,222 @@
+//go:build exclude
+
+package main
+
+import (
+ "bufio"
+ "errors"
+ "fmt"
+ "go/ast"
+ "go/parser"
+ "go/printer"
+ "go/token"
+ "log"
+ "os"
+ "os/exec"
+ "reflect"
+ "regexp"
+ "strings"
+)
+
+var (
+ rxMissingResource = regexp.MustCompile(`TF resource "(\w+)" not`)
+ rxMissingDataSource = regexp.MustCompile(`TF data source "(\w+)" not`)
+)
+
+// addNewline is a hack to let us force a newline at a certain position. (https://github.com/mvdan/gofumpt/blob/master/format/format.go#L217)
+func addNewline(f *token.File, at token.Pos) {
+ offset := f.Offset(at)
+
+ field := reflect.ValueOf(f).Elem().FieldByName("lines")
+ n := field.Len()
+ lines := make([]int, 0, n+1)
+ for i := 0; i < n; i++ {
+ cur := int(field.Index(i).Int())
+ if offset == cur {
+ // This newline already exists; do nothing. Duplicate
+ // newlines can't exist.
+ return
+ }
+ if offset >= 0 && offset < cur {
+ lines = append(lines, offset)
+ offset = -1
+ }
+ lines = append(lines, cur)
+ }
+ if offset >= 0 {
+ lines = append(lines, offset)
+ }
+ if !f.SetLines(lines) {
+ panic(fmt.Sprintf("could not set lines to %v", lines))
+ }
+}
+
+func addKeyToMap(name, fnc string, pos token.Pos, kve *ast.KeyValueExpr) {
+ resExpr := ast.KeyValueExpr{
+ Key: &ast.BasicLit{
+ Kind: token.STRING,
+ Value: fmt.Sprintf("%q", name),
+ ValuePos: pos,
+ },
+ Value: &ast.CompositeLit{
+ Elts: []ast.Expr{
+ &ast.KeyValueExpr{
+ Key: ast.NewIdent("Tok"),
+ Value: &ast.CallExpr{
+ Fun: ast.NewIdent(fnc),
+ Args: []ast.Expr{
+ ast.NewIdent("mainMod"),
+ &ast.BasicLit{
+ Kind: token.STRING,
+ Value: fmt.Sprintf("%q", name),
+ },
+ },
+ },
+ },
+ },
+ },
+ }
+ kve.Value.(*ast.CompositeLit).Elts = append(kve.Value.(*ast.CompositeLit).Elts, &resExpr)
+}
+
+func main() {
+ fmt.Println("🧱 Building tfgen ...")
+ cmd := exec.Command("make", "-C", "..", "tfgen")
+ cmd.Env = os.Environ()
+ cmd.Env = append(cmd.Env, "PULUMI_SKIP_MISSING_MAPPING_ERROR=1")
+
+ r, _ := cmd.StderrPipe()
+ done := make(chan struct{})
+ scanner := bufio.NewScanner(r)
+
+ stderr := []string{}
+ missingResources := []string{}
+ missingDataSources := []string{}
+
+ go func() {
+ // Read line by line and process it
+ for scanner.Scan() {
+ line := scanner.Text()
+ stderr = append(stderr, line)
+
+ for i, m := range rxMissingResource.FindStringSubmatch(line) {
+ if i > 0 { // ignore initial match because it contains the complete line if the regex matches
+ fmt.Printf("✨ Missing resource %s\n", m)
+ missingResources = append(missingResources, m)
+ }
+ }
+
+ for i, m := range rxMissingDataSource.FindStringSubmatch(line) {
+ if i > 0 { // ignore initial match because it contains the complete line if the regex matches
+ fmt.Printf("✨ Missing data source %s\n", m)
+ missingDataSources = append(missingDataSources, m)
+ }
+ }
+
+ }
+
+ // We're all done, unblock the channel
+ done <- struct{}{}
+ }()
+
+ // Start the command and check for errors
+ err := cmd.Start()
+ if err != nil {
+ log.Fatalf("failed to start cmd: error(%T): %s", err, err)
+ }
+
+ // Wait for all output to be processed
+ <-done
+
+ // Wait for the command to finish
+ err = cmd.Wait()
+ if execErr := (&exec.ExitError{}); errors.As(err, &execErr) {
+ if execErr.ExitCode() != 2 {
+ log.Fatalf("🔥 Failed build tfgen failed with error(%T): %s", err, err)
+ } else if len(missingResources) == 0 && len(missingDataSources) == 0 {
+ log.Fatalf("🔥 Failed build tfgen with error(%T): %s\n", err, err, strings.Join(stderr, "\n"))
+ }
+ } else if err != nil {
+ log.Fatalf("🔥 Failed build tfgen with error(%T): %s", err, err)
+ }
+
+ if len(missingResources) == 0 && len(missingDataSources) == 0 {
+ fmt.Println("🌈 No missing resources or data sources found")
+ return
+ }
+
+ srcFile := "resources.go"
+ fset := token.NewFileSet()
+ f, err := parser.ParseFile(fset, srcFile, nil, parser.ParseComments|parser.SkipObjectResolution)
+ if err != nil {
+ log.Fatal(err)
+ }
+
+ var providerDecl *ast.CompositeLit
+ ast.Inspect(f, func(n ast.Node) bool {
+ switch x := n.(type) {
+ case *ast.AssignStmt:
+ if c, ok := x.Rhs[0].(*ast.CompositeLit); ok {
+ s, ok := c.Type.(*ast.SelectorExpr)
+ if ok && s.Sel.Name == "ProviderInfo" {
+ providerDecl = c
+ return false
+ }
+ }
+ }
+ return true
+ })
+
+ if providerDecl != nil {
+ fmt.Println("🎯 Adding missing resources and data sources ...")
+ for _, e := range providerDecl.Elts {
+ kve, ok := e.(*ast.KeyValueExpr)
+ if ok {
+ iterateItems := func(items []string) {
+ n := kve.Key.(*ast.Ident).Name
+ funcName := "make" + n[:len(n)-1]
+
+ var offset token.Pos
+ l := len(kve.Value.(*ast.CompositeLit).Elts)
+ if l == 0 {
+ offset = kve.Value.(*ast.CompositeLit).Rbrace - 7
+ } else {
+ offset = kve.Value.(*ast.CompositeLit).Elts[l-1].End()
+ }
+ f := fset.File(kve.Value.(*ast.CompositeLit).Rbrace - 7)
+ for i, r := range items {
+ pos := token.Pos(int(offset) + i)
+ addKeyToMap(r, funcName, pos, kve)
+ addNewline(f, pos)
+ }
+ }
+ switch kve.Key.(*ast.Ident).Name {
+ case "DataSources":
+ iterateItems(missingDataSources)
+ case "Resources":
+ iterateItems(missingResources)
+ }
+ }
+ }
+ io, err := os.Create(srcFile)
+ if err != nil {
+ log.Fatalf("🔥 Failed to open source file %s", err)
+ }
+ defer io.Close()
+
+ w := bufio.NewWriter(io)
+ err = printer.Fprint(w, fset, f)
+ if err != nil {
+ log.Fatal(err)
+ }
+ w.Flush()
+
+ fmt.Println("🚀 Formatting code ...")
+ cmd := exec.Command("go", "fmt", srcFile)
+ if err := cmd.Run(); err != nil {
+ log.Fatal("🔥 Failed formatting code with error(%T): %s", err, err)
+ }
+ } else {
+ log.Fatal("🔥 ProviderInfo declaration not found")
+ }
+}
diff --git a/provider/go.mod b/provider/go.mod
index fef0757..76023f5 100644
--- a/provider/go.mod
+++ b/provider/go.mod
@@ -7,26 +7,25 @@ replace github.com/PGSSoft/terraform-provider-mssql/shim => ./shim
require (
github.com/PGSSoft/terraform-provider-mssql/shim v0.0.0-00010101000000-000000000000
github.com/ettle/strcase v0.1.1
- github.com/pulumi/pulumi-terraform-bridge/pf v0.11.1
- github.com/pulumi/pulumi-terraform-bridge/v3 v3.49.1-0.20230605212537-46a92ef1828f
- github.com/pulumi/pulumi/sdk/v3 v3.69.0
+ github.com/pulumi/pulumi-terraform-bridge/pf v0.18.3
+ github.com/pulumi/pulumi-terraform-bridge/v3 v3.63.2
+ github.com/pulumi/pulumi/sdk/v3 v3.91.1
)
require (
- cloud.google.com/go v0.107.0 // indirect
- cloud.google.com/go/compute v1.15.1 // indirect
+ cloud.google.com/go v0.110.4 // indirect
+ cloud.google.com/go/compute v1.20.1 // indirect
cloud.google.com/go/compute/metadata v0.2.3 // indirect
- cloud.google.com/go/iam v0.8.0 // indirect
- cloud.google.com/go/kms v1.6.0 // indirect
- cloud.google.com/go/logging v1.6.1 // indirect
- cloud.google.com/go/longrunning v0.3.0 // indirect
- cloud.google.com/go/storage v1.27.0 // indirect
- github.com/AlecAivazis/survey/v2 v2.0.5 // indirect
+ cloud.google.com/go/iam v1.1.1 // indirect
+ cloud.google.com/go/kms v1.12.1 // indirect
+ 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
+ dario.cat/mergo v1.0.0 // indirect
github.com/Azure/azure-sdk-for-go v66.0.0+incompatible // indirect
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.3 // indirect
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.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
@@ -40,72 +39,72 @@ require (
github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1 // 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
github.com/Masterminds/semver/v3 v3.1.1 // indirect
github.com/Masterminds/sprig/v3 v3.2.2 // indirect
- github.com/Microsoft/go-winio v0.5.2 // indirect
+ github.com/Microsoft/go-winio v0.6.1 // indirect
github.com/PGSSoft/terraform-provider-mssql v0.6.1-0.20230221122241-5f4f6a894546 // indirect
- github.com/ProtonMail/go-crypto v0.0.0-20221026131551-cf6655e29de4 // indirect
- github.com/acomagu/bufpipe v1.0.3 // indirect
+ github.com/ProtonMail/go-crypto v0.0.0-20230717121422-5aa5874ade95 // indirect
+ github.com/acomagu/bufpipe v1.0.4 // indirect
github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect
github.com/agext/levenshtein v1.2.3 // indirect
github.com/apparentlymart/go-cidr v1.1.0 // indirect
- github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
+ github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
github.com/armon/go-metrics v0.4.0 // indirect
github.com/armon/go-radix v1.0.0 // indirect
- github.com/aws/aws-sdk-go v1.44.122 // indirect
+ 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
+ github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
github.com/bgentry/speakeasy v0.1.0 // indirect
github.com/blang/semver v3.5.1+incompatible // indirect
github.com/cenkalti/backoff/v3 v3.2.2 // indirect
+ github.com/charmbracelet/bubbles v0.16.1 // indirect
+ github.com/charmbracelet/bubbletea v0.24.2 // indirect
+ github.com/charmbracelet/lipgloss v0.7.1 // indirect
github.com/cheggaaa/pb v1.0.29 // indirect
github.com/cloudflare/circl v1.3.3 // indirect
+ github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect
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.0 // indirect
github.com/edsrzf/mmap-go v1.1.0 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/gedex/inflector v0.0.0-20170307190818-16278e9db813 // indirect
- github.com/go-git/gcfg v1.5.0 // indirect
- github.com/go-git/go-billy/v5 v5.4.0 // indirect
- github.com/go-git/go-git/v5 v5.6.0 // indirect
+ github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
+ github.com/go-git/go-billy/v5 v5.4.1 // indirect
+ 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.2+incompatible // indirect
github.com/golang-jwt/jwt/v4 v4.4.2 // indirect
github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe // indirect
github.com/golang-sql/sqlexp v0.1.0 // indirect
- github.com/golang/glog v1.0.0 // 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-querystring v1.1.0 // indirect
+ github.com/google/s2a-go v0.1.4 // indirect
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/google/wire v0.5.0 // indirect
- github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect
- github.com/googleapis/gax-go/v2 v2.7.0 // indirect
+ github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect
+ github.com/googleapis/gax-go/v2 v2.11.0 // indirect
github.com/gorilla/mux v1.8.0 // indirect
github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
@@ -113,10 +112,10 @@ require (
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect
github.com/hashicorp/go-getter v1.7.1 // indirect
- github.com/hashicorp/go-hclog v1.4.0 // indirect
+ github.com/hashicorp/go-hclog v1.5.0 // indirect
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
- github.com/hashicorp/go-plugin v1.4.8 // indirect
+ github.com/hashicorp/go-plugin v1.5.1 // indirect
github.com/hashicorp/go-retryablehttp v0.7.1 // indirect
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
github.com/hashicorp/go-safetemp v1.0.0 // indirect
@@ -127,39 +126,38 @@ require (
github.com/hashicorp/go-uuid v1.0.3 // indirect
github.com/hashicorp/go-version v1.6.0 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
- github.com/hashicorp/hc-install v0.5.0 // indirect
+ github.com/hashicorp/hc-install v0.6.0 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
- github.com/hashicorp/hcl/v2 v2.16.2 // indirect
+ 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-exec v0.17.3 // indirect
- github.com/hashicorp/terraform-json v0.15.0 // indirect
- github.com/hashicorp/terraform-plugin-framework v1.1.1 // indirect
- github.com/hashicorp/terraform-plugin-go v0.14.3 // indirect
- github.com/hashicorp/terraform-plugin-log v0.8.0 // indirect
- github.com/hashicorp/terraform-plugin-sdk/v2 v2.25.0 // indirect
- github.com/hashicorp/terraform-registry-address v0.1.0 // indirect
- github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 // indirect
+ github.com/hashicorp/terraform-exec v0.19.0 // indirect
+ github.com/hashicorp/terraform-json v0.17.1 // indirect
+ github.com/hashicorp/terraform-plugin-framework v1.4.1 // indirect
+ github.com/hashicorp/terraform-plugin-go v0.19.0 // indirect
+ github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect
+ github.com/hashicorp/terraform-plugin-sdk/v2 v2.29.0 // indirect
+ github.com/hashicorp/terraform-registry-address v0.2.2 // indirect
+ github.com/hashicorp/terraform-svchost v0.1.1 // 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/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.13 // 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.15.11 // indirect
github.com/kofalt/go-memoize v0.0.0-20220914132407-0b5d6a304579 // 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.14 // indirect
- github.com/mattn/go-runewidth v0.0.13 // indirect
- github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b // 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/microsoft/go-mssqldb v0.20.0 // indirect
github.com/mitchellh/cli v1.1.5 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
@@ -172,7 +170,10 @@ require (
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // 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
+ github.com/muesli/termenv v0.15.1 // indirect
github.com/natefinch/atomic v1.0.1 // indirect
github.com/oklog/run v1.1.0 // indirect
github.com/opentracing/basictracer-go v1.1.0 // indirect
@@ -186,59 +187,64 @@ require (
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.2 // indirect
- github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4 // indirect
- github.com/pulumi/pulumi-yaml v1.1.1 // indirect
- github.com/pulumi/pulumi/pkg/v3 v3.69.0 // 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.91.1 // indirect
github.com/pulumi/schema-tools v0.1.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
github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 // indirect
github.com/segmentio/asm v1.1.3 // indirect
github.com/segmentio/encoding v0.3.5 // indirect
- github.com/sergi/go-diff v1.2.0 // indirect
+ github.com/sergi/go-diff v1.3.1 // indirect
github.com/shopspring/decimal v1.3.1 // indirect
- github.com/skeema/knownhosts v1.1.0 // indirect
+ github.com/skeema/knownhosts v1.2.0 // indirect
github.com/spf13/afero v1.9.5 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/cobra v1.7.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
- github.com/stretchr/testify v1.8.2 // 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
github.com/uber/jaeger-lib v2.4.1+incompatible // indirect
github.com/ulikunitz/xz v0.5.10 // indirect
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
- github.com/vmihailenco/msgpack/v4 v4.3.12 // indirect
- github.com/vmihailenco/tagparser v0.1.2 // indirect
+ github.com/vmihailenco/msgpack/v5 v5.3.5 // indirect
+ github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
github.com/xanzy/ssh-agent v0.3.3 // indirect
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f // indirect
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
- github.com/zclconf/go-cty v1.13.1 // indirect
+ github.com/zclconf/go-cty v1.14.0 // indirect
go.opencensus.io v0.24.0 // indirect
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.6.0 // indirect
- golang.org/x/mod v0.10.0 // indirect
- golang.org/x/net v0.8.0 // indirect
- golang.org/x/oauth2 v0.4.0 // indirect
- golang.org/x/sync v0.1.0 // indirect
- golang.org/x/sys v0.6.0 // indirect
- golang.org/x/term v0.6.0 // indirect
- golang.org/x/text v0.8.0 // indirect
- golang.org/x/time v0.0.0-20220722155302-e5dcc9cfc0b9 // 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.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.14.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
- google.golang.org/api v0.103.0 // indirect
+ google.golang.org/api v0.126.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
- google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f // indirect
- google.golang.org/grpc v1.54.0 // indirect
- google.golang.org/protobuf v1.29.1 // indirect
+ google.golang.org/genproto v0.0.0-20230726155614-23370e0ffb3e // indirect
+ google.golang.org/genproto/googleapis/api v0.0.0-20230706204954-ccb25ca9f130 // 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
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
diff --git a/provider/go.sum b/provider/go.sum
index 115e046..824a1ec 100644
--- a/provider/go.sum
+++ b/provider/go.sum
@@ -37,8 +37,8 @@ cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+
cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34hIU=
cloud.google.com/go v0.103.0/go.mod h1:vwLx1nqLrzLX/fpwSMOXmFIqBOyHsvHbnAdbGSJ+mKk=
cloud.google.com/go v0.104.0/go.mod h1:OO6xxXdJyvuJPcEPBLN9BJPD+jep5G1+2U5B5gkRYtA=
-cloud.google.com/go v0.107.0 h1:qkj22L7bgkl6vIeZDlOY2po43Mx/TIa2Wsa7VR+PEww=
-cloud.google.com/go v0.107.0/go.mod h1:wpc2eNrD7hXUTy8EKS10jkxpZBjASrORK7goS+3YX2I=
+cloud.google.com/go v0.110.4 h1:1JYyxKMN9hd5dR2MYTPWkGUgcoxVVhg0LKNKEo0qvmk=
+cloud.google.com/go v0.110.4/go.mod h1:+EYjdK8e5RME/VY/qLCAtuyALQ9q67dvuum8i+H5xsI=
cloud.google.com/go/aiplatform v1.22.0/go.mod h1:ig5Nct50bZlzV6NvKaTwmplLLddFx0YReh9WfTO5jKw=
cloud.google.com/go/aiplatform v1.24.0/go.mod h1:67UUvRBKG6GTayHKV8DBv2RtR1t93YRu5B1P3x99mYY=
cloud.google.com/go/analytics v0.11.0/go.mod h1:DjEWCu41bVbYcKyvlws9Er60YE4a//bK6mnhWvQeFNI=
@@ -75,8 +75,8 @@ cloud.google.com/go/compute v1.6.0/go.mod h1:T29tfhtVbq1wvAPo0E3+7vhgmkOYeXjhFvz
cloud.google.com/go/compute v1.6.1/go.mod h1:g85FgpzFvNULZ+S8AYq87axRKuf2Kh7deLqV/jJ3thU=
cloud.google.com/go/compute v1.7.0/go.mod h1:435lt8av5oL9P3fv1OEzSbSUe+ybHXGMPQHHZWZxy9U=
cloud.google.com/go/compute v1.10.0/go.mod h1:ER5CLbMxl90o2jtNbGSbtfOpQKR0t15FOtRsugnLrlU=
-cloud.google.com/go/compute v1.15.1 h1:7UGq3QknM33pw5xATlpzeoomNxsacIVvTqTTvbfajmE=
-cloud.google.com/go/compute v1.15.1/go.mod h1:bjjoF/NtFUrkD/urWfdHaKuOPDR5nWIs63rR+SXhcpA=
+cloud.google.com/go/compute v1.20.1 h1:6aKEtlUiwEpJzM001l0yFkpXmUVXaN8W+fbkb2AZNbg=
+cloud.google.com/go/compute v1.20.1/go.mod h1:4tCnrn48xsqlwSAiLf1HXMQk8CONslYbdiEZc9FEIbM=
cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY=
cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA=
cloud.google.com/go/containeranalysis v0.5.1/go.mod h1:1D92jd8gRR/c0fGMlymRgxWD3Qw9C1ff6/T7mLgVL8I=
@@ -119,19 +119,19 @@ cloud.google.com/go/grafeas v0.2.0/go.mod h1:KhxgtF2hb0P191HlY5besjYm6MqTSTj3LSI
cloud.google.com/go/iam v0.1.0/go.mod h1:vcUNEa0pEm0qRVpmWepWaFMIAI8/hjB9mO8rNCJtF6c=
cloud.google.com/go/iam v0.3.0/go.mod h1:XzJPvDayI+9zsASAFO68Hk07u3z+f+JrT2xXNdp4bnY=
cloud.google.com/go/iam v0.5.0/go.mod h1:wPU9Vt0P4UmCux7mqtRu6jcpPAb74cP1fh50J3QpkUc=
-cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk=
-cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE=
+cloud.google.com/go/iam v1.1.1 h1:lW7fzj15aVIXYHREOqjRBV9PsH0Z6u8Y46a1YGvQP4Y=
+cloud.google.com/go/iam v1.1.1/go.mod h1:A5avdyVL2tCppe4unb0951eI9jreack+RJ0/d+KUZOU=
cloud.google.com/go/kms v1.4.0/go.mod h1:fajBHndQ+6ubNw6Ss2sSd+SWvjL26RNo/dr7uxsnnOA=
-cloud.google.com/go/kms v1.6.0 h1:OWRZzrPmOZUzurjI2FBGtgY2mB1WaJkqhw6oIwSj0Yg=
-cloud.google.com/go/kms v1.6.0/go.mod h1:Jjy850yySiasBUDi6KFUwUv2n1+o7QZFyuUJg6OgjA0=
+cloud.google.com/go/kms v1.12.1 h1:xZmZuwy2cwzsocmKDOPu4BL7umg8QXagQx6fKVmf45U=
+cloud.google.com/go/kms v1.12.1/go.mod h1:c9J991h5DTl+kg7gi3MYomh12YEENGrf48ee/N/2CDM=
cloud.google.com/go/language v1.4.0/go.mod h1:F9dRpNFQmJbkaop6g0JhSBXCNlO90e1KWx5iDdxbWic=
cloud.google.com/go/language v1.6.0/go.mod h1:6dJ8t3B+lUYfStgls25GusK04NLh3eDLQnWM3mdEbhI=
cloud.google.com/go/lifesciences v0.5.0/go.mod h1:3oIKy8ycWGPUyZDR/8RNnTOYevhaMLqh5vLUXs9zvT8=
cloud.google.com/go/lifesciences v0.6.0/go.mod h1:ddj6tSX/7BOnhxCSd3ZcETvtNr8NZ6t/iPhY2Tyfu08=
-cloud.google.com/go/logging v1.6.1 h1:ZBsZK+JG+oCDT+vaxwqF2egKNRjz8soXiS6Xv79benI=
-cloud.google.com/go/logging v1.6.1/go.mod h1:5ZO0mHHbvm8gEmeEUHrmDlTDSu5imF6MUP9OfilNXBw=
-cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs=
-cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc=
+cloud.google.com/go/logging v1.7.0 h1:CJYxlNNNNAMkHp9em/YEXcfJg+rPDg7YfwoRpMU+t5I=
+cloud.google.com/go/logging v1.7.0/go.mod h1:3xjP2CjkM3ZkO73aj4ASA5wRPGGCRrPIAeNqVNkzY8M=
+cloud.google.com/go/longrunning v0.5.1 h1:Fr7TXftcqTudoyRJa113hyaqlGdiBQkp0Gq7tErFDWI=
+cloud.google.com/go/longrunning v0.5.1/go.mod h1:spvimkwdz6SPWKEt/XBij79E9fiTkHSQl/fRUUQJYJc=
cloud.google.com/go/mediatranslation v0.5.0/go.mod h1:jGPUhGTybqsPQn91pNXw0xVHfuJ3leR1wj37oU3y1f4=
cloud.google.com/go/mediatranslation v0.6.0/go.mod h1:hHdBCTYNigsBxshbznuIMFNe5QXEowAuNmmC7h8pu5w=
cloud.google.com/go/memcache v1.4.0/go.mod h1:rTOfiGZtJX1AaFUrOgsMHX5kAzaTQ8azHiuDoTPzNsE=
@@ -193,8 +193,9 @@ cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3f
cloud.google.com/go/storage v1.22.1/go.mod h1:S8N1cAStu7BOeFfE8KAQzmyyLkK8p/vmRq6kuBTW58Y=
cloud.google.com/go/storage v1.23.0/go.mod h1:vOEEDNFnciUMhBeT6hsJIn3ieU5cFRmzeLgDvXzfIXc=
cloud.google.com/go/storage v1.24.0/go.mod h1:3xrJEFMXBsQLgxwThyjuD3aYlroL0TMRec1ypGUQ0KE=
-cloud.google.com/go/storage v1.27.0 h1:YOO045NZI9RKfCj1c5A/ZtuuENUc8OAW+gHdGnDgyMQ=
cloud.google.com/go/storage v1.27.0/go.mod h1:x9DOL8TK/ygDUMieqwfhdpQryTeEkhGKMi80i/iqR2s=
+cloud.google.com/go/storage v1.30.1 h1:uOdMxAs8HExqBlnLtnQyP0YkvbiDpdGShGKtx6U/oNM=
+cloud.google.com/go/storage v1.30.1/go.mod h1:NfxhC0UJE1aXSx7CIIbCf7y9HKT7BiccwkR7+P7gN8E=
cloud.google.com/go/talent v1.1.0/go.mod h1:Vl4pt9jiHKvOgF9KoZo6Kob9oV4lwd/ZD5Cto54zDRw=
cloud.google.com/go/talent v1.2.0/go.mod h1:MoNF9bhFQbiJ6eFD3uSsg0uBALw4n4gaCaEjBw9zo8g=
cloud.google.com/go/trace v1.0.0/go.mod h1:4iErSByzxkyHWzzlAj63/Gmjz0NH1ASqhJguHpGcr6A=
@@ -212,10 +213,10 @@ code.cloudfoundry.org/clock v0.0.0-20180518195852-02e53af36e6c/go.mod h1:QD9Lzhd
contrib.go.opencensus.io/exporter/aws v0.0.0-20200617204711-c478e41e60e9/go.mod h1:uu1P0UCM/6RbsMrgPa98ll8ZcHM858i/AD06a9aLRCA=
contrib.go.opencensus.io/exporter/stackdriver v0.13.13/go.mod h1:5pSSGY0Bhuk7waTHuDf4aQ8D2DrhgETRo9fy6k3Xlzc=
contrib.go.opencensus.io/integrations/ocsql v0.1.7/go.mod h1:8DsSdjz3F+APR+0z0WkU1aRorQCFfRxvqjUUPMbF3fE=
+dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk=
+dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk=
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
github.com/AdaLogics/go-fuzz-headers v0.0.0-20210715213245-6c3934b029d8/go.mod h1:CzsSbkDixRphAF5hS6wbMKq0eI6ccJRb7/A0M6JBnwg=
-github.com/AlecAivazis/survey/v2 v2.0.5 h1:xpZp+Q55wi5C7Iaze+40onHnEkex1jSc34CltJjOoPM=
-github.com/AlecAivazis/survey/v2 v2.0.5/go.mod h1:WYBhg6f0y/fNYUuesWQc0PKbJcEliGcYHB9sNT3Bg74=
github.com/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=
@@ -236,7 +237,6 @@ github.com/Azure/azure-sdk-for-go/sdk/internal v0.7.0/go.mod h1:yqy467j36fJxcRV2
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=
@@ -295,6 +295,7 @@ github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go
github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI=
github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU=
github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww=
+github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y=
github.com/Masterminds/semver/v3 v3.1.1 h1:hLg3sBzpNErnxhQtUy/mmLR2I9foDujNK030IGemrRc=
github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs=
github.com/Masterminds/sprig/v3 v3.2.1/go.mod h1:UoaO7Yp8KlPnJIYWTFkMaqPUYKTfGFPhxNuwnnxkKlk=
@@ -309,8 +310,9 @@ github.com/Microsoft/go-winio v0.4.17-0.20210211115548-6eac466e5fa3/go.mod h1:JP
github.com/Microsoft/go-winio v0.4.17-0.20210324224401-5516f17a5958/go.mod h1:JPGBdM1cNvN/6ISo+n8V5iA4v8pBzdOpzfwIujj1a84=
github.com/Microsoft/go-winio v0.4.17/go.mod h1:JPGBdM1cNvN/6ISo+n8V5iA4v8pBzdOpzfwIujj1a84=
github.com/Microsoft/go-winio v0.5.1/go.mod h1:JPGBdM1cNvN/6ISo+n8V5iA4v8pBzdOpzfwIujj1a84=
-github.com/Microsoft/go-winio v0.5.2 h1:a9IhgEQBCUEk6QCdml9CiJGhAws+YwffDHEMp1VMrpA=
github.com/Microsoft/go-winio v0.5.2/go.mod h1:WpS1mjBmmwHBEWmogvA2mj8546UReBk4v8QkMxJ6pZY=
+github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow=
+github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM=
github.com/Microsoft/hcsshim v0.8.6/go.mod h1:Op3hHsoHPAvb6lceZHDtd9OkTew38wNoXnJs8iY7rUg=
github.com/Microsoft/hcsshim v0.8.7-0.20190325164909-8abdbb8205e4/go.mod h1:Op3hHsoHPAvb6lceZHDtd9OkTew38wNoXnJs8iY7rUg=
github.com/Microsoft/hcsshim v0.8.7/go.mod h1:OHd7sQqRFrYd3RmSgbgji+ctCwkbq2wbEYNSzOYtcBQ=
@@ -326,14 +328,11 @@ github.com/Microsoft/hcsshim/test v0.0.0-20201218223536-d3e5debf77da/go.mod h1:5
github.com/Microsoft/hcsshim/test v0.0.0-20210227013316-43a75bb4edd3/go.mod h1:mw7qgWloBUl75W/gVH3cQszUg1+gUITj7D6NY7ywVnY=
github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ=
github.com/NYTimes/gziphandler v1.1.1/go.mod h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMomdKFjzJNB0c=
-github.com/Netflix/go-expect v0.0.0-20180615182759-c93bf25de8e8/go.mod h1:oX5x61PbNXchhh0oikYAH+4Pcfw5LKv21+Jnpr6r6Pc=
-github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2 h1:+vx7roKuyA63nhn5WAunQHLTznkw5W8b1Xc0dNjp83s=
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
github.com/PGSSoft/terraform-provider-mssql v0.6.1-0.20230221122241-5f4f6a894546 h1:gcdKOyLuagBwhU9SgCgPCgfTVYr/6h0rUWCDeX0e32Y=
github.com/PGSSoft/terraform-provider-mssql v0.6.1-0.20230221122241-5f4f6a894546/go.mod h1:tgoRCBrClypYHIc1foY+cBrxAs3USnL8hg7bZdOxIgY=
-github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7/go.mod h1:z4/9nQmJSSwwds7ejkxaJwO37dru3geImFUdJlaLzQo=
-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=
+github.com/ProtonMail/go-crypto v0.0.0-20230717121422-5aa5874ade95 h1:KLq8BE0KwCL+mmXnjLWEAOYO+2l2AE4YMmqG1ZpZHBs=
+github.com/ProtonMail/go-crypto v0.0.0-20230717121422-5aa5874ade95/go.mod h1:EjAoLdwvbIOoOQr3ihjnSoLZRtE8azugULFRteWMNc0=
github.com/PuerkitoBio/purell v1.0.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0=
github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0=
github.com/PuerkitoBio/urlesc v0.0.0-20160726150825-5bd2802263f2/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE=
@@ -342,8 +341,8 @@ github.com/Shopify/logrus-bugsnag v0.0.0-20171204204709-577dee27f20d/go.mod h1:H
github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo=
github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI=
github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g=
-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/acomagu/bufpipe v1.0.4 h1:e3H4WUzM3npvo5uv95QuJM3cQspFNtFBzvJ2oNjKIDQ=
+github.com/acomagu/bufpipe v1.0.4/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/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c=
@@ -357,18 +356,15 @@ github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk5
github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE=
github.com/alexflint/go-filemutex v0.0.0-20171022225611-72bdc8eae2ae/go.mod h1:CgnQgUtFrFz9mxFNtED3jI5tLDjKlOM+oUF/sTk6ps0=
github.com/alexflint/go-filemutex v1.1.0/go.mod h1:7P4iRhttt/nUvUOrYIhcpMzv2G6CY9UnI16Z+UJqRyk=
-github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c=
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/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ=
github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ=
github.com/apparentlymart/go-cidr v1.1.0 h1:2mAhrMoF+nhXqxTzSZMUzDHkLjmIHC+Zzn4tdgBZjnU=
github.com/apparentlymart/go-cidr v1.1.0/go.mod h1:EBcsNrHc3zQeuaeCeCtQruQm+n9/YjEn/vI25Lg7Gwc=
-github.com/apparentlymart/go-textseg v1.0.0/go.mod h1:z96Txxhf3xSFMPmb5X/1W05FF/Nj9VFpLOpjS5yuumk=
github.com/apparentlymart/go-textseg/v12 v12.0.0/go.mod h1:S/4uRK2UtaQttw1GenVJEynmyUenKwP++x/+DdGV/Ec=
-github.com/apparentlymart/go-textseg/v13 v13.0.0 h1:Y+KvPE1NYz0xl601PVImeQfFyEy6iT90AvPUL1NNfNw=
-github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo=
+github.com/apparentlymart/go-textseg/v15 v15.0.0 h1:uYvfpb3DyLSCGWnctWKGj857c6ew1u1fNQOlOtuGxQY=
+github.com/apparentlymart/go-textseg/v15 v15.0.0/go.mod h1:K8XmNZdhEBkdlyDdvbmmsvpAG721bKi0joRfFdHIWJ4=
github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o=
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY=
@@ -385,6 +381,8 @@ github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6l
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY=
github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw=
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw=
+github.com/atotto/clipboard v0.1.4 h1:EH0zSVneZPSuFR11BlR9YppQTVDbh5+16AmcJi4g1z4=
+github.com/atotto/clipboard v0.1.4/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI=
github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU=
github.com/aws/aws-sdk-go v1.15.11/go.mod h1:mFuSZ37Z9YOHbQEwBWztmVzqXrEkub65tZoCYDt7FT0=
github.com/aws/aws-sdk-go v1.15.27/go.mod h1:mFuSZ37Z9YOHbQEwBWztmVzqXrEkub65tZoCYDt7FT0=
@@ -394,8 +392,9 @@ github.com/aws/aws-sdk-go v1.43.11/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4
github.com/aws/aws-sdk-go v1.43.31/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo=
github.com/aws/aws-sdk-go v1.44.45/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo=
github.com/aws/aws-sdk-go v1.44.68/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo=
-github.com/aws/aws-sdk-go v1.44.122 h1:p6mw01WBaNpbdP2xrisz5tIkcNwzj/HysobNoaAHjgo=
github.com/aws/aws-sdk-go v1.44.122/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo=
+github.com/aws/aws-sdk-go v1.44.298 h1:5qTxdubgV7PptZJmp/2qDwD2JL187ePL7VOxsSh1i3g=
+github.com/aws/aws-sdk-go v1.44.298/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g=
github.com/aws/aws-sdk-go-v2 v1.16.8/go.mod h1:6CpKuLXg2w7If3ABZCl/qZ6rEgwtjZTn4eAf4RcEyuw=
github.com/aws/aws-sdk-go-v2 v1.17.3 h1:shN7NlnVzvDUgPQ+1rLMSxY8OWRNDRYtiqe0p/PgrhY=
@@ -444,6 +443,8 @@ github.com/aws/aws-sdk-go-v2/service/sts v1.16.10/go.mod h1:cftkHYN6tCDNfkSasAmc
github.com/aws/smithy-go v1.12.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA=
github.com/aws/smithy-go v1.13.5 h1:hgz0X/DX0dGqTYpGALqXJoRKRj5oQ7150i5FdTePzO8=
github.com/aws/smithy-go v1.13.5/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA=
+github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiErDT4WkJ2k=
+github.com/aymanbagabas/go-osc52/v2 v2.0.1/go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8=
github.com/benbjohnson/clock v1.0.3/go.mod h1:bGMdMPoPVvcYyt1gHDf4J2KE153Yf9BuiUKYMaxlTDM=
github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=
github.com/beorn7/perks v0.0.0-20160804104726-4c0e84591b9a/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
@@ -462,12 +463,13 @@ github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdn
github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk=
github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dRnpXw/yCqJaO+ZrUyxD+3VXMFFr56k5XYrpB4=
github.com/bshuster-repo/logrus-logstash-hook v0.4.1/go.mod h1:zsTqEiSzDgAa/8GZR7E1qaXrhYNDKBYy5/dWPTIflbk=
+github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZlaQsNA=
github.com/buger/jsonparser v0.0.0-20180808090653-f4dd9f5a6b44/go.mod h1:bbYlZJ7hK1yFx9hf58LP0zeX7UjIGs20ufpu3evjr+s=
github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0=
github.com/bugsnag/bugsnag-go v0.0.0-20141110184014-b1d153021fcd/go.mod h1:2oa8nejYd4cQ/b0hMIopN0lCRxU0bueqREvZLWFrtK8=
github.com/bugsnag/osext v0.0.0-20130617224835-0dd3f918b21b/go.mod h1:obH5gd0BsqsP2LwDJ9aOkm/6J86V6lyAXCoQWGw3K50=
github.com/bugsnag/panicwrap v0.0.0-20151223152923-e2c28503fcd0/go.mod h1:D/8v3kj0zr8ZAKg1AQ6crr+5VwKN5eIywRkfhyM/+dE=
-github.com/bwesterb/go-ristretto v1.2.0/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0=
+github.com/bwesterb/go-ristretto v1.2.3/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0=
github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ=
github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM=
github.com/cenkalti/backoff/v3 v3.0.0/go.mod h1:cIeZDE3IrqwwJl6VUwCN6trj1oXrTS4rc0ij+ULvLYs=
@@ -483,6 +485,12 @@ github.com/certifi/gocertifi v0.0.0-20200922220541-2c3bb06c6054/go.mod h1:sGbDF6
github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
+github.com/charmbracelet/bubbles v0.16.1 h1:6uzpAAaT9ZqKssntbvZMlksWHruQLNxg49H5WdeuYSY=
+github.com/charmbracelet/bubbles v0.16.1/go.mod h1:2QCp9LFlEsBQMvIYERr7Ww2H2bA7xen1idUDIzm/+Xc=
+github.com/charmbracelet/bubbletea v0.24.2 h1:uaQIKx9Ai6Gdh5zpTbGiWpytMU+CfsPp06RaW2cx/SY=
+github.com/charmbracelet/bubbletea v0.24.2/go.mod h1:XdrNrV4J8GiyshTtx3DNuYkR1FDaJmO3l2nejekbsgg=
+github.com/charmbracelet/lipgloss v0.7.1 h1:17WMwi7N1b1rVWOjMT+rCh7sQkvDU75B2hbZpc5Kc1E=
+github.com/charmbracelet/lipgloss v0.7.1/go.mod h1:yG0k3giv8Qj8edTCbbg6AlQ5e8KNWpFujkNawKNhE2c=
github.com/checkpoint-restore/go-criu/v4 v4.1.0/go.mod h1:xUQBLp4RLc5zJtWY++yjOoMoB5lihDt7fai+75m+rGw=
github.com/checkpoint-restore/go-criu/v5 v5.0.0/go.mod h1:cfwC0EG7HMUenopBsUf9d89JlCLQIfgVcNsNN0t6T2M=
github.com/checkpoint-restore/go-criu/v5 v5.3.0/go.mod h1:E/eQpaFtUKGOOSEBZgmKAcn+zUUwWxqcaKZlF54wK8E=
@@ -505,7 +513,6 @@ github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6D
github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I=
github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE=
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
-github.com/cloudflare/circl v1.1.0/go.mod h1:prBCrKB9DV4poKZY1l9zBXg2QJY7mvgRvtMxxK7fi4I=
github.com/cloudflare/circl v1.3.3 h1:fE/Qz0QdIGqeWfnwq0RE0R7MI51s0M2E4Ga9kq5AEMs=
github.com/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUKZrLbUZFA=
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
@@ -545,6 +552,8 @@ github.com/containerd/console v0.0.0-20191206165004-02ecf6a7291e/go.mod h1:8Pf4g
github.com/containerd/console v1.0.1/go.mod h1:XUsP6YE/mKtz6bxc+I8UiKKTP04qjQL4qcS3XoQ5xkw=
github.com/containerd/console v1.0.2/go.mod h1:ytZPjGgY2oeTkAONYafi2kSj0aYggsf8acV1PGKCbzQ=
github.com/containerd/console v1.0.3/go.mod h1:7LqA/THxQ86k76b8c/EMSiaJ3h1eZkMkXar0TQ1gf3U=
+github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 h1:q2hJAaP1k2wIvVRd/hEHD7lacgqrCPS+k8g1MndzfWY=
+github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81/go.mod h1:YynlIjWYF8myEu6sdkwKIvGQq+cOckRm6So2avqoYAk=
github.com/containerd/containerd v1.2.10/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA=
github.com/containerd/containerd v1.3.0-beta.2.0.20190828155532-0293cbd26c69/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA=
github.com/containerd/containerd v1.3.0/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA=
@@ -644,7 +653,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/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=
@@ -691,7 +699,6 @@ github.com/docker/libtrust v0.0.0-20150114040149-fa567046d9b1/go.mod h1:cyGadeNE
github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM=
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 h1:VSnTsYCnlFHaM2/igO1h6X3HA71jcobQuxemgkq4zYo=
github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
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=
@@ -700,9 +707,9 @@ github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaB
github.com/edsrzf/mmap-go v1.1.0 h1:6EUwBLQ/Mcr1EYLE4Tn1VdW1A4ckqCQWZBw8Hr0kjpQ=
github.com/edsrzf/mmap-go v1.1.0/go.mod h1:19H/e8pUPLicwkyNgOykDXkJ9F0MHE+Z52B8EIth78Q=
github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc=
+github.com/elazarl/goproxy v0.0.0-20221015165544-a0805db90819 h1:RIB4cRk+lBqKK3Oy0r2gRX4ui7tuhiZq2SuTtTCi0/0=
github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs=
github.com/emicklei/go-restful v2.9.5+incompatible/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs=
-github.com/emirpasic/gods v1.12.0/go.mod h1:YfzfFFoVP/catgzJb4IKIqXjX78Ha8FMSDh3ymbK86o=
github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc=
github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ=
github.com/envoyproxy/go-control-plane v0.6.9/go.mod h1:SBwIajubJHhxtWwsL9s8ss4safvEdbitLhGGK48rN6g=
@@ -735,7 +742,6 @@ github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga
github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U=
github.com/felixge/httpsnoop v1.0.2/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U=
github.com/felixge/httpsnoop v1.0.3/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U=
-github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc=
github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k=
github.com/form3tech-oss/jwt-go v3.2.3+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k=
github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g=
@@ -760,22 +766,15 @@ github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeME
github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI=
github.com/gin-gonic/gin v1.6.3/go.mod h1:75u5sXoLsGZoRN5Sgbi1eraJ4GU3++wFwWzhwvtwp4M=
github.com/gin-gonic/gin v1.7.7/go.mod h1:axIBovoeJpVj8S3BwE0uPMTeReE4+AfFtqpqaZ1qq1U=
-github.com/gliderlabs/ssh v0.2.2/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0=
github.com/gliderlabs/ssh v0.3.5 h1:OcaySEmAQJgyYcArR+gGGTHCyE7nvhEMTlYY+Dp8CpY=
-github.com/gliderlabs/ssh v0.3.5/go.mod h1:8XB4KraRrX39qHhT6yxPsHedjA08I/uBVwj4xC+/+z4=
github.com/go-asn1-ber/asn1-ber v1.3.1/go.mod h1:hEBeB/ic+5LoWskz+yKT7vGhhPYkProFKoKdwZRWMe0=
-github.com/go-git/gcfg v1.5.0 h1:Q5ViNfGF8zFgyJWPqYwA7qGFoMTEiBmdlkcfRmpIMa4=
-github.com/go-git/gcfg v1.5.0/go.mod h1:5m20vg6GwYabIxaOonVkTdrILxQMpEShl1xiMF4ua+E=
-github.com/go-git/go-billy/v5 v5.2.0/go.mod h1:pmpqyWchKfYfrkb/UVH4otLvyi/5gJlGI4Hb3ZqZ3W0=
-github.com/go-git/go-billy/v5 v5.3.1/go.mod h1:pmpqyWchKfYfrkb/UVH4otLvyi/5gJlGI4Hb3ZqZ3W0=
-github.com/go-git/go-billy/v5 v5.4.0 h1:Vaw7LaSTRJOUric7pe4vnzBSgyuf2KrLsu2Y4ZpQBDE=
-github.com/go-git/go-billy/v5 v5.4.0/go.mod h1:vjbugF6Fz7JIflbVpl1hJsGjSHNltrSw45YK/ukIvQg=
-github.com/go-git/go-git-fixtures/v4 v4.2.1/go.mod h1:K8zd3kDUAykwTdDCr+I0per6Y6vMiRR/nnVTBtavnB0=
-github.com/go-git/go-git-fixtures/v4 v4.3.1 h1:y5z6dd3qi8Hl+stezc8p3JxDkoTRqMAlKnXHuzrfjTQ=
-github.com/go-git/go-git-fixtures/v4 v4.3.1/go.mod h1:8LHG1a3SRW71ettAD/jW13h8c6AqjVSeL11RAdgaqpo=
-github.com/go-git/go-git/v5 v5.4.2/go.mod h1:gQ1kArt6d+n+BGd+/B/I74HwRTLhth2+zti4ihgckDc=
-github.com/go-git/go-git/v5 v5.6.0 h1:JvBdYfcttd+0kdpuWO7KTu0FYgCf5W0t5VwkWGobaa4=
-github.com/go-git/go-git/v5 v5.6.0/go.mod h1:6nmJ0tJ3N4noMV1Omv7rC5FG3/o8Cm51TB4CJp7mRmE=
+github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 h1:+zs/tPmkDkHx3U66DAb0lQFJrpS6731Oaa12ikc+DiI=
+github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376/go.mod h1:an3vInlBmSxCcxctByoQdvwPiA7DTK7jaaFDBTtu0ic=
+github.com/go-git/go-billy/v5 v5.4.1 h1:Uwp5tDRkPr+l/TnbHOQzp+tmJfLceOlbVucgpTz8ix4=
+github.com/go-git/go-billy/v5 v5.4.1/go.mod h1:vjbugF6Fz7JIflbVpl1hJsGjSHNltrSw45YK/ukIvQg=
+github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20230305113008-0c11038e723f h1:Pz0DHeFij3XFhoBRGUDPzSJ+w2UcK5/0JvF8DRI58r8=
+github.com/go-git/go-git/v5 v5.8.1 h1:Zo79E4p7TRk0xoRgMq0RShiTHGKcKI4+DI6BfJc/Q+A=
+github.com/go-git/go-git/v5 v5.8.1/go.mod h1:FHFuoD6yGz5OSKEBK+aWN9Oah0q54Jxl0abmj6GnqAo=
github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
@@ -903,8 +902,9 @@ github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe/go.mod h1:8vg3r2V
github.com/golang-sql/sqlexp v0.1.0 h1:ZCD6MBpcuOVfGVqsEmY5/4FtYiKz6tSyUv9LPEDei6A=
github.com/golang-sql/sqlexp v0.1.0/go.mod h1:J4ad9Vo8ZCWQ2GMrC4UCQy1JpCbwU9m3EOqtpKwwwHI=
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
-github.com/golang/glog v1.0.0 h1:nfP3RFugxnNRyKgeWd4oI1nYvXpxrx8ck8ZrcizshdQ=
github.com/golang/glog v1.0.0/go.mod h1:EWib/APOK0SL3dFbYqvxE3UYd8E6s1ouQ7iEp/0LWV4=
+github.com/golang/glog v1.1.0 h1:/d3pCKDPWNnvIWe0vVUpNP32qc8U3PDVxySP/y360qE=
+github.com/golang/glog v1.1.0/go.mod h1:pfYeQZ3JWZoXTV5sFc986z3HTpwQs9At6P4ImfuP3NQ=
github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
@@ -1004,6 +1004,8 @@ github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLe
github.com/google/pprof v0.0.0-20220318212150-b2ab0324ddda/go.mod h1:KgnwoLYCZ8IQu3XUZ8Nc/bM9CCZFOyjUNOSygVozoDg=
github.com/google/pprof v0.0.0-20220608213341-c488b8fa1db3/go.mod h1:gSuNB+gJaOiQKLEZ+q+PK9Mq3SOzhRcw2GsGS/FhYDk=
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
+github.com/google/s2a-go v0.1.4 h1:1kZ/sQM3srePvKs3tXAvQzo66XfcReoqFpIpIccE7Oc=
+github.com/google/s2a-go v0.1.4/go.mod h1:Ej+mSEMGRnqRzjc7VtF+jdBwYG5fuJfiZ8ELkjEwM0A=
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4=
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ=
github.com/google/subcommands v1.0.1/go.mod h1:ZjhPrFU+Olkh9WazFPsl27BQ4UPiG37m3yTrtFlrHVk=
@@ -1017,8 +1019,9 @@ github.com/google/wire v0.5.0 h1:I7ELFeVBr3yfPIcc8+MWvrjk+3VjbcSzoXm3JVa+jD8=
github.com/google/wire v0.5.0/go.mod h1:ngWDr9Qvq3yZA10YrxfyGELY/AFWGVpy9c1LTRi1EoU=
github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8=
github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8=
-github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs=
github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg=
+github.com/googleapis/enterprise-certificate-proxy v0.2.3 h1:yk9/cqRKtT9wXZSsRH9aurXEpJX+U6FLtpYTdC3R06k=
+github.com/googleapis/enterprise-certificate-proxy v0.2.3/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k=
github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk=
github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0=
@@ -1028,8 +1031,8 @@ github.com/googleapis/gax-go/v2 v2.3.0/go.mod h1:b8LNqSzNabLiUpXKkY7HAR5jr6bIT99
github.com/googleapis/gax-go/v2 v2.4.0/go.mod h1:XOTVJ59hdnfJLIP/dh8n5CGryZR2LxK9wbMD5+iXC6c=
github.com/googleapis/gax-go/v2 v2.5.1/go.mod h1:h6B0KMMFNtI2ddbGJn3T3ZbwkeT6yqEF02fYlzkUCyo=
github.com/googleapis/gax-go/v2 v2.6.0/go.mod h1:1mjbznJAPHFpesgE5ucqfYEscaz5kMdcIDwU/6+DDoY=
-github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ=
-github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8=
+github.com/googleapis/gax-go/v2 v2.11.0 h1:9V9PWXEsWnPpQhu/PeQIkS4eGzMlTLGgt80cUUI8Ki4=
+github.com/googleapis/gax-go/v2 v2.11.0/go.mod h1:DxmR61SGKkGLa2xigwuZIQpkCI2S5iydzRfb3peWZJI=
github.com/googleapis/gnostic v0.4.1/go.mod h1:LRhVm6pbyptWbWbuZ38d1eyptfvIytN3ir6b65WBswg=
github.com/googleapis/gnostic v0.5.1/go.mod h1:6U4PtQXGIEt/Z3h5MAT7FNofLnw9vXk2cUuW7uA/OeU=
github.com/googleapis/gnostic v0.5.5/go.mod h1:7+EbHbldMins07ALC74bsA81Ovc97DwqyJO1AENw9kA=
@@ -1094,8 +1097,8 @@ github.com/hashicorp/go-hclog v0.12.2/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39
github.com/hashicorp/go-hclog v0.14.1/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ=
github.com/hashicorp/go-hclog v0.16.2/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ=
github.com/hashicorp/go-hclog v1.2.2/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M=
-github.com/hashicorp/go-hclog v1.4.0 h1:ctuWFGrhFha8BnnzxqeRGidlEcQkDyL5u8J8t5eA11I=
-github.com/hashicorp/go-hclog v1.4.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M=
+github.com/hashicorp/go-hclog v1.5.0 h1:bI2ocEMgcVlz55Oj1xZNBsVi900c7II+fWDyV9o+13c=
+github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M=
github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
github.com/hashicorp/go-immutable-radix v1.2.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc=
@@ -1109,8 +1112,8 @@ github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+l
github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM=
github.com/hashicorp/go-plugin v1.4.3/go.mod h1:5fGEH17QVwTTcR0zV7yhDPLLmFX9YSZ38b18Udy6vYQ=
github.com/hashicorp/go-plugin v1.4.4/go.mod h1:viDMjcLJuDui6pXb8U4HVfb8AamCWhHGUjr2IrTF67s=
-github.com/hashicorp/go-plugin v1.4.8 h1:CHGwpxYDOttQOY7HOWgETU9dyVjOXzniXDqJcYJE1zM=
-github.com/hashicorp/go-plugin v1.4.8/go.mod h1:viDMjcLJuDui6pXb8U4HVfb8AamCWhHGUjr2IrTF67s=
+github.com/hashicorp/go-plugin v1.5.1 h1:oGm7cWBaYIp3lJpx1RUEfLWophprE2EV/KUeqBYo+6k=
+github.com/hashicorp/go-plugin v1.5.1/go.mod h1:w1sAEES3g3PuV/RzUrgow20W2uErMly84hhD3um1WL4=
github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs=
github.com/hashicorp/go-retryablehttp v0.6.6/go.mod h1:vAew36LZh98gCBJNLH42IQ1ER/9wtLZZ8meHqQvEYWY=
github.com/hashicorp/go-retryablehttp v0.7.1 h1:sUiuQAnLlbvmExtFQs72iFW/HXeUn8Z1aJLQ4LJJbTQ=
@@ -1149,12 +1152,12 @@ github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ
github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
github.com/hashicorp/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+lJfyTc=
github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4=
-github.com/hashicorp/hc-install v0.5.0 h1:D9bl4KayIYKEeJ4vUDe9L5huqxZXczKaykSRcmQ0xY0=
-github.com/hashicorp/hc-install v0.5.0/go.mod h1:JyzMfbzfSBSjoDCRPna1vi/24BEDxFaCPfdHtM5SCdo=
+github.com/hashicorp/hc-install v0.6.0 h1:fDHnU7JNFNSQebVKYhHZ0va1bC6SrPQ8fpebsvNr2w4=
+github.com/hashicorp/hc-install v0.6.0/go.mod h1:10I912u3nntx9Umo1VAeYPUUuehk0aRQJYpMwbX5wQA=
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.18.0 h1:wYnG7Lt31t2zYkcquwgKo6MWXzRUDIeIVU5naZwHLl8=
+github.com/hashicorp/hcl/v2 v2.18.0/go.mod h1:ThLC89FV4p9MPW804KVbe/cEXoQ8NZEh+JtMeeGErHE=
github.com/hashicorp/hil v0.0.0-20190212132231-97b3a9cdfa93 h1:T1Q6ag9tCwun16AW+XK3tAql24P4uTGUMIn1/92WsQQ=
github.com/hashicorp/hil v0.0.0-20190212132231-97b3a9cdfa93/go.mod h1:n2TSygSNwsLJ76m8qFXTSc7beTb+auJxYdqrnoqwZWE=
github.com/hashicorp/logutils v1.0.0 h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI65Y=
@@ -1167,24 +1170,24 @@ github.com/hashicorp/memberlist v0.3.1/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOn
github.com/hashicorp/nomad/api v0.0.0-20220629141207-c2428e1673ec/go.mod h1:jP79oXjopTyH6E8LF0CEMq67STgrlmBRIyijA0tuR5o=
github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc=
github.com/hashicorp/serf v0.9.6/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4=
-github.com/hashicorp/terraform-exec v0.17.3 h1:MX14Kvnka/oWGmIkyuyvL6POx25ZmKrjlaclkx3eErU=
-github.com/hashicorp/terraform-exec v0.17.3/go.mod h1:+NELG0EqQekJzhvikkeQsOAZpsw0cv/03rbeQJqscAI=
-github.com/hashicorp/terraform-json v0.15.0 h1:/gIyNtR6SFw6h5yzlbDbACyGvIhKtQi8mTsbkNd79lE=
-github.com/hashicorp/terraform-json v0.15.0/go.mod h1:+L1RNzjDU5leLFZkHTFTbJXaoqUC6TqXlFgDoOXrtvk=
-github.com/hashicorp/terraform-plugin-framework v1.1.1 h1:PbnEKHsIU8KTTzoztHQGgjZUWx7Kk8uGtpGMMc1p+oI=
-github.com/hashicorp/terraform-plugin-framework v1.1.1/go.mod h1:DyZPxQA+4OKK5ELxFIIcqggcszqdWWUpTLPHAhS/tkY=
+github.com/hashicorp/terraform-exec v0.19.0 h1:FpqZ6n50Tk95mItTSS9BjeOVUb4eg81SpgVtZNNtFSM=
+github.com/hashicorp/terraform-exec v0.19.0/go.mod h1:tbxUpe3JKruE9Cuf65mycSIT8KiNPZ0FkuTE3H4urQg=
+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-validators v0.10.0 h1:4L0tmy/8esP6OcvocVymw52lY0HyQ5OxB7VNl7k4bS0=
-github.com/hashicorp/terraform-plugin-go v0.14.3 h1:nlnJ1GXKdMwsC8g1Nh05tK2wsC3+3BL/DBBxFEki+j0=
-github.com/hashicorp/terraform-plugin-go v0.14.3/go.mod h1:7ees7DMZ263q8wQ6E4RdIdR6nHHJtrdt4ogX5lPkX1A=
-github.com/hashicorp/terraform-plugin-log v0.8.0 h1:pX2VQ/TGKu+UU1rCay0OlzosNKe4Nz1pepLXj95oyy0=
-github.com/hashicorp/terraform-plugin-log v0.8.0/go.mod h1:1myFrhVsBLeylQzYYEV17VVjtG8oYPRFdaZs7xdW2xs=
+github.com/hashicorp/terraform-plugin-go v0.19.0 h1:BuZx/6Cp+lkmiG0cOBk6Zps0Cb2tmqQpDM3iAtnhDQU=
+github.com/hashicorp/terraform-plugin-go v0.19.0/go.mod h1:EhRSkEPNoylLQntYsk5KrDHTZJh9HQoumZXbOGOXmec=
+github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9TFvymaRGZED3FCV0=
+github.com/hashicorp/terraform-plugin-log v0.9.0/go.mod h1:rKL8egZQ/eXSyDqzLUuwUYLVdlYeamldAHSxjUFADow=
github.com/hashicorp/terraform-plugin-sdk v1.7.0 h1:B//oq0ZORG+EkVrIJy0uPGSonvmXqxSzXe8+GhknoW0=
-github.com/hashicorp/terraform-plugin-sdk/v2 v2.25.0 h1:iNRjaJCatQS1rIbHs/vDvJ0GECsaGgxx780chA2Irpk=
-github.com/hashicorp/terraform-plugin-sdk/v2 v2.25.0/go.mod h1:XnVNLIS6bdMJbjSDujhX4Rlk24QpbGKbnrVFM4tZ7OU=
-github.com/hashicorp/terraform-registry-address v0.1.0 h1:W6JkV9wbum+m516rCl5/NjKxCyTVaaUBbzYcMzBDO3U=
-github.com/hashicorp/terraform-registry-address v0.1.0/go.mod h1:EnyO2jYO6j29DTHbJcm00E5nQTFeTtyZH3H5ycydQ5A=
-github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 h1:HKLsbzeOsfXmKNpr3GiT18XAblV0BjCbzL8KQAMZGa0=
-github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734/go.mod h1:kNDNcF7sN4DocDLBkQYz73HGKwN1ANB1blq4lIYLYvg=
+github.com/hashicorp/terraform-plugin-sdk/v2 v2.29.0 h1:wcOKYwPI9IorAJEBLzgclh3xVolO7ZorYd6U1vnok14=
+github.com/hashicorp/terraform-plugin-sdk/v2 v2.29.0/go.mod h1:qH/34G25Ugdj5FcM95cSoXzUgIbgfhVLXCcEcYaMwq8=
+github.com/hashicorp/terraform-registry-address v0.2.2 h1:lPQBg403El8PPicg/qONZJDC6YlgCVbWDtNmmZKtBno=
+github.com/hashicorp/terraform-registry-address v0.2.2/go.mod h1:LtwNbCihUoUZ3RYriyS2wF/lGPB6gF9ICLRtuDk7hSo=
+github.com/hashicorp/terraform-svchost v0.1.1 h1:EZZimZ1GxdqFRinZ1tpJwVxxt49xc/S52uzrw4x0jKQ=
+github.com/hashicorp/terraform-svchost v0.1.1/go.mod h1:mNsjQfZyf/Jhz35v6/0LWcv26+X7JPS+buii2c9/ctc=
github.com/hashicorp/vault/api v1.7.2/go.mod h1:xbfA+1AvxFseDzxxdWaL0uO99n1+tndus4GCrtouy0M=
github.com/hashicorp/vault/api v1.8.2 h1:C7OL9YtOtwQbTKI9ogB0A1wffRbCN+rH/LLCHO3d8HM=
github.com/hashicorp/vault/api v1.8.2/go.mod h1:ML8aYzBIhY5m1MD1B2Q0JV89cC85YVH4t5kBaZiyVaE=
@@ -1200,8 +1203,6 @@ github.com/hetznercloud/hcloud-go v1.35.0/go.mod h1:mepQwR6va27S3UQthaEPGS86jtzS
github.com/hexops/autogold v1.3.0 h1:IEtGNPxBeBu8RMn8eKWh/Ll9dVNgSnJ7bp/qHgMQ14o=
github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM=
github.com/hexops/valast v1.4.0 h1:sFzyxPDP0riFQUzSBXTCCrAbbIndHPWMndxuEjXdZlc=
-github.com/hinshun/vt10x v0.0.0-20180616224451-1954e6464174/go.mod h1:DqJ97dSdRW1W22yXSB90986pcOyQ7r45iio1KN2ez1A=
-github.com/hinshun/vt10x v0.0.0-20220119200601-820417d04eec h1:qv2VnGeEQHchGaZ/u7lxST/RaJw+cv273q79D81Xbog=
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=
@@ -1213,15 +1214,13 @@ 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=
github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=
github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=
-github.com/imdario/mergo v0.3.13 h1:lFzP57bqS/wsqKssCGmtLAb8A0wKjLGrve2q3PPVcBk=
-github.com/imdario/mergo v0.3.13/go.mod h1:4lJ1jqUDcsbIECGy0RUJAXNIhg+6ocWgb1ALK2O4oXg=
+github.com/imdario/mergo v0.3.15 h1:M8XP7IuFNsqUx6VPK2P9OSmsYsI/YFaGil0uD21V3dM=
+github.com/imdario/mergo v0.3.15/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY=
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
@@ -1278,8 +1277,8 @@ github.com/jcmturner/gokrb5/v8 v8.4.2/go.mod h1:sb+Xq/fTY5yktf/VxLsE3wlfPqQjp0aW
github.com/jcmturner/rpc/v2 v2.0.3/go.mod h1:VUJYCIDm3PVOEHw8sgt091/20OJjskO/YJki3ELg/Hc=
github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
github.com/jessevdk/go-flags v1.5.0/go.mod h1:Fw0T6WPc1dYxT4mKEZRfG5kJhaTDP9pj1c2EWnYs/m4=
-github.com/jhump/protoreflect v1.6.0 h1:h5jfMVslIg6l29nsMs0D8Wj17RDVdNYti0vDN/PZZoE=
github.com/jhump/protoreflect v1.6.0/go.mod h1:eaTn3RZAmMBcV0fifFvlm6VHNz3wSkYyXYWUh7ymB74=
+github.com/jhump/protoreflect v1.15.1 h1:HUMERORf3I3ZdX05WaQ6MIpd/NJ434hTp5YiKgfCL6c=
github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
github.com/jmespath/go-jmespath v0.0.0-20160803190731-bd40a432e4c7/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
@@ -1308,9 +1307,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 v0.0.0-20201106050909-4977a11b4351/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM=
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=
@@ -1338,7 +1334,6 @@ github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfn
github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk=
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
-github.com/kr/pty v1.1.4/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA=
github.com/kr/pty v1.1.8/go.mod h1:O1sed60cT9XZ5uDucP5qwvh+TE3NnUj51EiZO/lmSfw=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
@@ -1358,6 +1353,8 @@ github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0U
github.com/linode/linodego v1.4.0/go.mod h1:PVsRxSlOiJyvG4/scTszpmZDTdgS+to3X6eS8pRrWI8=
github.com/linode/linodego v1.8.0/go.mod h1:heqhl91D8QTPVm2k9qZHP78zzbOdTFLXE9NJc3bcc50=
github.com/linuxkit/virtsock v0.0.0-20201010232012-f8cee7dfc7a3/go.mod h1:3r6x7q95whyfWQpmGZTu3gk3v2YkMi05HEzl7Tf7YEo=
+github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY=
+github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
github.com/lyft/protoc-gen-star v0.6.0/go.mod h1:TGAoBVkt8w7MPG72TrKIu85MIdXwDuzJYeZuUPFPNwA=
github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ=
github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=
@@ -1375,7 +1372,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=
@@ -1390,20 +1386,22 @@ github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hd
github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84=
github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE=
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
-github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y=
github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
+github.com/mattn/go-isatty v0.0.18 h1:DOKFKCQ7FNG2L1rbrmstDN4QVRdS89Nkh85u68Uwp98=
+github.com/mattn/go-isatty v0.0.18/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
+github.com/mattn/go-localereader v0.0.1 h1:ygSAOl7ZXTx4RdPYinUpg6W99U8jWvWi9Ye2JC/oIi4=
+github.com/mattn/go-localereader v0.0.1/go.mod h1:8fBrzywKY7BI3czFoHkuzRoWE9C+EiG4R1k4Cjx5p88=
github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
-github.com/mattn/go-runewidth v0.0.13 h1:lTGmDsbAYt5DmK6OnoV7EuIF1wEIFAcxld6ypU4OSgU=
-github.com/mattn/go-runewidth v0.0.13/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
+github.com/mattn/go-runewidth v0.0.12/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk=
+github.com/mattn/go-runewidth v0.0.14 h1:+xnbZSEeDbOIg5/mE6JF0w6n9duR1l3/WmbinWVwUuU=
+github.com/mattn/go-runewidth v0.0.14/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
github.com/mattn/go-shellwords v1.0.3/go.mod h1:3xCvwCdWdlDJUrvuMn7Wuy9eWs4pE8vqg+NOMyg4B2o=
github.com/mattn/go-shellwords v1.0.6/go.mod h1:3xCvwCdWdlDJUrvuMn7Wuy9eWs4pE8vqg+NOMyg4B2o=
github.com/mattn/go-shellwords v1.0.12/go.mod h1:EZzvwXDESEeg03EKmM+RmDnNOPKG4lLtQsUlTZDWQ8Y=
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/microsoft/go-mssqldb v0.20.0 h1:jAfvs5TIR311fEuNgohFzMtUO0IcCHyI1kWAVws4ES8=
github.com/microsoft/go-mssqldb v0.20.0/go.mod h1:ukJCBnnzLzpVF0qYRT+eg1e+eSwjeQ7IvenUv8QPook=
@@ -1448,7 +1446,6 @@ github.com/mitchellh/osext v0.0.0-20151018003038-5e2d6d41470f/go.mod h1:OkQIRizQ
github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=
github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ=
github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=
-github.com/mmcloughlin/avo v0.5.0/go.mod h1:ChHFdoV7ql95Wi7vuq2YT1bwCJqiWdZrQ1im3VujLYM=
github.com/moby/locker v1.0.1/go.mod h1:S7SDdo5zpBK84bzzVlKr2V0hz+7x9hWbYC/kq7oQppc=
github.com/moby/spdystream v0.2.0/go.mod h1:f7i0iNDQJ059oMTcWxx8MA/zKFIuD/lY+0GqbN2Wy8c=
github.com/moby/sys/mountinfo v0.4.0/go.mod h1:rEr8tzG/lsIZHBtN/JjGG+LMYx9eXgW2JI+6q0qou+A=
@@ -1472,8 +1469,14 @@ github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe/go.mod h1:wL8QJ
github.com/montanaflynn/stats v0.6.6/go.mod h1:etXPPgVO6n31NxCd9KQUMvCM+ve0ruNzt6R8Bnaayow=
github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc=
github.com/mrunalp/fileutils v0.5.0/go.mod h1:M1WthSahJixYnrXQl/DFQuteStB1weuxD2QJNHXfbSQ=
+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=
github.com/muesli/cancelreader v0.2.2 h1:3I4Kt4BQjOR54NavqnDogx/MIoWBFa0StPA8ELUXHmA=
github.com/muesli/cancelreader v0.2.2/go.mod h1:3XuTXfFS2VjM+HTLZY9Ak0l6eUKfijIfMUZ4EgX0QYo=
+github.com/muesli/reflow v0.3.0 h1:IFsN6K9NfGtjeggFP+68I4chLZV2yIKsXJFNZ+eWh6s=
+github.com/muesli/reflow v0.3.0/go.mod h1:pbwTDkVPibjO2kyvBQRBxTWEEGDGq0FlB1BIKtnHY/8=
+github.com/muesli/termenv v0.15.1 h1:UzuTb/+hhlBugQz28rpzey4ZuKcZ03MeKsoG7IJZIxs=
+github.com/muesli/termenv v0.15.1/go.mod h1:HeAQPTzpfs016yGtA4g00CsdYnVLJvxsS4ANqrZs2sQ=
github.com/munnerz/goautoneg v0.0.0-20120707110453-a547fc61f48d/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
@@ -1660,26 +1663,29 @@ 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.2 h1:fpBwf1NHf3j5YuigOWsXPvJCAFivEp1D6aOlYIrSbr0=
-github.com/pulumi/pulumi-java/pkg v0.9.2/go.mod h1:+5V4jggi3063hksi28zYvLm42UWVg3VqpR6qGZraIdM=
-github.com/pulumi/pulumi-terraform-bridge/pf v0.11.1 h1:eqpxk2X5YooyhF1L8YkzdT2Io3pdE75Y/b3SnafKVRM=
-github.com/pulumi/pulumi-terraform-bridge/pf v0.11.1/go.mod h1:OPJixCnFgMXgBayLTEXouG1ef28YONNSQpXk7t9V34k=
+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.3 h1:Y41ChQl59yNIM7r2oeIAdB3ysV9uHQcIio9yEcqeEdI=
+github.com/pulumi/pulumi-terraform-bridge/pf v0.18.3/go.mod h1:apif6z4X21j859e6+gKmw4WoaalaF8TyKMVSa8kgjAI=
github.com/pulumi/pulumi-terraform-bridge/testing v0.0.1 h1:SCg1gjfY9N4yn8U8peIUYATifjoDABkyR7H9lmefsfc=
-github.com/pulumi/pulumi-terraform-bridge/v3 v3.49.1-0.20230605212537-46a92ef1828f h1:qErYoHSGpm3t7t9n09ZD3l/pWWDgMkoSrDFWUmYmVZM=
-github.com/pulumi/pulumi-terraform-bridge/v3 v3.49.1-0.20230605212537-46a92ef1828f/go.mod h1:QdMHrg7J/OnXdm68lQROGLivbJlwMpHq75kdnigDSWw=
-github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4 h1:rIzMmtcVpPX8ynaz6/nW5AHNY63DiNfCohqmxWvMpM4=
-github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4/go.mod h1:Kt8RIZWa/N8rW3+0g6NrqCBmF3o+HuIhFaZpssEkG6w=
-github.com/pulumi/pulumi-yaml v1.1.1 h1:8pyBNIU8+ym0wYpjhsCqN+cutygfK1XbhY2YEeNfyXY=
-github.com/pulumi/pulumi-yaml v1.1.1/go.mod h1:GhpdS6rFpwqvUtKdA+fQy8P28iNvncng39IXh5q68vE=
-github.com/pulumi/pulumi/pkg/v3 v3.69.0 h1:IP9WCBFYRXWzbEFNsSquBoHKF5ux32XImKpRdju8HjU=
-github.com/pulumi/pulumi/pkg/v3 v3.69.0/go.mod h1:GbsJqE2bGotPY+mj07LKlpps9ZzAlV7qRQ/u77kw9yk=
-github.com/pulumi/pulumi/sdk/v3 v3.69.0 h1:WENc7menQMT10I34kVg1ZatQTMlifovuZ9i8CcTrk7A=
-github.com/pulumi/pulumi/sdk/v3 v3.69.0/go.mod h1:BUUBfQZsH0FPuznRfFHkR+b96VlXELnn+DgidFj4XSQ=
+github.com/pulumi/pulumi-terraform-bridge/v3 v3.63.2 h1:6JRJz3Wk7O9OhNFbxCrNvPVQAK+prBm6XBuSlIVqRnU=
+github.com/pulumi/pulumi-terraform-bridge/v3 v3.63.2/go.mod h1:ye7JUFqTNbBh6ohcr1KpyXNv+kYFYvZAIqXqts4Ialc=
+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.91.1 h1:xHnyEwJO9we2zCiM9gHTkJxjZ6a6yi5vYCwWHCYRj9Y=
+github.com/pulumi/pulumi/pkg/v3 v3.91.1/go.mod h1:dzBQDJyCOEhtBVN5INA5/i9yG9DZlsStl/mAkrhs9II=
+github.com/pulumi/pulumi/sdk/v3 v3.91.1 h1:6I9GMmHv23X+G6hoduU1XE6hBWSNtB+zcb1MX17YvlA=
+github.com/pulumi/pulumi/sdk/v3 v3.91.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.0-20201211191010-ad4715e9285e h1:Dik4Qe/+xguB8JagPyXNlbOnRiXGmq/PSPQTGunYnTk=
+github.com/pulumi/terraform-diff-reader v0.0.2 h1:kTE4nEXU3/SYXESvAIem+wyHMI3abqkI3OhJ0G04LLI=
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=
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=
@@ -1689,8 +1695,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=
@@ -1714,16 +1720,14 @@ github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9/go.mod h1:fCa7OJZ/9DRTnOKmxvT6
github.com/sclevine/agouti v3.0.0+incompatible/go.mod h1:b4WX9W9L1sfQKXeJf1mUTLZKJ48R1S7H23Ji7oFO5Bw=
github.com/sclevine/spec v1.2.0/go.mod h1:W4J29eT/Kzv7/b9IWLB055Z+qvVC9vt0Arko24q7p+U=
github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc=
-github.com/sebdah/goldie v1.0.0/go.mod h1:jXP4hmWywNEwZzhMuv2ccnqTSFpuq8iyQhtQdkkZBH4=
github.com/seccomp/libseccomp-golang v0.9.1/go.mod h1:GbW5+tmTXfcxTToHLXlScSlAvWlF4P2Ca7zGrPiEpWo=
github.com/seccomp/libseccomp-golang v0.9.2-0.20210429002308-3879420cc921/go.mod h1:JA8cRccbGaA1s33RQf7Y1+q9gHmZX1yB/z9WDN1C6fg=
github.com/segmentio/asm v1.1.3 h1:WM03sfUOENvvKexOLp+pCqgb/WDjsi7EK8gIsICtzhc=
github.com/segmentio/asm v1.1.3/go.mod h1:Ld3L4ZXGNcSLRg4JBsZ3//1+f/TjYl0Mzen/DQy1EJg=
github.com/segmentio/encoding v0.3.5 h1:UZEiaZ55nlXGDL92scoVuw00RmiRCazIEmvPSbSvt8Y=
github.com/segmentio/encoding v0.3.5/go.mod h1:n0JeuIqEQrQoPDGsjo8UNd1iA0U8d8+oHAA4E3G3OxM=
-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/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24/go.mod h1:M+9NzErvs504Cn4c5DxATwIqPbtswREoFCre64PpcG4=
github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o=
github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8=
@@ -1741,8 +1745,8 @@ github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6Mwd
github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88=
github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
github.com/sirupsen/logrus v1.8.1/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/skeema/knownhosts v1.2.0 h1:h9r9cf0+u7wSE+M183ZtMGgOJKiL96brpaz5ekfJCpM=
+github.com/skeema/knownhosts v1.2.0/go.mod h1:g4fPeYpque7P0xefxtGzV81ihjC8sX2IqpAoNkjxbMo=
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=
github.com/smartystreets/assertions v1.2.0 h1:42S6lae5dvLc7BrLu/0ugRtcFVjoJNMC/N3yZFZkDFs=
github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=
@@ -1790,7 +1794,6 @@ github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSS
github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
github.com/stretchr/testify v0.0.0-20180303142811-b89eecf5ca5d/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
-github.com/stretchr/testify v1.2.1/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
@@ -1802,8 +1805,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.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8=
-github.com/stretchr/testify v1.8.2/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/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=
@@ -1844,17 +1847,13 @@ github.com/vishvananda/netns v0.0.0-20210104183010-2eb08e3e575f/go.mod h1:DD4vA1
github.com/vmihailenco/msgpack v3.3.3+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk=
github.com/vmihailenco/msgpack v4.0.4+incompatible h1:dSLoQfGFAo3F6OoNhwUmLwVgaUXK79GlxNBwueZn0xI=
github.com/vmihailenco/msgpack v4.0.4+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk=
-github.com/vmihailenco/msgpack/v4 v4.3.12 h1:07s4sz9IReOgdikxLTKNbBdqDMLsjPKXwvCazn8G65U=
-github.com/vmihailenco/msgpack/v4 v4.3.12/go.mod h1:gborTTJjAo/GWTqqRjrLCn9pgNN+NXzzngzBKDPIqw4=
github.com/vmihailenco/msgpack/v5 v5.3.5 h1:5gO0H1iULLWGhs2H5tbAHIZTV8/cYafcFOr9znI5mJU=
-github.com/vmihailenco/tagparser v0.1.1/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI=
-github.com/vmihailenco/tagparser v0.1.2 h1:gnjoVuB/kljJ5wICEEOpx98oXMWPLj22G67Vbd1qPqc=
-github.com/vmihailenco/tagparser v0.1.2/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI=
+github.com/vmihailenco/msgpack/v5 v5.3.5/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q/V5KbhBonMG9jc=
github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g=
+github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds=
github.com/vultr/govultr/v2 v2.17.2/go.mod h1:ZFOKGWmgjytfyjeyAdhQlSWwTjh2ig+X49cAp50dzXI=
github.com/willf/bitset v1.1.11-0.20200630133818-d5bec3311243/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPySAYV4=
github.com/willf/bitset v1.1.11/go.mod h1:83CECat5yLh5zVOf4P1ErAgKA5UDvKtgyUABdr3+MjI=
-github.com/xanzy/ssh-agent v0.3.0/go.mod h1:3s9xbODqPuuhK9JV1R321M/FlMZSBvE5aY6eAcqrDh0=
github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM=
github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw=
github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI=
@@ -1881,12 +1880,8 @@ github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5t
github.com/yvasiyarov/go-metrics v0.0.0-20140926110328-57bccd1ccd43/go.mod h1:aX5oPXxHm3bOH+xeAttToC8pqch2ScQN/JoXYupl6xs=
github.com/yvasiyarov/gorelic v0.0.0-20141212073537-a9bba5b9ab50/go.mod h1:NUSPSUX/bi6SeDMUh6brw0nXpxHnc96TguQh0+r/ssA=
github.com/yvasiyarov/newrelic_platform_go v0.0.0-20140908184405-b21fdbd4370f/go.mod h1:GlGEuHIJweS1mbCqG+7vt2nvWLzLLnRHbXz5JKd/Qbg=
-github.com/zclconf/go-cty v1.1.0/go.mod h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s=
-github.com/zclconf/go-cty v1.2.0/go.mod h1:hOPWgoHbaTUnI5k4D2ld+GRpFJSCe6bCM7m1q/N4PQ8=
-github.com/zclconf/go-cty v1.10.0/go.mod h1:vVKLxnk3puL4qRAv72AO+W99LUD4da90g3uUAzyuvAk=
-github.com/zclconf/go-cty v1.13.1 h1:0a6bRwuiSHtAmqCqNOE+c2oHgepv0ctoxU4FUe43kwc=
-github.com/zclconf/go-cty v1.13.1/go.mod h1:YKQzy/7pZ7iq2jNFzy5go57xdxdWoLLpaEp4u238AE0=
-github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b/go.mod h1:ZRKQfBXbGkpdV6QMzT3rU1kSTAnfu1dO8dPKjYprgj8=
+github.com/zclconf/go-cty v1.14.0 h1:/Xrd39K7DXbHzlisFP9c4pHao4yyf+/Ug9LEz+Y/yhc=
+github.com/zclconf/go-cty v1.14.0/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE=
github.com/zclconf/go-cty-yaml v1.0.1 h1:up11wlgAaDvlAGENcFDnZgkn0qUJurso7k6EpURKNF8=
github.com/zenazn/goji v0.9.0/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q=
go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
@@ -1988,17 +1983,14 @@ gocloud.dev v0.27.0 h1:j0WTUsnKTxCsWO7y8T+YCiBZUmLl9w/WIowqAY3yo0g=
gocloud.dev v0.27.0/go.mod h1:YlYKhYsY5/1JdHGWQDkAuqkezVKowu7qbe9aIeUF6p0=
gocloud.dev/secrets/hashivault v0.27.0 h1:AAeGJXr0tiHHJgg5tL8atOGktB4eK9EJAqkZbPKAcOo=
gocloud.dev/secrets/hashivault v0.27.0/go.mod h1:offqsI5oj0B0bVHZdfk/88uIb3NnN93ia8py0yvRlHY=
-golang.org/x/arch v0.1.0/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8=
golang.org/x/crypto v0.0.0-20171113213409-9f005a07e0d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20181009213950-7c1a557ab941/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
-golang.org/x/crypto v0.0.0-20190219172222-a4c6cb3142f2/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20190411191339-88737f569e3a/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE=
golang.org/x/crypto v0.0.0-20190422162423-af44ce270edf/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE=
golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
-golang.org/x/crypto v0.0.0-20190530122614-20be4c3c3ed5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
@@ -2025,16 +2017,14 @@ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5y
golang.org/x/crypto v0.0.0-20211202192323-5770296d904e/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
golang.org/x/crypto v0.0.0-20220214200702-86341886e292/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
+golang.org/x/crypto v0.0.0-20220314234659-1baeb1ce4c0b/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
-golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
-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.5.0/go.mod h1:NK/OQwhpMQP3MwtdjgLlYHnH9ebylxKWv3e0fK+mkQU=
-golang.org/x/crypto v0.6.0 h1:qfktjS5LUO+fFKeJXZ+ikTRijMmljikvG68fpMMruSc=
-golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58=
+golang.org/x/crypto v0.3.1-0.20221117191849-2c476679df9a/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4=
+golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU=
+golang.org/x/crypto v0.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=
@@ -2045,6 +2035,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=
@@ -2074,13 +2066,11 @@ golang.org/x/mod v0.5.0/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro=
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.7.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
-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.8.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=
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20181011144130-49bb7cea24b1/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
@@ -2106,7 +2096,6 @@ golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLL
golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20191004110552-13f9640d40b9/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
-golang.org/x/net v0.0.0-20191009170851-d66e71096ffb/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
@@ -2134,7 +2123,6 @@ golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v
golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc=
-golang.org/x/net v0.0.0-20210326060303-6b1517762897/go.mod h1:uSPa2vr4CLtc/ILN5odXGNXS6mhrKVzTaCXzk9m6W3k=
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
golang.org/x/net v0.0.0-20210410081132-afb366fc7cd1/go.mod h1:9tjilg8BloeKEkVJvy7fQ90B1CfIiPueXVOjqfkSzI8=
golang.org/x/net v0.0.0-20210421230115-4e50805a0758/go.mod h1:72T/g9IO56b78aLF+1Kcs5dz7/ng1VjMUvfKvpfy+jM=
@@ -2160,14 +2148,14 @@ golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug
golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
golang.org/x/net v0.0.0-20220802222814-0bcc04d9c69b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk=
-golang.org/x/net v0.0.0-20220826154423-83b083e8dc8b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk=
golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk=
golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/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.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws=
-golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
+golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
+golang.org/x/net v0.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=
@@ -2197,8 +2185,8 @@ golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri
golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg=
golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg=
golang.org/x/oauth2 v0.1.0/go.mod h1:G9FE4dLTsbXUu90h/Pf85g4w1D+SSAgR+q46nJZ8M4A=
-golang.org/x/oauth2 v0.4.0 h1:NF0gk8LVPg1Ml7SSbGyySuoxdsXitj7TvgvuRxIMc/M=
-golang.org/x/oauth2 v0.4.0/go.mod h1:RznEsdpjGAINPTOF0UH/t+xJ75L18YO3Ho6Pyn+uRec=
+golang.org/x/oauth2 v0.8.0 h1:6dkIjl3j3LtZ/O3sTgZTMsLKSftL/B8Zgq4huOIIUu8=
+golang.org/x/oauth2 v0.8.0/go.mod h1:yr7u4HXZRm1R1kBWqr/xKNqewf0plRYoB7sla+BCIXE=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
@@ -2214,8 +2202,9 @@ golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJ
golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/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.0.0-20220929204114-8fcdb60fdcc0/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.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=
@@ -2235,7 +2224,6 @@ golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190514135907-3a4b5fb9f71f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190522044717-8097e1b27ff5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190530182044-ad28b68e88f1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190531175056-4c3a928424d2/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190602015325-4c4f7f33c9ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
@@ -2316,7 +2304,6 @@ golang.org/x/sys v0.0.0-20210420072515-93ed5bcd2bfe/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210426230700-d19ff857e887/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20210502180810-71e4cd670f79/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210503080704-8803ae5d1324/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
@@ -2363,24 +2350,24 @@ golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220731174439-a90be440212d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20220825204002-c680a09ffe64/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
+golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.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=
golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
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.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ=
-golang.org/x/term v0.6.0 h1:clScbb1cHjoCkyRbWwBEUZ5H/tIFu5TAXIqaZD0Gcjw=
+golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
+golang.org/x/term v0.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=
@@ -2390,10 +2377,12 @@ golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.5/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.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ=
golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
-golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
-golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
+golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
+golang.org/x/text v0.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=
@@ -2405,8 +2394,9 @@ golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac/go.mod h1:tRJNPiyCQ0inRvYxb
golang.org/x/time v0.0.0-20220210224613-90d013bbcef8/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20220224211638-0e9765cccd65/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20220609170525-579cf78fd858/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
-golang.org/x/time v0.0.0-20220722155302-e5dcc9cfc0b9 h1:ftMN5LMiBFjbzleLqtoBZk7KdJwhuybIU+FckUHgoyQ=
golang.org/x/time v0.0.0-20220722155302-e5dcc9cfc0b9/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
+golang.org/x/time v0.3.0 h1:rg5rLMjNzMS1RkNLzCG38eapWhnYLFYXDXj2gOlr8j4=
+golang.org/x/time v0.3.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
@@ -2491,8 +2481,9 @@ golang.org/x/tools v0.1.9/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU=
golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E=
golang.org/x/tools v0.1.11/go.mod h1:SgwaegtQh8clINPpECJMqnxLv9I09HLqnW3RMqW0CA4=
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
-golang.org/x/tools v0.2.0/go.mod h1:y4OqIKeOV/fWJetJ8bXPU1sEVniLMIyDAZWeHdV+NTA=
-golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM=
+golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
+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=
@@ -2559,8 +2550,8 @@ google.golang.org/api v0.96.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ
google.golang.org/api v0.97.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s=
google.golang.org/api v0.98.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s=
google.golang.org/api v0.100.0/go.mod h1:ZE3Z2+ZOr87Rx7dqFsdRQkRBk36kDtp/h+QpHbB7a70=
-google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ=
-google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0=
+google.golang.org/api v0.126.0 h1:q4GJq+cAdMAC7XP7njvQ4tvohGLiSlytuL4BQxbIZ+o=
+google.golang.org/api v0.126.0/go.mod h1:mBwVAtz+87bEN6CbA1GtZPDOqY2R5ONPqJeIlvyo4Aw=
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
@@ -2692,8 +2683,12 @@ google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e/go.mod h1:3526vdqw
google.golang.org/genproto v0.0.0-20221014173430-6e2ab493f96b/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM=
google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM=
google.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s=
-google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w=
-google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM=
+google.golang.org/genproto v0.0.0-20230726155614-23370e0ffb3e h1:xIXmWJ303kJCuogpj0bHq+dcjcZHU+XFyc1I0Yl9cRg=
+google.golang.org/genproto v0.0.0-20230726155614-23370e0ffb3e/go.mod h1:0ggbjUrZYpy1q+ANUS30SEoGZ53cdfwtbuG7Ptgy108=
+google.golang.org/genproto/googleapis/api v0.0.0-20230706204954-ccb25ca9f130 h1:XVeBY8d/FaK4848myy41HBqnDwvxeV3zMZhwN1TvAMU=
+google.golang.org/genproto/googleapis/api v0.0.0-20230706204954-ccb25ca9f130/go.mod h1:mPBs5jNgx2GuQGvFwUvVKqtn6HsUw9nP64BedgvqEsQ=
+google.golang.org/genproto/googleapis/rpc v0.0.0-20230706204954-ccb25ca9f130 h1:2FZP5XuJY9zQyGM5N0rtovnoXjiMUEIUMvw0m9wlpLc=
+google.golang.org/genproto/googleapis/rpc v0.0.0-20230706204954-ccb25ca9f130/go.mod h1:8mL13HKkDa+IuJ8yruA3ci0q+0vsUz4m//+ottjwS5o=
google.golang.org/grpc v0.0.0-20160317175043-d3ddb4469d5a/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw=
google.golang.org/grpc v1.8.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw=
google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs=
@@ -2740,8 +2735,8 @@ google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACu
google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI=
google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI=
google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI=
-google.golang.org/grpc v1.54.0 h1:EhTqbhiYeixwWQtAEZAxmV9MGqcjEU2mFx52xCzNyag=
-google.golang.org/grpc v1.54.0/go.mod h1:PUSEXI6iWghWaB6lXM4knEgpJNu2qUcKfDtNci3EC2g=
+google.golang.org/grpc v1.57.0 h1:kfzNeI/klCGD2YPMUlaGNT3pxvYfga7smW3Vth8Zsiw=
+google.golang.org/grpc v1.57.0/go.mod h1:Sd+9RMTACXwmub0zcNY2c4arhtrbBYD1AUHI/dt16Mo=
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw=
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
@@ -2758,8 +2753,8 @@ google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQ
google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
-google.golang.org/protobuf v1.29.1 h1:7QBf+IK2gx70Ap/hDsOmam3GE0v9HicjfEdAxE62UoM=
-google.golang.org/protobuf v1.29.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
+google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8=
+google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
gopkg.in/airbrake/gobrake.v2 v2.0.9/go.mod h1:/h5ZAUhDkGaJfjzjKLSjv6zCL6O0LLBxU4K+aSYdM/U=
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
@@ -2806,7 +2801,6 @@ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C
gopkg.in/yaml.v3 v3.0.0-20200605160147-a5ece683394c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
-gopkg.in/yaml.v3 v3.0.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw=
@@ -2883,9 +2877,8 @@ lukechampine.com/frand v1.4.2 h1:RzFIpOvkMXuPMBb9maa4ND4wjBn71E1Jpf8BzJHMaVw=
lukechampine.com/frand v1.4.2/go.mod h1:4S/TM2ZgrKejMcKMbeLjISpJMO+/eZ1zu3vYX9dtj3s=
mvdan.cc/gofumpt v0.1.0 h1:hsVv+Y9UsZ/mFZTxJZuHVI6shSQCtzZ11h1JEFPAZLw=
nhooyr.io/websocket v1.8.6/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0=
-pgregory.net/rapid v0.5.5 h1:jkgx1TjbQPD/feRoK+S/mXw9e1uj6WilpHrXJowi6oA=
+pgregory.net/rapid v0.6.1 h1:4eyrDxyht86tT4Ztm+kvlyNBLIk071gR+ZQdhphc9dQ=
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
-rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4=
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.14/go.mod h1:LEScyzhFmoF5pso/YSeBstl57mOzx9xlU9n85RGrDQg=
diff --git a/provider/resources.go b/provider/resources.go
index 591e5c1..c6be612 100644
--- a/provider/resources.go
+++ b/provider/resources.go
@@ -28,6 +28,8 @@ import (
"github.com/pulumiverse/pulumi-mssql/provider/pkg/version"
)
+//go:generate go run generate.go
+
//go:embed cmd/pulumi-resource-mssql/bridge-metadata.json
var bridgeMetadata []byte
@@ -55,8 +57,12 @@ func makeResource(mod string, res string) tokens.Type {
}
// Provider returns additional overlaid schema and metadata associated with the provider..
-func Provider() pf.ProviderInfo {
+func Provider() tfbridge.ProviderInfo {
+ // Instantiate the Terraform provider
+ p := pf.ShimProvider(shimprovider.NewProvider())
+ // Create a Pulumi provider mapping
prov := tfbridge.ProviderInfo{
+ P: p,
Name: "mssql",
// DisplayName is a way to be able to change the casing of the provider
// name when being displayed on the Pulumi registry
@@ -294,10 +300,7 @@ func Provider() pf.ProviderInfo {
Version: version.Version,
}
- //prov.SetAutonaming(255, "-")
+ prov.SetAutonaming(255, "-")
- return pf.ProviderInfo{
- ProviderInfo: prov,
- NewProvider: shimprovider.NewProvider(),
- }
+ return prov
}
diff --git a/provider/shim/shim.go b/provider/shim/shim.go
index ebbbf92..70200b7 100644
--- a/provider/shim/shim.go
+++ b/provider/shim/shim.go
@@ -5,6 +5,6 @@ import (
tf "github.com/hashicorp/terraform-plugin-framework/provider"
)
-func NewProvider() func() tf.Provider {
- return provider.New(provider.VersionDev)
+func NewProvider() tf.Provider {
+ return provider.New(provider.VersionDev)()
}
diff --git a/sdk/dotnet/AzureadServicePrincipal.cs b/sdk/dotnet/AzureadServicePrincipal.cs
index b6ca8e4..e3ecf8f 100644
--- a/sdk/dotnet/AzureadServicePrincipal.cs
+++ b/sdk/dotnet/AzureadServicePrincipal.cs
@@ -39,7 +39,6 @@ namespace Pulumiverse.Mssql
///
/// var exampleAzureadServicePrincipal = new Mssql.AzureadServicePrincipal("exampleAzureadServicePrincipal", new()
/// {
- /// Name = "example",
/// DatabaseId = exampleDatabase.Apply(getDatabaseResult => getDatabaseResult.Id),
/// ClientId = exampleServicePrincipal.Apply(getServicePrincipalResult => getServicePrincipalResult.ApplicationId),
/// });
@@ -142,8 +141,8 @@ public sealed class AzureadServicePrincipalArgs : global::Pulumi.ResourceArgs
///
/// User name. Cannot be longer than 128 chars.
///
- [Input("name", required: true)]
- public Input Name { get; set; } = null!;
+ [Input("name")]
+ public Input? Name { get; set; }
public AzureadServicePrincipalArgs()
{
diff --git a/sdk/dotnet/AzureadUser.cs b/sdk/dotnet/AzureadUser.cs
index 5f12e75..e94e770 100644
--- a/sdk/dotnet/AzureadUser.cs
+++ b/sdk/dotnet/AzureadUser.cs
@@ -39,7 +39,6 @@ namespace Pulumiverse.Mssql
///
/// var exampleAzureadUser = new Mssql.AzureadUser("exampleAzureadUser", new()
/// {
- /// Name = "example",
/// DatabaseId = exampleDatabase.Apply(getDatabaseResult => getDatabaseResult.Id),
/// UserObjectId = exampleUser.Apply(getUserResult => getUserResult.ObjectId),
/// });
@@ -136,8 +135,8 @@ public sealed class AzureadUserArgs : global::Pulumi.ResourceArgs
///
/// User name. Cannot be longer than 128 chars.
///
- [Input("name", required: true)]
- public Input Name { get; set; } = null!;
+ [Input("name")]
+ public Input? Name { get; set; }
///
/// Azure AD object_id of the user. This can be either regular user or a group.
diff --git a/sdk/dotnet/Config/Config.cs b/sdk/dotnet/Config/Config.cs
index 6e96f10..d6324aa 100644
--- a/sdk/dotnet/Config/Config.cs
+++ b/sdk/dotnet/Config/Config.cs
@@ -8,7 +8,7 @@ namespace Pulumiverse.Mssql
{
public static class Config
{
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "IDE1006", Justification =
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "IDE1006", Justification =
"Double underscore prefix used to avoid conflicts with variable names.")]
private sealed class __Value
{
diff --git a/sdk/dotnet/Database.cs b/sdk/dotnet/Database.cs
index dfebb54..164e743 100644
--- a/sdk/dotnet/Database.cs
+++ b/sdk/dotnet/Database.cs
@@ -26,7 +26,6 @@ namespace Pulumiverse.Mssql
/// var example = new Mssql.Database("example", new()
/// {
/// Collation = "SQL_Latin1_General_CP1_CS_AS",
- /// Name = "example",
/// });
///
/// });
@@ -63,7 +62,7 @@ public partial class Database : global::Pulumi.CustomResource
/// The unique name of the resource
/// The arguments used to populate this resource's properties
/// A bag of options that control this resource's behavior
- public Database(string name, DatabaseArgs args, CustomResourceOptions? options = null)
+ public Database(string name, DatabaseArgs? args = null, CustomResourceOptions? options = null)
: base("mssql:index/database:Database", name, args ?? new DatabaseArgs(), MakeResourceOptions(options, ""))
{
}
@@ -111,8 +110,8 @@ public sealed class DatabaseArgs : global::Pulumi.ResourceArgs
///
/// Database name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers).
///
- [Input("name", required: true)]
- public Input Name { get; set; } = null!;
+ [Input("name")]
+ public Input? Name { get; set; }
public DatabaseArgs()
{
diff --git a/sdk/dotnet/DatabaseRole.cs b/sdk/dotnet/DatabaseRole.cs
index 6998d92..f41b8a5 100644
--- a/sdk/dotnet/DatabaseRole.cs
+++ b/sdk/dotnet/DatabaseRole.cs
@@ -36,7 +36,6 @@ namespace Pulumiverse.Mssql
///
/// var exampleDatabaseRole = new Mssql.DatabaseRole("exampleDatabaseRole", new()
/// {
- /// Name = "example",
/// DatabaseId = exampleDatabase.Apply(getDatabaseResult => getDatabaseResult.Id),
/// OwnerId = owner.Apply(getSqlUserResult => getSqlUserResult.Id),
/// });
@@ -82,7 +81,7 @@ public partial class DatabaseRole : global::Pulumi.CustomResource
/// The unique name of the resource
/// The arguments used to populate this resource's properties
/// A bag of options that control this resource's behavior
- public DatabaseRole(string name, DatabaseRoleArgs args, CustomResourceOptions? options = null)
+ public DatabaseRole(string name, DatabaseRoleArgs? args = null, CustomResourceOptions? options = null)
: base("mssql:index/databaseRole:DatabaseRole", name, args ?? new DatabaseRoleArgs(), MakeResourceOptions(options, ""))
{
}
@@ -130,8 +129,8 @@ public sealed class DatabaseRoleArgs : global::Pulumi.ResourceArgs
///
/// Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars.
///
- [Input("name", required: true)]
- public Input Name { get; set; } = null!;
+ [Input("name")]
+ public Input? Name { get; set; }
///
/// ID of another database role or user owning this role. Can be retrieved using `mssql_database_role` or `mssql_sql_user`.
diff --git a/sdk/dotnet/DatabaseRoleMember.cs b/sdk/dotnet/DatabaseRoleMember.cs
index dfc5342..462c7c2 100644
--- a/sdk/dotnet/DatabaseRoleMember.cs
+++ b/sdk/dotnet/DatabaseRoleMember.cs
@@ -43,7 +43,6 @@ namespace Pulumiverse.Mssql
///
/// var exampleDatabaseRole = new Mssql.DatabaseRole("exampleDatabaseRole", new()
/// {
- /// Name = "example",
/// DatabaseId = exampleDatabase.Apply(getDatabaseResult => getDatabaseResult.Id),
/// OwnerId = owner.Apply(getSqlUserResult => getSqlUserResult.Id),
/// });
diff --git a/sdk/dotnet/GetDatabaseRole.cs b/sdk/dotnet/GetDatabaseRole.cs
index 7284c56..a749fe9 100644
--- a/sdk/dotnet/GetDatabaseRole.cs
+++ b/sdk/dotnet/GetDatabaseRole.cs
@@ -99,7 +99,7 @@ public sealed class GetDatabaseRoleArgs : global::Pulumi.InvokeArgs
public string? DatabaseId { get; set; }
///
- /// Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars.
+ /// Name of the database principal.
///
[Input("name", required: true)]
public string Name { get; set; } = null!;
@@ -119,7 +119,7 @@ public sealed class GetDatabaseRoleInvokeArgs : global::Pulumi.InvokeArgs
public Input? DatabaseId { get; set; }
///
- /// Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars.
+ /// Name of the database principal.
///
[Input("name", required: true)]
public Input Name { get; set; } = null!;
diff --git a/sdk/dotnet/GetDatabaseRoles.cs b/sdk/dotnet/GetDatabaseRoles.cs
index 4e7f55c..3fd7de0 100644
--- a/sdk/dotnet/GetDatabaseRoles.cs
+++ b/sdk/dotnet/GetDatabaseRoles.cs
@@ -91,7 +91,7 @@ public static Output Invoke(GetDatabaseRolesInvokeArgs?
public sealed class GetDatabaseRolesArgs : global::Pulumi.InvokeArgs
{
///
- /// ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('<db_name>')`. Defaults to ID of `master`.
+ /// ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('<db_name>')`.
///
[Input("databaseId")]
public string? DatabaseId { get; set; }
@@ -105,7 +105,7 @@ public GetDatabaseRolesArgs()
public sealed class GetDatabaseRolesInvokeArgs : global::Pulumi.InvokeArgs
{
///
- /// ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('<db_name>')`. Defaults to ID of `master`.
+ /// ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('<db_name>')`.
///
[Input("databaseId")]
public Input? DatabaseId { get; set; }
diff --git a/sdk/dotnet/GetDatabases.cs b/sdk/dotnet/GetDatabases.cs
index 381633c..7020c3e 100644
--- a/sdk/dotnet/GetDatabases.cs
+++ b/sdk/dotnet/GetDatabases.cs
@@ -40,6 +40,35 @@ public static class GetDatabases
///
public static Task InvokeAsync(InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.InvokeAsync("mssql:index/getDatabases:getDatabases", InvokeArgs.Empty, options.WithDefaults());
+
+ ///
+ /// Obtains information about all databases found in SQL Server instance.
+ ///
+ /// {{% examples %}}
+ /// ## Example Usage
+ /// {{% example %}}
+ ///
+ /// ```csharp
+ /// using System.Collections.Generic;
+ /// using System.Linq;
+ /// using Pulumi;
+ /// using Mssql = Pulumi.Mssql;
+ ///
+ /// return await Deployment.RunAsync(() =>
+ /// {
+ /// var example = Mssql.GetDatabases.Invoke();
+ ///
+ /// return new Dictionary<string, object?>
+ /// {
+ /// ["databases"] = example.Apply(getDatabasesResult => getDatabasesResult.Databases),
+ /// };
+ /// });
+ /// ```
+ /// {{% /example %}}
+ /// {{% /examples %}}
+ ///
+ public static Output Invoke(InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.Invoke("mssql:index/getDatabases:getDatabases", InvokeArgs.Empty, options.WithDefaults());
}
diff --git a/sdk/dotnet/GetSchemas.cs b/sdk/dotnet/GetSchemas.cs
index a4c3e1b..83e091e 100644
--- a/sdk/dotnet/GetSchemas.cs
+++ b/sdk/dotnet/GetSchemas.cs
@@ -91,7 +91,7 @@ public static Output Invoke(GetSchemasInvokeArgs? args = null,
public sealed class GetSchemasArgs : global::Pulumi.InvokeArgs
{
///
- /// ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('<db_name>')`. Defaults to ID of `master`.
+ /// ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('<db_name>')`.
///
[Input("databaseId")]
public string? DatabaseId { get; set; }
@@ -105,7 +105,7 @@ public GetSchemasArgs()
public sealed class GetSchemasInvokeArgs : global::Pulumi.InvokeArgs
{
///
- /// ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('<db_name>')`. Defaults to ID of `master`.
+ /// ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('<db_name>')`.
///
[Input("databaseId")]
public Input? DatabaseId { get; set; }
diff --git a/sdk/dotnet/GetServerRole.cs b/sdk/dotnet/GetServerRole.cs
index 96f74d4..74f1d2d 100644
--- a/sdk/dotnet/GetServerRole.cs
+++ b/sdk/dotnet/GetServerRole.cs
@@ -83,13 +83,13 @@ public static Output Invoke(GetServerRoleInvokeArgs? args =
public sealed class GetServerRoleArgs : global::Pulumi.InvokeArgs
{
///
- /// Role principal ID. Either `name` or `id` must be provided.
+ /// ID of the member principal
///
[Input("id")]
public string? Id { get; set; }
///
- /// Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars. Either `name` or `id` must be provided.
+ /// Name of the server principal
///
[Input("name")]
public string? Name { get; set; }
@@ -103,13 +103,13 @@ public GetServerRoleArgs()
public sealed class GetServerRoleInvokeArgs : global::Pulumi.InvokeArgs
{
///
- /// Role principal ID. Either `name` or `id` must be provided.
+ /// ID of the member principal
///
[Input("id")]
public Input? Id { get; set; }
///
- /// Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars. Either `name` or `id` must be provided.
+ /// Name of the server principal
///
[Input("name")]
public Input? Name { get; set; }
diff --git a/sdk/dotnet/GetServerRoles.cs b/sdk/dotnet/GetServerRoles.cs
index e1037fd..15e1ce9 100644
--- a/sdk/dotnet/GetServerRoles.cs
+++ b/sdk/dotnet/GetServerRoles.cs
@@ -40,6 +40,35 @@ public static class GetServerRoles
///
public static Task InvokeAsync(InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.InvokeAsync("mssql:index/getServerRoles:getServerRoles", InvokeArgs.Empty, options.WithDefaults());
+
+ ///
+ /// Obtains information about all roles defined in the server.
+ ///
+ /// {{% examples %}}
+ /// ## Example Usage
+ /// {{% example %}}
+ ///
+ /// ```csharp
+ /// using System.Collections.Generic;
+ /// using System.Linq;
+ /// using Pulumi;
+ /// using Mssql = Pulumi.Mssql;
+ ///
+ /// return await Deployment.RunAsync(() =>
+ /// {
+ /// var all = Mssql.GetServerRoles.Invoke();
+ ///
+ /// return new Dictionary<string, object?>
+ /// {
+ /// ["roles"] = all.Apply(getServerRolesResult => getServerRolesResult.Roles),
+ /// };
+ /// });
+ /// ```
+ /// {{% /example %}}
+ /// {{% /examples %}}
+ ///
+ public static Output Invoke(InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.Invoke("mssql:index/getServerRoles:getServerRoles", InvokeArgs.Empty, options.WithDefaults());
}
diff --git a/sdk/dotnet/GetSqlLogins.cs b/sdk/dotnet/GetSqlLogins.cs
index 65028ab..69b51ac 100644
--- a/sdk/dotnet/GetSqlLogins.cs
+++ b/sdk/dotnet/GetSqlLogins.cs
@@ -40,6 +40,35 @@ public static class GetSqlLogins
///
public static Task InvokeAsync(InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.InvokeAsync("mssql:index/getSqlLogins:getSqlLogins", InvokeArgs.Empty, options.WithDefaults());
+
+ ///
+ /// Obtains information about all SQL logins found in SQL Server instance.
+ ///
+ /// {{% examples %}}
+ /// ## Example Usage
+ /// {{% example %}}
+ ///
+ /// ```csharp
+ /// using System.Collections.Generic;
+ /// using System.Linq;
+ /// using Pulumi;
+ /// using Mssql = Pulumi.Mssql;
+ ///
+ /// return await Deployment.RunAsync(() =>
+ /// {
+ /// var example = Mssql.GetSqlLogins.Invoke();
+ ///
+ /// return new Dictionary<string, object?>
+ /// {
+ /// ["databases"] = example.Apply(getSqlLoginsResult => getSqlLoginsResult.Logins),
+ /// };
+ /// });
+ /// ```
+ /// {{% /example %}}
+ /// {{% /examples %}}
+ ///
+ public static Output Invoke(InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.Invoke("mssql:index/getSqlLogins:getSqlLogins", InvokeArgs.Empty, options.WithDefaults());
}
diff --git a/sdk/dotnet/GetSqlUsers.cs b/sdk/dotnet/GetSqlUsers.cs
index 07b4858..8434b7f 100644
--- a/sdk/dotnet/GetSqlUsers.cs
+++ b/sdk/dotnet/GetSqlUsers.cs
@@ -91,7 +91,7 @@ public static Output Invoke(GetSqlUsersInvokeArgs? args = nul
public sealed class GetSqlUsersArgs : global::Pulumi.InvokeArgs
{
///
- /// ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('<db_name>')`. Defaults to ID of `master`.
+ /// ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('<db_name>')`.
///
[Input("databaseId")]
public string? DatabaseId { get; set; }
@@ -105,7 +105,7 @@ public GetSqlUsersArgs()
public sealed class GetSqlUsersInvokeArgs : global::Pulumi.InvokeArgs
{
///
- /// ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('<db_name>')`. Defaults to ID of `master`.
+ /// ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('<db_name>')`.
///
[Input("databaseId")]
public Input? DatabaseId { get; set; }
diff --git a/sdk/dotnet/Pulumiverse.Mssql.csproj b/sdk/dotnet/Pulumiverse.Mssql.csproj
index e1fc031..306486f 100644
--- a/sdk/dotnet/Pulumiverse.Mssql.csproj
+++ b/sdk/dotnet/Pulumiverse.Mssql.csproj
@@ -12,7 +12,6 @@
net6.0
enable
- false
diff --git a/sdk/dotnet/Schema.cs b/sdk/dotnet/Schema.cs
index 607058c..1a36d9a 100644
--- a/sdk/dotnet/Schema.cs
+++ b/sdk/dotnet/Schema.cs
@@ -36,7 +36,6 @@ namespace Pulumiverse.Mssql
///
/// var exampleSchema = new Mssql.Schema("exampleSchema", new()
/// {
- /// Name = "example",
/// DatabaseId = exampleDatabase.Apply(getDatabaseResult => getDatabaseResult.Id),
/// OwnerId = owner.Apply(getSqlUserResult => getSqlUserResult.Id),
/// });
@@ -81,7 +80,7 @@ public partial class Schema : global::Pulumi.CustomResource
/// The unique name of the resource
/// The arguments used to populate this resource's properties
/// A bag of options that control this resource's behavior
- public Schema(string name, SchemaArgs args, CustomResourceOptions? options = null)
+ public Schema(string name, SchemaArgs? args = null, CustomResourceOptions? options = null)
: base("mssql:index/schema:Schema", name, args ?? new SchemaArgs(), MakeResourceOptions(options, ""))
{
}
@@ -129,8 +128,8 @@ public sealed class SchemaArgs : global::Pulumi.ResourceArgs
///
/// Schema name.
///
- [Input("name", required: true)]
- public Input Name { get; set; } = null!;
+ [Input("name")]
+ public Input? Name { get; set; }
///
/// ID of database role or user owning this schema. Can be retrieved using `mssql.DatabaseRole`, `mssql.SqlUser`, `mssql.AzureadUser` or `mssql.AzureadServicePrincipal`
diff --git a/sdk/dotnet/ServerRole.cs b/sdk/dotnet/ServerRole.cs
index 8b4a600..8b7e0f9 100644
--- a/sdk/dotnet/ServerRole.cs
+++ b/sdk/dotnet/ServerRole.cs
@@ -23,14 +23,10 @@ namespace Pulumiverse.Mssql
///
/// return await Deployment.RunAsync(() =>
/// {
- /// var owner = new Mssql.ServerRole("owner", new()
- /// {
- /// Name = "owner_role",
- /// });
+ /// var owner = new Mssql.ServerRole("owner");
///
/// var example = new Mssql.ServerRole("example", new()
/// {
- /// Name = "example",
/// OwnerId = owner.Id,
/// });
///
@@ -68,7 +64,7 @@ public partial class ServerRole : global::Pulumi.CustomResource
/// The unique name of the resource
/// The arguments used to populate this resource's properties
/// A bag of options that control this resource's behavior
- public ServerRole(string name, ServerRoleArgs args, CustomResourceOptions? options = null)
+ public ServerRole(string name, ServerRoleArgs? args = null, CustomResourceOptions? options = null)
: base("mssql:index/serverRole:ServerRole", name, args ?? new ServerRoleArgs(), MakeResourceOptions(options, ""))
{
}
@@ -110,8 +106,8 @@ public sealed class ServerRoleArgs : global::Pulumi.ResourceArgs
///
/// Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars.
///
- [Input("name", required: true)]
- public Input Name { get; set; } = null!;
+ [Input("name")]
+ public Input? Name { get; set; }
///
/// ID of another server role or login owning this role. Can be retrieved using `mssql.ServerRole` or `mssql.SqlLogin`.
diff --git a/sdk/dotnet/ServerRoleMember.cs b/sdk/dotnet/ServerRoleMember.cs
index 504160b..3c254fe 100644
--- a/sdk/dotnet/ServerRoleMember.cs
+++ b/sdk/dotnet/ServerRoleMember.cs
@@ -29,10 +29,7 @@ namespace Pulumiverse.Mssql
/// Name = "member_login",
/// });
///
- /// var exampleServerRole = new Mssql.ServerRole("exampleServerRole", new()
- /// {
- /// Name = "example",
- /// });
+ /// var exampleServerRole = new Mssql.ServerRole("exampleServerRole");
///
/// var exampleServerRoleMember = new Mssql.ServerRoleMember("exampleServerRoleMember", new()
/// {
diff --git a/sdk/dotnet/SqlLogin.cs b/sdk/dotnet/SqlLogin.cs
index 6024bd3..0094ab0 100644
--- a/sdk/dotnet/SqlLogin.cs
+++ b/sdk/dotnet/SqlLogin.cs
@@ -31,7 +31,6 @@ namespace Pulumiverse.Mssql
///
/// var exampleSqlLogin = new Mssql.SqlLogin("exampleSqlLogin", new()
/// {
- /// Name = "example",
/// Password = "Str0ngPa$$word12",
/// MustChangePassword = true,
/// DefaultDatabaseId = exampleDatabase.Apply(getDatabaseResult => getDatabaseResult.Id),
@@ -204,8 +203,8 @@ public sealed class SqlLoginArgs : global::Pulumi.ResourceArgs
///
/// Login name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot contain `\`
///
- [Input("name", required: true)]
- public Input Name { get; set; } = null!;
+ [Input("name")]
+ public Input? Name { get; set; }
[Input("password", required: true)]
private Input? _password;
diff --git a/sdk/dotnet/SqlUser.cs b/sdk/dotnet/SqlUser.cs
index 1c8c923..fcca1d8 100644
--- a/sdk/dotnet/SqlUser.cs
+++ b/sdk/dotnet/SqlUser.cs
@@ -31,7 +31,6 @@ namespace Pulumiverse.Mssql
///
/// var exampleSqlLogin = new Mssql.SqlLogin("exampleSqlLogin", new()
/// {
- /// Name = "example",
/// Password = "Str0ngPa$$word12",
/// MustChangePassword = true,
/// DefaultDatabaseId = exampleDatabase.Apply(getDatabaseResult => getDatabaseResult.Id),
@@ -42,7 +41,6 @@ namespace Pulumiverse.Mssql
///
/// var exampleSqlUser = new Mssql.SqlUser("exampleSqlUser", new()
/// {
- /// Name = "example",
/// DatabaseId = exampleDatabase.Apply(getDatabaseResult => getDatabaseResult.Id),
/// LoginId = exampleSqlLogin.Id,
/// });
@@ -145,8 +143,8 @@ public sealed class SqlUserArgs : global::Pulumi.ResourceArgs
///
/// User name. Cannot be longer than 128 chars.
///
- [Input("name", required: true)]
- public Input Name { get; set; } = null!;
+ [Input("name")]
+ public Input? Name { get; set; }
public SqlUserArgs()
{
diff --git a/sdk/go.mod b/sdk/go.mod
index 86e7132..6f2cf49 100644
--- a/sdk/go.mod
+++ b/sdk/go.mod
@@ -4,7 +4,7 @@ go 1.18
require (
github.com/blang/semver v3.5.1+incompatible
- github.com/pulumi/pulumi/sdk/v3 v3.59.0
+ github.com/pulumi/pulumi/sdk/v3 v3.84.0
)
require (
@@ -12,32 +12,48 @@ 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/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
+ github.com/charmbracelet/bubbles v0.16.1 // indirect
+ github.com/charmbracelet/bubbletea v0.24.2 // indirect
+ github.com/charmbracelet/lipgloss v0.7.1 // indirect
github.com/cheggaaa/pb v1.0.29 // indirect
- github.com/cloudflare/circl v1.1.0 // indirect
+ github.com/cloudflare/circl v1.3.3 // indirect
+ github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect
github.com/djherbis/times v1.5.0 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/go-git/gcfg v1.5.0 // indirect
github.com/go-git/go-billy/v5 v5.4.0 // indirect
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/glog v1.0.0 // indirect
- github.com/golang/protobuf v1.5.2 // indirect
+ github.com/golang/glog v1.1.0 // indirect
+ github.com/golang/protobuf v1.5.3 // indirect
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/imdario/mergo v0.3.13 // indirect
github.com/inconshreveable/mousetrap v1.0.1 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/kevinburke/ssh_config v1.2.0 // indirect
- github.com/mattn/go-runewidth v0.0.13 // indirect
+ github.com/lucasb-eyer/go-colorful v1.2.0 // 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/mitchellh/go-ps v1.0.0 // indirect
+ github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7 // 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
+ github.com/muesli/termenv v0.15.1 // indirect
github.com/opentracing/basictracer-go v1.1.0 // indirect
github.com/opentracing/opentracing-go v1.2.0 // indirect
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/rivo/uniseg v0.2.0 // indirect
+ github.com/rivo/uniseg v0.4.4 // indirect
github.com/rogpeppe/go-internal v1.9.0 // indirect
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect
github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 // indirect
@@ -51,15 +67,17 @@ 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
go.uber.org/atomic v1.9.0 // indirect
- golang.org/x/crypto v0.3.0 // indirect
- golang.org/x/net v0.7.0 // indirect
- golang.org/x/sys v0.5.0 // indirect
- golang.org/x/term v0.5.0 // indirect
- golang.org/x/text v0.7.0 // indirect
- google.golang.org/genproto v0.0.0-20220802133213-ce4fa296bf78 // indirect
- google.golang.org/grpc v1.51.0 // indirect
- google.golang.org/protobuf v1.28.1 // indirect
+ golang.org/x/crypto v0.3.1-0.20221117191849-2c476679df9a // 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
+ 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
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
lukechampine.com/frand v1.4.2 // indirect
diff --git a/sdk/go.sum b/sdk/go.sum
index ce8ef75..1fd2125 100644
--- a/sdk/go.sum
+++ b/sdk/go.sum
@@ -7,17 +7,34 @@ 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/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=
+github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo=
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio=
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs=
+github.com/atotto/clipboard v0.1.4 h1:EH0zSVneZPSuFR11BlR9YppQTVDbh5+16AmcJi4g1z4=
+github.com/atotto/clipboard v0.1.4/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI=
+github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiErDT4WkJ2k=
+github.com/aymanbagabas/go-osc52/v2 v2.0.1/go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8=
github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdnnjpJbkM4JQ=
github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk=
github.com/bwesterb/go-ristretto v1.2.0/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0=
+github.com/charmbracelet/bubbles v0.16.1 h1:6uzpAAaT9ZqKssntbvZMlksWHruQLNxg49H5WdeuYSY=
+github.com/charmbracelet/bubbles v0.16.1/go.mod h1:2QCp9LFlEsBQMvIYERr7Ww2H2bA7xen1idUDIzm/+Xc=
+github.com/charmbracelet/bubbletea v0.24.2 h1:uaQIKx9Ai6Gdh5zpTbGiWpytMU+CfsPp06RaW2cx/SY=
+github.com/charmbracelet/bubbletea v0.24.2/go.mod h1:XdrNrV4J8GiyshTtx3DNuYkR1FDaJmO3l2nejekbsgg=
+github.com/charmbracelet/lipgloss v0.7.1 h1:17WMwi7N1b1rVWOjMT+rCh7sQkvDU75B2hbZpc5Kc1E=
+github.com/charmbracelet/lipgloss v0.7.1/go.mod h1:yG0k3giv8Qj8edTCbbg6AlQ5e8KNWpFujkNawKNhE2c=
github.com/cheggaaa/pb v1.0.29 h1:FckUN5ngEk2LpvuG0fw1GEFx6LtyY2pWI/Z2QgCnEYo=
github.com/cheggaaa/pb v1.0.29/go.mod h1:W40334L7FMC5JKWldsTWbdGjLo0RxUKK73K+TuPxX30=
-github.com/cloudflare/circl v1.1.0 h1:bZgT/A+cikZnKIwn7xL2OBj012Bmvho/o6RpRvv3GKY=
github.com/cloudflare/circl v1.1.0/go.mod h1:prBCrKB9DV4poKZY1l9zBXg2QJY7mvgRvtMxxK7fi4I=
+github.com/cloudflare/circl v1.3.3 h1:fE/Qz0QdIGqeWfnwq0RE0R7MI51s0M2E4Ga9kq5AEMs=
+github.com/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUKZrLbUZFA=
+github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 h1:q2hJAaP1k2wIvVRd/hEHD7lacgqrCPS+k8g1MndzfWY=
+github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81/go.mod h1:YynlIjWYF8myEu6sdkwKIvGQq+cOckRm6So2avqoYAk=
github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
@@ -40,16 +57,14 @@ github.com/go-git/go-git-fixtures/v4 v4.3.1 h1:y5z6dd3qi8Hl+stezc8p3JxDkoTRqMAlK
github.com/go-git/go-git-fixtures/v4 v4.3.1/go.mod h1:8LHG1a3SRW71ettAD/jW13h8c6AqjVSeL11RAdgaqpo=
github.com/go-git/go-git/v5 v5.6.0 h1:JvBdYfcttd+0kdpuWO7KTu0FYgCf5W0t5VwkWGobaa4=
github.com/go-git/go-git/v5 v5.6.0/go.mod h1:6nmJ0tJ3N4noMV1Omv7rC5FG3/o8Cm51TB4CJp7mRmE=
-github.com/gofrs/uuid v4.2.0+incompatible h1:yyYWMnhkhrKwwr8gAOcOCYxOOscHgDS9yZgBrnJfGa0=
-github.com/gofrs/uuid v4.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
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/glog v1.0.0 h1:nfP3RFugxnNRyKgeWd4oI1nYvXpxrx8ck8ZrcizshdQ=
-github.com/golang/glog v1.0.0/go.mod h1:EWib/APOK0SL3dFbYqvxE3UYd8E6s1ouQ7iEp/0LWV4=
+github.com/golang/glog v1.1.0 h1:/d3pCKDPWNnvIWe0vVUpNP32qc8U3PDVxySP/y360qE=
+github.com/golang/glog v1.1.0/go.mod h1:pfYeQZ3JWZoXTV5sFc986z3HTpwQs9At6P4ImfuP3NQ=
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
-github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw=
-github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
+github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg=
+github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
@@ -60,6 +75,8 @@ 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/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=
@@ -79,19 +96,35 @@ 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=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
+github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY=
+github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
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.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
github.com/mattn/go-colorable v0.1.12 h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40=
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
-github.com/mattn/go-isatty v0.0.11 h1:FxPOTFNqGkuDUGi3H/qkUbQO4ZiBa2brKq5r0l8TGeM=
github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE=
+github.com/mattn/go-isatty v0.0.18 h1:DOKFKCQ7FNG2L1rbrmstDN4QVRdS89Nkh85u68Uwp98=
+github.com/mattn/go-isatty v0.0.18/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
+github.com/mattn/go-localereader v0.0.1 h1:ygSAOl7ZXTx4RdPYinUpg6W99U8jWvWi9Ye2JC/oIi4=
+github.com/mattn/go-localereader v0.0.1/go.mod h1:8fBrzywKY7BI3czFoHkuzRoWE9C+EiG4R1k4Cjx5p88=
github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
-github.com/mattn/go-runewidth v0.0.13 h1:lTGmDsbAYt5DmK6OnoV7EuIF1wEIFAcxld6ypU4OSgU=
-github.com/mattn/go-runewidth v0.0.13/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
+github.com/mattn/go-runewidth v0.0.12/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk=
+github.com/mattn/go-runewidth v0.0.14 h1:+xnbZSEeDbOIg5/mE6JF0w6n9duR1l3/WmbinWVwUuU=
+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/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=
+github.com/muesli/cancelreader v0.2.2 h1:3I4Kt4BQjOR54NavqnDogx/MIoWBFa0StPA8ELUXHmA=
+github.com/muesli/cancelreader v0.2.2/go.mod h1:3XuTXfFS2VjM+HTLZY9Ak0l6eUKfijIfMUZ4EgX0QYo=
+github.com/muesli/reflow v0.3.0 h1:IFsN6K9NfGtjeggFP+68I4chLZV2yIKsXJFNZ+eWh6s=
+github.com/muesli/reflow v0.3.0/go.mod h1:pbwTDkVPibjO2kyvBQRBxTWEEGDGq0FlB1BIKtnHY/8=
+github.com/muesli/termenv v0.15.1 h1:UzuTb/+hhlBugQz28rpzey4ZuKcZ03MeKsoG7IJZIxs=
+github.com/muesli/termenv v0.15.1/go.mod h1:HeAQPTzpfs016yGtA4g00CsdYnVLJvxsS4ANqrZs2sQ=
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
github.com/opentracing/basictracer-go v1.1.0 h1:Oa1fTSBvAl8pa3U+IJYqrKm0NALwH9OsgwOqDv4xJW0=
github.com/opentracing/basictracer-go v1.1.0/go.mod h1:V2HZueSJEp879yv285Aap1BS69fQMD+MNP1mRs6mBQc=
@@ -106,10 +139,12 @@ 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.59.0 h1:ONbWeLkPX27aMwux+Y548qRaUn+mdJC79f68espqpZ8=
-github.com/pulumi/pulumi/sdk/v3 v3.59.0/go.mod h1:Pb5H3OaRZg0n4TRIfY0pagR/NBIEvjp3lZe2Spr6Umc=
-github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY=
+github.com/pulumi/pulumi/sdk/v3 v3.84.0 h1:/vCRj6ATGVZw4pFmG7pZgjlKUcnbbnb9vmlqd+OpdXo=
+github.com/pulumi/pulumi/sdk/v3 v3.84.0/go.mod h1:RMilNNVMlmK1h4Nl/qylb9vzbgh4F3mufZoUOnPy98o=
+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/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
@@ -151,6 +186,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=
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=
@@ -162,8 +199,9 @@ golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e/go.mod h1:IxCIyHEi3zRg3s0
golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
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 h1:a06MkbcxBrEFc0w0QIZWXrH/9cCX6KJyWbBOIwAn+7A=
golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4=
+golang.org/x/crypto v0.3.1-0.20221117191849-2c476679df9a h1:diz9pEYuTIuLMJLs3rGDkeaTsNyRs6duYdFyPAxzE/U=
+golang.org/x/crypto v0.3.1-0.20221117191849-2c476679df9a/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4=
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=
@@ -181,12 +219,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.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g=
-golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
+golang.org/x/net v0.10.0 h1:X2//UzNDwYmtCLn7To6G58Wr6f5ahEAQgKNzv9Y951M=
+golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
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/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=
@@ -210,22 +250,23 @@ golang.org/x/sys v0.0.0-20220825204002-c680a09ffe64/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU=
-golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU=
+golang.org/x/sys v0.8.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.5.0 h1:n2a8QNdAb0sZNpU9R1ALUXBbY+w51fCQDN+7EdxNBsY=
-golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
+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/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.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo=
-golang.org/x/text v0.7.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/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=
@@ -238,14 +279,14 @@ golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8T
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
-google.golang.org/genproto v0.0.0-20220802133213-ce4fa296bf78 h1:QntLWYqZeuBtJkth3m/6DLznnI0AHJr+AgJXvVh/izw=
-google.golang.org/genproto v0.0.0-20220802133213-ce4fa296bf78/go.mod h1:iHe1svFLAZg9VWz891+QbRMwUv9O/1Ww+/mngYeThbc=
-google.golang.org/grpc v1.51.0 h1:E1eGv1FTqoLIdnBCZufiSHgKjlqG6fKFf6pPWtMTh8U=
-google.golang.org/grpc v1.51.0/go.mod h1:wgNDFcnuBGmxLKI/qn4T+m5BtEBYXJPvibbUPsAIPww=
+google.golang.org/genproto/googleapis/rpc v0.0.0-20230706204954-ccb25ca9f130 h1:2FZP5XuJY9zQyGM5N0rtovnoXjiMUEIUMvw0m9wlpLc=
+google.golang.org/genproto/googleapis/rpc v0.0.0-20230706204954-ccb25ca9f130/go.mod h1:8mL13HKkDa+IuJ8yruA3ci0q+0vsUz4m//+ottjwS5o=
+google.golang.org/grpc v1.57.0 h1:kfzNeI/klCGD2YPMUlaGNT3pxvYfga7smW3Vth8Zsiw=
+google.golang.org/grpc v1.57.0/go.mod h1:Sd+9RMTACXwmub0zcNY2c4arhtrbBYD1AUHI/dt16Mo=
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
-google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w=
-google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
+google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8=
+google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
diff --git a/sdk/go/mssql/azureadServicePrincipal.go b/sdk/go/mssql/azureadServicePrincipal.go
index 6f31caf..5d23951 100644
--- a/sdk/go/mssql/azureadServicePrincipal.go
+++ b/sdk/go/mssql/azureadServicePrincipal.go
@@ -9,6 +9,8 @@ import (
"errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Managed database-level user mapped to Azure AD identity (service principal or managed identity).
@@ -43,7 +45,6 @@ import (
// return err
// }
// exampleAzureadServicePrincipal, err := mssql.NewAzureadServicePrincipal(ctx, "exampleAzureadServicePrincipal", &mssql.AzureadServicePrincipalArgs{
-// Name: pulumi.String("example"),
// DatabaseId: *pulumi.String(exampleDatabase.Id),
// ClientId: *pulumi.String(exampleServicePrincipal.ApplicationId),
// })
@@ -90,10 +91,7 @@ func NewAzureadServicePrincipal(ctx *pulumi.Context,
if args.DatabaseId == nil {
return nil, errors.New("invalid value for required argument 'DatabaseId'")
}
- if args.Name == nil {
- return nil, errors.New("invalid value for required argument 'Name'")
- }
- opts = pkgResourceDefaultOpts(opts)
+ opts = internal.PkgResourceDefaultOpts(opts)
var resource AzureadServicePrincipal
err := ctx.RegisterResource("mssql:index/azureadServicePrincipal:AzureadServicePrincipal", name, args, &resource, opts...)
if err != nil {
@@ -143,7 +141,7 @@ type azureadServicePrincipalArgs struct {
// ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`.
DatabaseId string `pulumi:"databaseId"`
// User name. Cannot be longer than 128 chars.
- Name string `pulumi:"name"`
+ Name *string `pulumi:"name"`
}
// The set of arguments for constructing a AzureadServicePrincipal resource.
@@ -153,7 +151,7 @@ type AzureadServicePrincipalArgs struct {
// ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`.
DatabaseId pulumi.StringInput
// User name. Cannot be longer than 128 chars.
- Name pulumi.StringInput
+ Name pulumi.StringPtrInput
}
func (AzureadServicePrincipalArgs) ElementType() reflect.Type {
@@ -179,6 +177,12 @@ func (i *AzureadServicePrincipal) ToAzureadServicePrincipalOutputWithContext(ctx
return pulumi.ToOutputWithContext(ctx, i).(AzureadServicePrincipalOutput)
}
+func (i *AzureadServicePrincipal) ToOutput(ctx context.Context) pulumix.Output[*AzureadServicePrincipal] {
+ return pulumix.Output[*AzureadServicePrincipal]{
+ OutputState: i.ToAzureadServicePrincipalOutputWithContext(ctx).OutputState,
+ }
+}
+
// AzureadServicePrincipalArrayInput is an input type that accepts AzureadServicePrincipalArray and AzureadServicePrincipalArrayOutput values.
// You can construct a concrete instance of `AzureadServicePrincipalArrayInput` via:
//
@@ -204,6 +208,12 @@ func (i AzureadServicePrincipalArray) ToAzureadServicePrincipalArrayOutputWithCo
return pulumi.ToOutputWithContext(ctx, i).(AzureadServicePrincipalArrayOutput)
}
+func (i AzureadServicePrincipalArray) ToOutput(ctx context.Context) pulumix.Output[[]*AzureadServicePrincipal] {
+ return pulumix.Output[[]*AzureadServicePrincipal]{
+ OutputState: i.ToAzureadServicePrincipalArrayOutputWithContext(ctx).OutputState,
+ }
+}
+
// AzureadServicePrincipalMapInput is an input type that accepts AzureadServicePrincipalMap and AzureadServicePrincipalMapOutput values.
// You can construct a concrete instance of `AzureadServicePrincipalMapInput` via:
//
@@ -229,6 +239,12 @@ func (i AzureadServicePrincipalMap) ToAzureadServicePrincipalMapOutputWithContex
return pulumi.ToOutputWithContext(ctx, i).(AzureadServicePrincipalMapOutput)
}
+func (i AzureadServicePrincipalMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*AzureadServicePrincipal] {
+ return pulumix.Output[map[string]*AzureadServicePrincipal]{
+ OutputState: i.ToAzureadServicePrincipalMapOutputWithContext(ctx).OutputState,
+ }
+}
+
type AzureadServicePrincipalOutput struct{ *pulumi.OutputState }
func (AzureadServicePrincipalOutput) ElementType() reflect.Type {
@@ -243,6 +259,12 @@ func (o AzureadServicePrincipalOutput) ToAzureadServicePrincipalOutputWithContex
return o
}
+func (o AzureadServicePrincipalOutput) ToOutput(ctx context.Context) pulumix.Output[*AzureadServicePrincipal] {
+ return pulumix.Output[*AzureadServicePrincipal]{
+ OutputState: o.OutputState,
+ }
+}
+
// Azure AD clientId of the Service Principal. This can be either regular Service Principal or Managed Service Identity.
func (o AzureadServicePrincipalOutput) ClientId() pulumi.StringOutput {
return o.ApplyT(func(v *AzureadServicePrincipal) pulumi.StringOutput { return v.ClientId }).(pulumi.StringOutput)
@@ -272,6 +294,12 @@ func (o AzureadServicePrincipalArrayOutput) ToAzureadServicePrincipalArrayOutput
return o
}
+func (o AzureadServicePrincipalArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*AzureadServicePrincipal] {
+ return pulumix.Output[[]*AzureadServicePrincipal]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o AzureadServicePrincipalArrayOutput) Index(i pulumi.IntInput) AzureadServicePrincipalOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *AzureadServicePrincipal {
return vs[0].([]*AzureadServicePrincipal)[vs[1].(int)]
@@ -292,6 +320,12 @@ func (o AzureadServicePrincipalMapOutput) ToAzureadServicePrincipalMapOutputWith
return o
}
+func (o AzureadServicePrincipalMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*AzureadServicePrincipal] {
+ return pulumix.Output[map[string]*AzureadServicePrincipal]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o AzureadServicePrincipalMapOutput) MapIndex(k pulumi.StringInput) AzureadServicePrincipalOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *AzureadServicePrincipal {
return vs[0].(map[string]*AzureadServicePrincipal)[vs[1].(string)]
diff --git a/sdk/go/mssql/azureadUser.go b/sdk/go/mssql/azureadUser.go
index fa9f00c..b44b80a 100644
--- a/sdk/go/mssql/azureadUser.go
+++ b/sdk/go/mssql/azureadUser.go
@@ -9,6 +9,8 @@ import (
"errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Managed database-level user mapped to Azure AD identity (user or group).
@@ -43,7 +45,6 @@ import (
// return err
// }
// exampleAzureadUser, err := mssql.NewAzureadUser(ctx, "exampleAzureadUser", &mssql.AzureadUserArgs{
-// Name: pulumi.String("example"),
// DatabaseId: *pulumi.String(exampleDatabase.Id),
// UserObjectId: *pulumi.String(exampleUser.ObjectId),
// })
@@ -87,13 +88,10 @@ func NewAzureadUser(ctx *pulumi.Context,
if args.DatabaseId == nil {
return nil, errors.New("invalid value for required argument 'DatabaseId'")
}
- if args.Name == nil {
- return nil, errors.New("invalid value for required argument 'Name'")
- }
if args.UserObjectId == nil {
return nil, errors.New("invalid value for required argument 'UserObjectId'")
}
- opts = pkgResourceDefaultOpts(opts)
+ opts = internal.PkgResourceDefaultOpts(opts)
var resource AzureadUser
err := ctx.RegisterResource("mssql:index/azureadUser:AzureadUser", name, args, &resource, opts...)
if err != nil {
@@ -141,7 +139,7 @@ type azureadUserArgs struct {
// ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`.
DatabaseId string `pulumi:"databaseId"`
// User name. Cannot be longer than 128 chars.
- Name string `pulumi:"name"`
+ Name *string `pulumi:"name"`
// Azure AD objectId of the user. This can be either regular user or a group.
UserObjectId string `pulumi:"userObjectId"`
}
@@ -151,7 +149,7 @@ type AzureadUserArgs struct {
// ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`.
DatabaseId pulumi.StringInput
// User name. Cannot be longer than 128 chars.
- Name pulumi.StringInput
+ Name pulumi.StringPtrInput
// Azure AD objectId of the user. This can be either regular user or a group.
UserObjectId pulumi.StringInput
}
@@ -179,6 +177,12 @@ func (i *AzureadUser) ToAzureadUserOutputWithContext(ctx context.Context) Azurea
return pulumi.ToOutputWithContext(ctx, i).(AzureadUserOutput)
}
+func (i *AzureadUser) ToOutput(ctx context.Context) pulumix.Output[*AzureadUser] {
+ return pulumix.Output[*AzureadUser]{
+ OutputState: i.ToAzureadUserOutputWithContext(ctx).OutputState,
+ }
+}
+
// AzureadUserArrayInput is an input type that accepts AzureadUserArray and AzureadUserArrayOutput values.
// You can construct a concrete instance of `AzureadUserArrayInput` via:
//
@@ -204,6 +208,12 @@ func (i AzureadUserArray) ToAzureadUserArrayOutputWithContext(ctx context.Contex
return pulumi.ToOutputWithContext(ctx, i).(AzureadUserArrayOutput)
}
+func (i AzureadUserArray) ToOutput(ctx context.Context) pulumix.Output[[]*AzureadUser] {
+ return pulumix.Output[[]*AzureadUser]{
+ OutputState: i.ToAzureadUserArrayOutputWithContext(ctx).OutputState,
+ }
+}
+
// AzureadUserMapInput is an input type that accepts AzureadUserMap and AzureadUserMapOutput values.
// You can construct a concrete instance of `AzureadUserMapInput` via:
//
@@ -229,6 +239,12 @@ func (i AzureadUserMap) ToAzureadUserMapOutputWithContext(ctx context.Context) A
return pulumi.ToOutputWithContext(ctx, i).(AzureadUserMapOutput)
}
+func (i AzureadUserMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*AzureadUser] {
+ return pulumix.Output[map[string]*AzureadUser]{
+ OutputState: i.ToAzureadUserMapOutputWithContext(ctx).OutputState,
+ }
+}
+
type AzureadUserOutput struct{ *pulumi.OutputState }
func (AzureadUserOutput) ElementType() reflect.Type {
@@ -243,6 +259,12 @@ func (o AzureadUserOutput) ToAzureadUserOutputWithContext(ctx context.Context) A
return o
}
+func (o AzureadUserOutput) ToOutput(ctx context.Context) pulumix.Output[*AzureadUser] {
+ return pulumix.Output[*AzureadUser]{
+ OutputState: o.OutputState,
+ }
+}
+
// ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`.
func (o AzureadUserOutput) DatabaseId() pulumi.StringOutput {
return o.ApplyT(func(v *AzureadUser) pulumi.StringOutput { return v.DatabaseId }).(pulumi.StringOutput)
@@ -272,6 +294,12 @@ func (o AzureadUserArrayOutput) ToAzureadUserArrayOutputWithContext(ctx context.
return o
}
+func (o AzureadUserArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*AzureadUser] {
+ return pulumix.Output[[]*AzureadUser]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o AzureadUserArrayOutput) Index(i pulumi.IntInput) AzureadUserOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *AzureadUser {
return vs[0].([]*AzureadUser)[vs[1].(int)]
@@ -292,6 +320,12 @@ func (o AzureadUserMapOutput) ToAzureadUserMapOutputWithContext(ctx context.Cont
return o
}
+func (o AzureadUserMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*AzureadUser] {
+ return pulumix.Output[map[string]*AzureadUser]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o AzureadUserMapOutput) MapIndex(k pulumi.StringInput) AzureadUserOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *AzureadUser {
return vs[0].(map[string]*AzureadUser)[vs[1].(string)]
diff --git a/sdk/go/mssql/config/config.go b/sdk/go/mssql/config/config.go
index cc5eee5..c95c3b2 100644
--- a/sdk/go/mssql/config/config.go
+++ b/sdk/go/mssql/config/config.go
@@ -6,8 +6,11 @@ package config
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
+var _ = internal.GetEnvOrDefault
+
// When provided, Azure AD authentication will be used when connecting.
func GetAzureAuth(ctx *pulumi.Context) string {
return config.Get(ctx, "mssql:azureAuth")
@@ -20,7 +23,7 @@ func GetHostname(ctx *pulumi.Context) string {
return v
}
var value string
- if d := getEnvOrDefault(nil, nil, "MSSQL_HOSTNAME"); d != nil {
+ if d := internal.GetEnvOrDefault(nil, nil, "MSSQL_HOSTNAME"); d != nil {
value = d.(string)
}
return value
@@ -33,7 +36,7 @@ func GetPort(ctx *pulumi.Context) int {
return v
}
var value int
- if d := getEnvOrDefault(1433, parseEnvInt, "MSSQL_PORT"); d != nil {
+ if d := internal.GetEnvOrDefault(1433, internal.ParseEnvInt, "MSSQL_PORT"); d != nil {
value = d.(int)
}
return value
diff --git a/sdk/go/mssql/config/pulumiTypes.go b/sdk/go/mssql/config/pulumiTypes.go
index 90b1bb7..002cfec 100644
--- a/sdk/go/mssql/config/pulumiTypes.go
+++ b/sdk/go/mssql/config/pulumiTypes.go
@@ -8,8 +8,12 @@ import (
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
+var _ = internal.GetEnvOrDefault
+
type AzureAuth struct {
ClientId *string `pulumi:"clientId"`
ClientSecret *string `pulumi:"clientSecret"`
@@ -45,6 +49,12 @@ func (i AzureAuthArgs) ToAzureAuthOutputWithContext(ctx context.Context) AzureAu
return pulumi.ToOutputWithContext(ctx, i).(AzureAuthOutput)
}
+func (i AzureAuthArgs) ToOutput(ctx context.Context) pulumix.Output[AzureAuth] {
+ return pulumix.Output[AzureAuth]{
+ OutputState: i.ToAzureAuthOutputWithContext(ctx).OutputState,
+ }
+}
+
type AzureAuthOutput struct{ *pulumi.OutputState }
func (AzureAuthOutput) ElementType() reflect.Type {
@@ -59,6 +69,12 @@ func (o AzureAuthOutput) ToAzureAuthOutputWithContext(ctx context.Context) Azure
return o
}
+func (o AzureAuthOutput) ToOutput(ctx context.Context) pulumix.Output[AzureAuth] {
+ return pulumix.Output[AzureAuth]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o AzureAuthOutput) ClientId() pulumi.StringPtrOutput {
return o.ApplyT(func(v AzureAuth) *string { return v.ClientId }).(pulumi.StringPtrOutput)
}
@@ -104,6 +120,12 @@ func (i SqlAuthArgs) ToSqlAuthOutputWithContext(ctx context.Context) SqlAuthOutp
return pulumi.ToOutputWithContext(ctx, i).(SqlAuthOutput)
}
+func (i SqlAuthArgs) ToOutput(ctx context.Context) pulumix.Output[SqlAuth] {
+ return pulumix.Output[SqlAuth]{
+ OutputState: i.ToSqlAuthOutputWithContext(ctx).OutputState,
+ }
+}
+
type SqlAuthOutput struct{ *pulumi.OutputState }
func (SqlAuthOutput) ElementType() reflect.Type {
@@ -118,6 +140,12 @@ func (o SqlAuthOutput) ToSqlAuthOutputWithContext(ctx context.Context) SqlAuthOu
return o
}
+func (o SqlAuthOutput) ToOutput(ctx context.Context) pulumix.Output[SqlAuth] {
+ return pulumix.Output[SqlAuth]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o SqlAuthOutput) Password() pulumi.StringOutput {
return o.ApplyT(func(v SqlAuth) string { return v.Password }).(pulumi.StringOutput)
}
diff --git a/sdk/go/mssql/database.go b/sdk/go/mssql/database.go
index 6cd3f4e..5f46a20 100644
--- a/sdk/go/mssql/database.go
+++ b/sdk/go/mssql/database.go
@@ -7,8 +7,9 @@ import (
"context"
"reflect"
- "errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Manages single database.
@@ -29,7 +30,6 @@ import (
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := mssql.NewDatabase(ctx, "example", &mssql.DatabaseArgs{
// Collation: pulumi.String("SQL_Latin1_General_CP1_CS_AS"),
-// Name: pulumi.String("example"),
// })
// if err != nil {
// return err
@@ -62,13 +62,10 @@ type Database struct {
func NewDatabase(ctx *pulumi.Context,
name string, args *DatabaseArgs, opts ...pulumi.ResourceOption) (*Database, error) {
if args == nil {
- return nil, errors.New("missing one or more required arguments")
+ args = &DatabaseArgs{}
}
- if args.Name == nil {
- return nil, errors.New("invalid value for required argument 'Name'")
- }
- opts = pkgResourceDefaultOpts(opts)
+ opts = internal.PkgResourceDefaultOpts(opts)
var resource Database
err := ctx.RegisterResource("mssql:index/database:Database", name, args, &resource, opts...)
if err != nil {
@@ -112,7 +109,7 @@ type databaseArgs struct {
// Default collation name. Can be either a Windows collation name or a SQL collation name. Defaults to SQL Server instance's default collation.
Collation *string `pulumi:"collation"`
// Database name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers).
- Name string `pulumi:"name"`
+ Name *string `pulumi:"name"`
}
// The set of arguments for constructing a Database resource.
@@ -120,7 +117,7 @@ type DatabaseArgs struct {
// Default collation name. Can be either a Windows collation name or a SQL collation name. Defaults to SQL Server instance's default collation.
Collation pulumi.StringPtrInput
// Database name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers).
- Name pulumi.StringInput
+ Name pulumi.StringPtrInput
}
func (DatabaseArgs) ElementType() reflect.Type {
@@ -146,6 +143,12 @@ func (i *Database) ToDatabaseOutputWithContext(ctx context.Context) DatabaseOutp
return pulumi.ToOutputWithContext(ctx, i).(DatabaseOutput)
}
+func (i *Database) ToOutput(ctx context.Context) pulumix.Output[*Database] {
+ return pulumix.Output[*Database]{
+ OutputState: i.ToDatabaseOutputWithContext(ctx).OutputState,
+ }
+}
+
// DatabaseArrayInput is an input type that accepts DatabaseArray and DatabaseArrayOutput values.
// You can construct a concrete instance of `DatabaseArrayInput` via:
//
@@ -171,6 +174,12 @@ func (i DatabaseArray) ToDatabaseArrayOutputWithContext(ctx context.Context) Dat
return pulumi.ToOutputWithContext(ctx, i).(DatabaseArrayOutput)
}
+func (i DatabaseArray) ToOutput(ctx context.Context) pulumix.Output[[]*Database] {
+ return pulumix.Output[[]*Database]{
+ OutputState: i.ToDatabaseArrayOutputWithContext(ctx).OutputState,
+ }
+}
+
// DatabaseMapInput is an input type that accepts DatabaseMap and DatabaseMapOutput values.
// You can construct a concrete instance of `DatabaseMapInput` via:
//
@@ -196,6 +205,12 @@ func (i DatabaseMap) ToDatabaseMapOutputWithContext(ctx context.Context) Databas
return pulumi.ToOutputWithContext(ctx, i).(DatabaseMapOutput)
}
+func (i DatabaseMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*Database] {
+ return pulumix.Output[map[string]*Database]{
+ OutputState: i.ToDatabaseMapOutputWithContext(ctx).OutputState,
+ }
+}
+
type DatabaseOutput struct{ *pulumi.OutputState }
func (DatabaseOutput) ElementType() reflect.Type {
@@ -210,6 +225,12 @@ func (o DatabaseOutput) ToDatabaseOutputWithContext(ctx context.Context) Databas
return o
}
+func (o DatabaseOutput) ToOutput(ctx context.Context) pulumix.Output[*Database] {
+ return pulumix.Output[*Database]{
+ OutputState: o.OutputState,
+ }
+}
+
// Default collation name. Can be either a Windows collation name or a SQL collation name. Defaults to SQL Server instance's default collation.
func (o DatabaseOutput) Collation() pulumi.StringOutput {
return o.ApplyT(func(v *Database) pulumi.StringOutput { return v.Collation }).(pulumi.StringOutput)
@@ -234,6 +255,12 @@ func (o DatabaseArrayOutput) ToDatabaseArrayOutputWithContext(ctx context.Contex
return o
}
+func (o DatabaseArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*Database] {
+ return pulumix.Output[[]*Database]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o DatabaseArrayOutput) Index(i pulumi.IntInput) DatabaseOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Database {
return vs[0].([]*Database)[vs[1].(int)]
@@ -254,6 +281,12 @@ func (o DatabaseMapOutput) ToDatabaseMapOutputWithContext(ctx context.Context) D
return o
}
+func (o DatabaseMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*Database] {
+ return pulumix.Output[map[string]*Database]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o DatabaseMapOutput) MapIndex(k pulumi.StringInput) DatabaseOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Database {
return vs[0].(map[string]*Database)[vs[1].(string)]
diff --git a/sdk/go/mssql/databasePermission.go b/sdk/go/mssql/databasePermission.go
index 384fd9b..486a62c 100644
--- a/sdk/go/mssql/databasePermission.go
+++ b/sdk/go/mssql/databasePermission.go
@@ -9,6 +9,8 @@ import (
"errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Grants database-level permission.
@@ -86,7 +88,7 @@ func NewDatabasePermission(ctx *pulumi.Context,
if args.PrincipalId == nil {
return nil, errors.New("invalid value for required argument 'PrincipalId'")
}
- opts = pkgResourceDefaultOpts(opts)
+ opts = internal.PkgResourceDefaultOpts(opts)
var resource DatabasePermission
err := ctx.RegisterResource("mssql:index/databasePermission:DatabasePermission", name, args, &resource, opts...)
if err != nil {
@@ -172,6 +174,12 @@ func (i *DatabasePermission) ToDatabasePermissionOutputWithContext(ctx context.C
return pulumi.ToOutputWithContext(ctx, i).(DatabasePermissionOutput)
}
+func (i *DatabasePermission) ToOutput(ctx context.Context) pulumix.Output[*DatabasePermission] {
+ return pulumix.Output[*DatabasePermission]{
+ OutputState: i.ToDatabasePermissionOutputWithContext(ctx).OutputState,
+ }
+}
+
// DatabasePermissionArrayInput is an input type that accepts DatabasePermissionArray and DatabasePermissionArrayOutput values.
// You can construct a concrete instance of `DatabasePermissionArrayInput` via:
//
@@ -197,6 +205,12 @@ func (i DatabasePermissionArray) ToDatabasePermissionArrayOutputWithContext(ctx
return pulumi.ToOutputWithContext(ctx, i).(DatabasePermissionArrayOutput)
}
+func (i DatabasePermissionArray) ToOutput(ctx context.Context) pulumix.Output[[]*DatabasePermission] {
+ return pulumix.Output[[]*DatabasePermission]{
+ OutputState: i.ToDatabasePermissionArrayOutputWithContext(ctx).OutputState,
+ }
+}
+
// DatabasePermissionMapInput is an input type that accepts DatabasePermissionMap and DatabasePermissionMapOutput values.
// You can construct a concrete instance of `DatabasePermissionMapInput` via:
//
@@ -222,6 +236,12 @@ func (i DatabasePermissionMap) ToDatabasePermissionMapOutputWithContext(ctx cont
return pulumi.ToOutputWithContext(ctx, i).(DatabasePermissionMapOutput)
}
+func (i DatabasePermissionMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*DatabasePermission] {
+ return pulumix.Output[map[string]*DatabasePermission]{
+ OutputState: i.ToDatabasePermissionMapOutputWithContext(ctx).OutputState,
+ }
+}
+
type DatabasePermissionOutput struct{ *pulumi.OutputState }
func (DatabasePermissionOutput) ElementType() reflect.Type {
@@ -236,6 +256,12 @@ func (o DatabasePermissionOutput) ToDatabasePermissionOutputWithContext(ctx cont
return o
}
+func (o DatabasePermissionOutput) ToOutput(ctx context.Context) pulumix.Output[*DatabasePermission] {
+ return pulumix.Output[*DatabasePermission]{
+ OutputState: o.OutputState,
+ }
+}
+
// Name of database-level SQL permission. For full list of supported permissions, see [docs](https://learn.microsoft.com/en-us/sql/t-sql/statements/grant-database-permissions-transact-sql?view=azuresqldb-current#remarks)
func (o DatabasePermissionOutput) Permission() pulumi.StringOutput {
return o.ApplyT(func(v *DatabasePermission) pulumi.StringOutput { return v.Permission }).(pulumi.StringOutput)
@@ -265,6 +291,12 @@ func (o DatabasePermissionArrayOutput) ToDatabasePermissionArrayOutputWithContex
return o
}
+func (o DatabasePermissionArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*DatabasePermission] {
+ return pulumix.Output[[]*DatabasePermission]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o DatabasePermissionArrayOutput) Index(i pulumi.IntInput) DatabasePermissionOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *DatabasePermission {
return vs[0].([]*DatabasePermission)[vs[1].(int)]
@@ -285,6 +317,12 @@ func (o DatabasePermissionMapOutput) ToDatabasePermissionMapOutputWithContext(ct
return o
}
+func (o DatabasePermissionMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*DatabasePermission] {
+ return pulumix.Output[map[string]*DatabasePermission]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o DatabasePermissionMapOutput) MapIndex(k pulumi.StringInput) DatabasePermissionOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *DatabasePermission {
return vs[0].(map[string]*DatabasePermission)[vs[1].(string)]
diff --git a/sdk/go/mssql/databaseRole.go b/sdk/go/mssql/databaseRole.go
index 6cc38f7..e04f407 100644
--- a/sdk/go/mssql/databaseRole.go
+++ b/sdk/go/mssql/databaseRole.go
@@ -7,8 +7,9 @@ import (
"context"
"reflect"
- "errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Manages database-level role.
@@ -40,7 +41,6 @@ import (
// return err
// }
// _, err = mssql.NewDatabaseRole(ctx, "exampleDatabaseRole", &mssql.DatabaseRoleArgs{
-// Name: pulumi.String("example"),
// DatabaseId: *pulumi.String(exampleDatabase.Id),
// OwnerId: *pulumi.String(owner.Id),
// })
@@ -78,13 +78,10 @@ type DatabaseRole struct {
func NewDatabaseRole(ctx *pulumi.Context,
name string, args *DatabaseRoleArgs, opts ...pulumi.ResourceOption) (*DatabaseRole, error) {
if args == nil {
- return nil, errors.New("missing one or more required arguments")
+ args = &DatabaseRoleArgs{}
}
- if args.Name == nil {
- return nil, errors.New("invalid value for required argument 'Name'")
- }
- opts = pkgResourceDefaultOpts(opts)
+ opts = internal.PkgResourceDefaultOpts(opts)
var resource DatabaseRole
err := ctx.RegisterResource("mssql:index/databaseRole:DatabaseRole", name, args, &resource, opts...)
if err != nil {
@@ -134,7 +131,7 @@ type databaseRoleArgs struct {
// ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
DatabaseId *string `pulumi:"databaseId"`
// Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars.
- Name string `pulumi:"name"`
+ Name *string `pulumi:"name"`
// ID of another database role or user owning this role. Can be retrieved using `mssql_database_role` or `mssql_sql_user`.
// Defaults to ID of current user, used to authorize the Terraform provider.
OwnerId *string `pulumi:"ownerId"`
@@ -145,7 +142,7 @@ type DatabaseRoleArgs struct {
// ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
DatabaseId pulumi.StringPtrInput
// Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars.
- Name pulumi.StringInput
+ Name pulumi.StringPtrInput
// ID of another database role or user owning this role. Can be retrieved using `mssql_database_role` or `mssql_sql_user`.
// Defaults to ID of current user, used to authorize the Terraform provider.
OwnerId pulumi.StringPtrInput
@@ -174,6 +171,12 @@ func (i *DatabaseRole) ToDatabaseRoleOutputWithContext(ctx context.Context) Data
return pulumi.ToOutputWithContext(ctx, i).(DatabaseRoleOutput)
}
+func (i *DatabaseRole) ToOutput(ctx context.Context) pulumix.Output[*DatabaseRole] {
+ return pulumix.Output[*DatabaseRole]{
+ OutputState: i.ToDatabaseRoleOutputWithContext(ctx).OutputState,
+ }
+}
+
// DatabaseRoleArrayInput is an input type that accepts DatabaseRoleArray and DatabaseRoleArrayOutput values.
// You can construct a concrete instance of `DatabaseRoleArrayInput` via:
//
@@ -199,6 +202,12 @@ func (i DatabaseRoleArray) ToDatabaseRoleArrayOutputWithContext(ctx context.Cont
return pulumi.ToOutputWithContext(ctx, i).(DatabaseRoleArrayOutput)
}
+func (i DatabaseRoleArray) ToOutput(ctx context.Context) pulumix.Output[[]*DatabaseRole] {
+ return pulumix.Output[[]*DatabaseRole]{
+ OutputState: i.ToDatabaseRoleArrayOutputWithContext(ctx).OutputState,
+ }
+}
+
// DatabaseRoleMapInput is an input type that accepts DatabaseRoleMap and DatabaseRoleMapOutput values.
// You can construct a concrete instance of `DatabaseRoleMapInput` via:
//
@@ -224,6 +233,12 @@ func (i DatabaseRoleMap) ToDatabaseRoleMapOutputWithContext(ctx context.Context)
return pulumi.ToOutputWithContext(ctx, i).(DatabaseRoleMapOutput)
}
+func (i DatabaseRoleMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*DatabaseRole] {
+ return pulumix.Output[map[string]*DatabaseRole]{
+ OutputState: i.ToDatabaseRoleMapOutputWithContext(ctx).OutputState,
+ }
+}
+
type DatabaseRoleOutput struct{ *pulumi.OutputState }
func (DatabaseRoleOutput) ElementType() reflect.Type {
@@ -238,6 +253,12 @@ func (o DatabaseRoleOutput) ToDatabaseRoleOutputWithContext(ctx context.Context)
return o
}
+func (o DatabaseRoleOutput) ToOutput(ctx context.Context) pulumix.Output[*DatabaseRole] {
+ return pulumix.Output[*DatabaseRole]{
+ OutputState: o.OutputState,
+ }
+}
+
// ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
func (o DatabaseRoleOutput) DatabaseId() pulumi.StringOutput {
return o.ApplyT(func(v *DatabaseRole) pulumi.StringOutput { return v.DatabaseId }).(pulumi.StringOutput)
@@ -268,6 +289,12 @@ func (o DatabaseRoleArrayOutput) ToDatabaseRoleArrayOutputWithContext(ctx contex
return o
}
+func (o DatabaseRoleArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*DatabaseRole] {
+ return pulumix.Output[[]*DatabaseRole]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o DatabaseRoleArrayOutput) Index(i pulumi.IntInput) DatabaseRoleOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *DatabaseRole {
return vs[0].([]*DatabaseRole)[vs[1].(int)]
@@ -288,6 +315,12 @@ func (o DatabaseRoleMapOutput) ToDatabaseRoleMapOutputWithContext(ctx context.Co
return o
}
+func (o DatabaseRoleMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*DatabaseRole] {
+ return pulumix.Output[map[string]*DatabaseRole]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o DatabaseRoleMapOutput) MapIndex(k pulumi.StringInput) DatabaseRoleOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *DatabaseRole {
return vs[0].(map[string]*DatabaseRole)[vs[1].(string)]
diff --git a/sdk/go/mssql/databaseRoleMember.go b/sdk/go/mssql/databaseRoleMember.go
index 96c58d6..c2fde03 100644
--- a/sdk/go/mssql/databaseRoleMember.go
+++ b/sdk/go/mssql/databaseRoleMember.go
@@ -9,6 +9,8 @@ import (
"errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Manages database role membership.
@@ -48,7 +50,6 @@ import (
// return err
// }
// exampleDatabaseRole, err := mssql.NewDatabaseRole(ctx, "exampleDatabaseRole", &mssql.DatabaseRoleArgs{
-// Name: pulumi.String("example"),
// DatabaseId: *pulumi.String(exampleDatabase.Id),
// OwnerId: *pulumi.String(owner.Id),
// })
@@ -99,7 +100,7 @@ func NewDatabaseRoleMember(ctx *pulumi.Context,
if args.RoleId == nil {
return nil, errors.New("invalid value for required argument 'RoleId'")
}
- opts = pkgResourceDefaultOpts(opts)
+ opts = internal.PkgResourceDefaultOpts(opts)
var resource DatabaseRoleMember
err := ctx.RegisterResource("mssql:index/databaseRoleMember:DatabaseRoleMember", name, args, &resource, opts...)
if err != nil {
@@ -177,6 +178,12 @@ func (i *DatabaseRoleMember) ToDatabaseRoleMemberOutputWithContext(ctx context.C
return pulumi.ToOutputWithContext(ctx, i).(DatabaseRoleMemberOutput)
}
+func (i *DatabaseRoleMember) ToOutput(ctx context.Context) pulumix.Output[*DatabaseRoleMember] {
+ return pulumix.Output[*DatabaseRoleMember]{
+ OutputState: i.ToDatabaseRoleMemberOutputWithContext(ctx).OutputState,
+ }
+}
+
// DatabaseRoleMemberArrayInput is an input type that accepts DatabaseRoleMemberArray and DatabaseRoleMemberArrayOutput values.
// You can construct a concrete instance of `DatabaseRoleMemberArrayInput` via:
//
@@ -202,6 +209,12 @@ func (i DatabaseRoleMemberArray) ToDatabaseRoleMemberArrayOutputWithContext(ctx
return pulumi.ToOutputWithContext(ctx, i).(DatabaseRoleMemberArrayOutput)
}
+func (i DatabaseRoleMemberArray) ToOutput(ctx context.Context) pulumix.Output[[]*DatabaseRoleMember] {
+ return pulumix.Output[[]*DatabaseRoleMember]{
+ OutputState: i.ToDatabaseRoleMemberArrayOutputWithContext(ctx).OutputState,
+ }
+}
+
// DatabaseRoleMemberMapInput is an input type that accepts DatabaseRoleMemberMap and DatabaseRoleMemberMapOutput values.
// You can construct a concrete instance of `DatabaseRoleMemberMapInput` via:
//
@@ -227,6 +240,12 @@ func (i DatabaseRoleMemberMap) ToDatabaseRoleMemberMapOutputWithContext(ctx cont
return pulumi.ToOutputWithContext(ctx, i).(DatabaseRoleMemberMapOutput)
}
+func (i DatabaseRoleMemberMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*DatabaseRoleMember] {
+ return pulumix.Output[map[string]*DatabaseRoleMember]{
+ OutputState: i.ToDatabaseRoleMemberMapOutputWithContext(ctx).OutputState,
+ }
+}
+
type DatabaseRoleMemberOutput struct{ *pulumi.OutputState }
func (DatabaseRoleMemberOutput) ElementType() reflect.Type {
@@ -241,6 +260,12 @@ func (o DatabaseRoleMemberOutput) ToDatabaseRoleMemberOutputWithContext(ctx cont
return o
}
+func (o DatabaseRoleMemberOutput) ToOutput(ctx context.Context) pulumix.Output[*DatabaseRoleMember] {
+ return pulumix.Output[*DatabaseRoleMember]{
+ OutputState: o.OutputState,
+ }
+}
+
// Can be either user or role ID in format `/`. Can be retrieved using `SqlUser` or `mssqlDatabaseMember`.
func (o DatabaseRoleMemberOutput) MemberId() pulumi.StringOutput {
return o.ApplyT(func(v *DatabaseRoleMember) pulumi.StringOutput { return v.MemberId }).(pulumi.StringOutput)
@@ -265,6 +290,12 @@ func (o DatabaseRoleMemberArrayOutput) ToDatabaseRoleMemberArrayOutputWithContex
return o
}
+func (o DatabaseRoleMemberArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*DatabaseRoleMember] {
+ return pulumix.Output[[]*DatabaseRoleMember]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o DatabaseRoleMemberArrayOutput) Index(i pulumi.IntInput) DatabaseRoleMemberOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *DatabaseRoleMember {
return vs[0].([]*DatabaseRoleMember)[vs[1].(int)]
@@ -285,6 +316,12 @@ func (o DatabaseRoleMemberMapOutput) ToDatabaseRoleMemberMapOutputWithContext(ct
return o
}
+func (o DatabaseRoleMemberMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*DatabaseRoleMember] {
+ return pulumix.Output[map[string]*DatabaseRoleMember]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o DatabaseRoleMemberMapOutput) MapIndex(k pulumi.StringInput) DatabaseRoleMemberOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *DatabaseRoleMember {
return vs[0].(map[string]*DatabaseRoleMember)[vs[1].(string)]
diff --git a/sdk/go/mssql/getAzureadServicePrincipal.go b/sdk/go/mssql/getAzureadServicePrincipal.go
index 6b2a5ee..246dcf5 100644
--- a/sdk/go/mssql/getAzureadServicePrincipal.go
+++ b/sdk/go/mssql/getAzureadServicePrincipal.go
@@ -8,6 +8,8 @@ import (
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Obtains information about single Azure AD Service Principal database user.
@@ -46,7 +48,7 @@ import (
//
// ```
func LookupAzureadServicePrincipal(ctx *pulumi.Context, args *LookupAzureadServicePrincipalArgs, opts ...pulumi.InvokeOption) (*LookupAzureadServicePrincipalResult, error) {
- opts = pkgInvokeDefaultOpts(opts)
+ opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupAzureadServicePrincipalResult
err := ctx.Invoke("mssql:index/getAzureadServicePrincipal:getAzureadServicePrincipal", args, &rv, opts...)
if err != nil {
@@ -119,6 +121,12 @@ func (o LookupAzureadServicePrincipalResultOutput) ToLookupAzureadServicePrincip
return o
}
+func (o LookupAzureadServicePrincipalResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupAzureadServicePrincipalResult] {
+ return pulumix.Output[LookupAzureadServicePrincipalResult]{
+ OutputState: o.OutputState,
+ }
+}
+
// Azure AD clientId of the Service Principal. This can be either regular Service Principal or Managed Service Identity.
func (o LookupAzureadServicePrincipalResultOutput) ClientId() pulumi.StringOutput {
return o.ApplyT(func(v LookupAzureadServicePrincipalResult) string { return v.ClientId }).(pulumi.StringOutput)
diff --git a/sdk/go/mssql/getAzureadUser.go b/sdk/go/mssql/getAzureadUser.go
index 22d5c27..5442a3a 100644
--- a/sdk/go/mssql/getAzureadUser.go
+++ b/sdk/go/mssql/getAzureadUser.go
@@ -8,6 +8,8 @@ import (
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Obtains information about single Azure AD database user.
@@ -46,7 +48,7 @@ import (
//
// ```
func LookupAzureadUser(ctx *pulumi.Context, args *LookupAzureadUserArgs, opts ...pulumi.InvokeOption) (*LookupAzureadUserResult, error) {
- opts = pkgInvokeDefaultOpts(opts)
+ opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupAzureadUserResult
err := ctx.Invoke("mssql:index/getAzureadUser:getAzureadUser", args, &rv, opts...)
if err != nil {
@@ -119,6 +121,12 @@ func (o LookupAzureadUserResultOutput) ToLookupAzureadUserResultOutputWithContex
return o
}
+func (o LookupAzureadUserResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupAzureadUserResult] {
+ return pulumix.Output[LookupAzureadUserResult]{
+ OutputState: o.OutputState,
+ }
+}
+
// ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`.
func (o LookupAzureadUserResultOutput) DatabaseId() pulumi.StringOutput {
return o.ApplyT(func(v LookupAzureadUserResult) string { return v.DatabaseId }).(pulumi.StringOutput)
diff --git a/sdk/go/mssql/getDatabase.go b/sdk/go/mssql/getDatabase.go
index fc3b97a..33f3c88 100644
--- a/sdk/go/mssql/getDatabase.go
+++ b/sdk/go/mssql/getDatabase.go
@@ -8,6 +8,8 @@ import (
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Obtains information about single database.
@@ -40,7 +42,7 @@ import (
//
// ```
func LookupDatabase(ctx *pulumi.Context, args *LookupDatabaseArgs, opts ...pulumi.InvokeOption) (*LookupDatabaseResult, error) {
- opts = pkgInvokeDefaultOpts(opts)
+ opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupDatabaseResult
err := ctx.Invoke("mssql:index/getDatabase:getDatabase", args, &rv, opts...)
if err != nil {
@@ -103,6 +105,12 @@ func (o LookupDatabaseResultOutput) ToLookupDatabaseResultOutputWithContext(ctx
return o
}
+func (o LookupDatabaseResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupDatabaseResult] {
+ return pulumix.Output[LookupDatabaseResult]{
+ OutputState: o.OutputState,
+ }
+}
+
// Default collation name. Can be either a Windows collation name or a SQL collation name.
func (o LookupDatabaseResultOutput) Collation() pulumi.StringOutput {
return o.ApplyT(func(v LookupDatabaseResult) string { return v.Collation }).(pulumi.StringOutput)
diff --git a/sdk/go/mssql/getDatabasePermissions.go b/sdk/go/mssql/getDatabasePermissions.go
index cdbab12..f06af5f 100644
--- a/sdk/go/mssql/getDatabasePermissions.go
+++ b/sdk/go/mssql/getDatabasePermissions.go
@@ -8,6 +8,8 @@ import (
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Returns all permissions granted in a DB to given principal
@@ -52,7 +54,7 @@ import (
//
// ```
func GetDatabasePermissions(ctx *pulumi.Context, args *GetDatabasePermissionsArgs, opts ...pulumi.InvokeOption) (*GetDatabasePermissionsResult, error) {
- opts = pkgInvokeDefaultOpts(opts)
+ opts = internal.PkgInvokeDefaultOpts(opts)
var rv GetDatabasePermissionsResult
err := ctx.Invoke("mssql:index/getDatabasePermissions:getDatabasePermissions", args, &rv, opts...)
if err != nil {
@@ -115,6 +117,12 @@ func (o GetDatabasePermissionsResultOutput) ToGetDatabasePermissionsResultOutput
return o
}
+func (o GetDatabasePermissionsResultOutput) ToOutput(ctx context.Context) pulumix.Output[GetDatabasePermissionsResult] {
+ return pulumix.Output[GetDatabasePermissionsResult]{
+ OutputState: o.OutputState,
+ }
+}
+
// `/`.
func (o GetDatabasePermissionsResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v GetDatabasePermissionsResult) string { return v.Id }).(pulumi.StringOutput)
diff --git a/sdk/go/mssql/getDatabaseRole.go b/sdk/go/mssql/getDatabaseRole.go
index f5f5428..a4eaf2b 100644
--- a/sdk/go/mssql/getDatabaseRole.go
+++ b/sdk/go/mssql/getDatabaseRole.go
@@ -8,6 +8,8 @@ import (
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Obtains information about single database role.
@@ -46,7 +48,7 @@ import (
//
// ```
func LookupDatabaseRole(ctx *pulumi.Context, args *LookupDatabaseRoleArgs, opts ...pulumi.InvokeOption) (*LookupDatabaseRoleResult, error) {
- opts = pkgInvokeDefaultOpts(opts)
+ opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupDatabaseRoleResult
err := ctx.Invoke("mssql:index/getDatabaseRole:getDatabaseRole", args, &rv, opts...)
if err != nil {
@@ -59,7 +61,7 @@ func LookupDatabaseRole(ctx *pulumi.Context, args *LookupDatabaseRoleArgs, opts
type LookupDatabaseRoleArgs struct {
// ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
DatabaseId *string `pulumi:"databaseId"`
- // Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars.
+ // Name of the database principal.
Name string `pulumi:"name"`
}
@@ -94,7 +96,7 @@ func LookupDatabaseRoleOutput(ctx *pulumi.Context, args LookupDatabaseRoleOutput
type LookupDatabaseRoleOutputArgs struct {
// ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
DatabaseId pulumi.StringPtrInput `pulumi:"databaseId"`
- // Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars.
+ // Name of the database principal.
Name pulumi.StringInput `pulumi:"name"`
}
@@ -117,6 +119,12 @@ func (o LookupDatabaseRoleResultOutput) ToLookupDatabaseRoleResultOutputWithCont
return o
}
+func (o LookupDatabaseRoleResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupDatabaseRoleResult] {
+ return pulumix.Output[LookupDatabaseRoleResult]{
+ OutputState: o.OutputState,
+ }
+}
+
// ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
func (o LookupDatabaseRoleResultOutput) DatabaseId() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupDatabaseRoleResult) *string { return v.DatabaseId }).(pulumi.StringPtrOutput)
diff --git a/sdk/go/mssql/getDatabaseRoles.go b/sdk/go/mssql/getDatabaseRoles.go
index 7143fa1..f9842fb 100644
--- a/sdk/go/mssql/getDatabaseRoles.go
+++ b/sdk/go/mssql/getDatabaseRoles.go
@@ -8,6 +8,8 @@ import (
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Obtains information about all roles defined in a database.
@@ -45,7 +47,7 @@ import (
//
// ```
func GetDatabaseRoles(ctx *pulumi.Context, args *GetDatabaseRolesArgs, opts ...pulumi.InvokeOption) (*GetDatabaseRolesResult, error) {
- opts = pkgInvokeDefaultOpts(opts)
+ opts = internal.PkgInvokeDefaultOpts(opts)
var rv GetDatabaseRolesResult
err := ctx.Invoke("mssql:index/getDatabaseRoles:getDatabaseRoles", args, &rv, opts...)
if err != nil {
@@ -56,7 +58,7 @@ func GetDatabaseRoles(ctx *pulumi.Context, args *GetDatabaseRolesArgs, opts ...p
// A collection of arguments for invoking getDatabaseRoles.
type GetDatabaseRolesArgs struct {
- // ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
+ // ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`.
DatabaseId *string `pulumi:"databaseId"`
}
@@ -85,7 +87,7 @@ func GetDatabaseRolesOutput(ctx *pulumi.Context, args GetDatabaseRolesOutputArgs
// A collection of arguments for invoking getDatabaseRoles.
type GetDatabaseRolesOutputArgs struct {
- // ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
+ // ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`.
DatabaseId pulumi.StringPtrInput `pulumi:"databaseId"`
}
@@ -108,6 +110,12 @@ func (o GetDatabaseRolesResultOutput) ToGetDatabaseRolesResultOutputWithContext(
return o
}
+func (o GetDatabaseRolesResultOutput) ToOutput(ctx context.Context) pulumix.Output[GetDatabaseRolesResult] {
+ return pulumix.Output[GetDatabaseRolesResult]{
+ OutputState: o.OutputState,
+ }
+}
+
// ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
func (o GetDatabaseRolesResultOutput) DatabaseId() pulumi.StringPtrOutput {
return o.ApplyT(func(v GetDatabaseRolesResult) *string { return v.DatabaseId }).(pulumi.StringPtrOutput)
diff --git a/sdk/go/mssql/getDatabases.go b/sdk/go/mssql/getDatabases.go
index db817e2..49f18ff 100644
--- a/sdk/go/mssql/getDatabases.go
+++ b/sdk/go/mssql/getDatabases.go
@@ -4,7 +4,12 @@
package mssql
import (
+ "context"
+ "reflect"
+
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Obtains information about all databases found in SQL Server instance.
@@ -34,7 +39,7 @@ import (
//
// ```
func GetDatabases(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetDatabasesResult, error) {
- opts = pkgInvokeDefaultOpts(opts)
+ opts = internal.PkgInvokeDefaultOpts(opts)
var rv GetDatabasesResult
err := ctx.Invoke("mssql:index/getDatabases:getDatabases", nil, &rv, opts...)
if err != nil {
@@ -50,3 +55,49 @@ type GetDatabasesResult struct {
// ID of the resource used only internally by the provider.
Id string `pulumi:"id"`
}
+
+func GetDatabasesOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetDatabasesResultOutput {
+ return pulumi.ToOutput(0).ApplyT(func(int) (GetDatabasesResult, error) {
+ r, err := GetDatabases(ctx, opts...)
+ var s GetDatabasesResult
+ if r != nil {
+ s = *r
+ }
+ return s, err
+ }).(GetDatabasesResultOutput)
+}
+
+// A collection of values returned by getDatabases.
+type GetDatabasesResultOutput struct{ *pulumi.OutputState }
+
+func (GetDatabasesResultOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((*GetDatabasesResult)(nil)).Elem()
+}
+
+func (o GetDatabasesResultOutput) ToGetDatabasesResultOutput() GetDatabasesResultOutput {
+ return o
+}
+
+func (o GetDatabasesResultOutput) ToGetDatabasesResultOutputWithContext(ctx context.Context) GetDatabasesResultOutput {
+ return o
+}
+
+func (o GetDatabasesResultOutput) ToOutput(ctx context.Context) pulumix.Output[GetDatabasesResult] {
+ return pulumix.Output[GetDatabasesResult]{
+ OutputState: o.OutputState,
+ }
+}
+
+// Set of database objects
+func (o GetDatabasesResultOutput) Databases() GetDatabasesDatabaseArrayOutput {
+ return o.ApplyT(func(v GetDatabasesResult) []GetDatabasesDatabase { return v.Databases }).(GetDatabasesDatabaseArrayOutput)
+}
+
+// ID of the resource used only internally by the provider.
+func (o GetDatabasesResultOutput) Id() pulumi.StringOutput {
+ return o.ApplyT(func(v GetDatabasesResult) string { return v.Id }).(pulumi.StringOutput)
+}
+
+func init() {
+ pulumi.RegisterOutputType(GetDatabasesResultOutput{})
+}
diff --git a/sdk/go/mssql/getQuery.go b/sdk/go/mssql/getQuery.go
index 71db8d7..3a111d4 100644
--- a/sdk/go/mssql/getQuery.go
+++ b/sdk/go/mssql/getQuery.go
@@ -8,6 +8,8 @@ import (
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Retrieves arbitrary SQL query result.
@@ -52,7 +54,7 @@ import (
//
// ```
func GetQuery(ctx *pulumi.Context, args *GetQueryArgs, opts ...pulumi.InvokeOption) (*GetQueryResult, error) {
- opts = pkgInvokeDefaultOpts(opts)
+ opts = internal.PkgInvokeDefaultOpts(opts)
var rv GetQueryResult
err := ctx.Invoke("mssql:index/getQuery:getQuery", args, &rv, opts...)
if err != nil {
@@ -120,6 +122,12 @@ func (o GetQueryResultOutput) ToGetQueryResultOutputWithContext(ctx context.Cont
return o
}
+func (o GetQueryResultOutput) ToOutput(ctx context.Context) pulumix.Output[GetQueryResult] {
+ return pulumix.Output[GetQueryResult]{
+ OutputState: o.OutputState,
+ }
+}
+
// ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`.
func (o GetQueryResultOutput) DatabaseId() pulumi.StringOutput {
return o.ApplyT(func(v GetQueryResult) string { return v.DatabaseId }).(pulumi.StringOutput)
diff --git a/sdk/go/mssql/getSchema.go b/sdk/go/mssql/getSchema.go
index 2caa0e4..e2bb0bf 100644
--- a/sdk/go/mssql/getSchema.go
+++ b/sdk/go/mssql/getSchema.go
@@ -8,6 +8,8 @@ import (
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Retrieves information about DB schema.
@@ -45,7 +47,7 @@ import (
//
// ```
func LookupSchema(ctx *pulumi.Context, args *LookupSchemaArgs, opts ...pulumi.InvokeOption) (*LookupSchemaResult, error) {
- opts = pkgInvokeDefaultOpts(opts)
+ opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupSchemaResult
err := ctx.Invoke("mssql:index/getSchema:getSchema", args, &rv, opts...)
if err != nil {
@@ -118,6 +120,12 @@ func (o LookupSchemaResultOutput) ToLookupSchemaResultOutputWithContext(ctx cont
return o
}
+func (o LookupSchemaResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupSchemaResult] {
+ return pulumix.Output[LookupSchemaResult]{
+ OutputState: o.OutputState,
+ }
+}
+
// ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`.
func (o LookupSchemaResultOutput) DatabaseId() pulumi.StringOutput {
return o.ApplyT(func(v LookupSchemaResult) string { return v.DatabaseId }).(pulumi.StringOutput)
diff --git a/sdk/go/mssql/getSchemaPermissions.go b/sdk/go/mssql/getSchemaPermissions.go
index 1bc8449..15c7605 100644
--- a/sdk/go/mssql/getSchemaPermissions.go
+++ b/sdk/go/mssql/getSchemaPermissions.go
@@ -8,6 +8,8 @@ import (
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Returns all permissions granted in a schema to given principal
@@ -60,7 +62,7 @@ import (
//
// ```
func GetSchemaPermissions(ctx *pulumi.Context, args *GetSchemaPermissionsArgs, opts ...pulumi.InvokeOption) (*GetSchemaPermissionsResult, error) {
- opts = pkgInvokeDefaultOpts(opts)
+ opts = internal.PkgInvokeDefaultOpts(opts)
var rv GetSchemaPermissionsResult
err := ctx.Invoke("mssql:index/getSchemaPermissions:getSchemaPermissions", args, &rv, opts...)
if err != nil {
@@ -129,6 +131,12 @@ func (o GetSchemaPermissionsResultOutput) ToGetSchemaPermissionsResultOutputWith
return o
}
+func (o GetSchemaPermissionsResultOutput) ToOutput(ctx context.Context) pulumix.Output[GetSchemaPermissionsResult] {
+ return pulumix.Output[GetSchemaPermissionsResult]{
+ OutputState: o.OutputState,
+ }
+}
+
// `//`.
func (o GetSchemaPermissionsResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v GetSchemaPermissionsResult) string { return v.Id }).(pulumi.StringOutput)
diff --git a/sdk/go/mssql/getSchemas.go b/sdk/go/mssql/getSchemas.go
index b8b9bf0..e4508d1 100644
--- a/sdk/go/mssql/getSchemas.go
+++ b/sdk/go/mssql/getSchemas.go
@@ -8,6 +8,8 @@ import (
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Obtains information about all schemas found in SQL database.
@@ -49,7 +51,7 @@ import (
//
// ```
func GetSchemas(ctx *pulumi.Context, args *GetSchemasArgs, opts ...pulumi.InvokeOption) (*GetSchemasResult, error) {
- opts = pkgInvokeDefaultOpts(opts)
+ opts = internal.PkgInvokeDefaultOpts(opts)
var rv GetSchemasResult
err := ctx.Invoke("mssql:index/getSchemas:getSchemas", args, &rv, opts...)
if err != nil {
@@ -60,7 +62,7 @@ func GetSchemas(ctx *pulumi.Context, args *GetSchemasArgs, opts ...pulumi.Invoke
// A collection of arguments for invoking getSchemas.
type GetSchemasArgs struct {
- // ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
+ // ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`.
DatabaseId *string `pulumi:"databaseId"`
}
@@ -89,7 +91,7 @@ func GetSchemasOutput(ctx *pulumi.Context, args GetSchemasOutputArgs, opts ...pu
// A collection of arguments for invoking getSchemas.
type GetSchemasOutputArgs struct {
- // ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
+ // ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`.
DatabaseId pulumi.StringPtrInput `pulumi:"databaseId"`
}
@@ -112,6 +114,12 @@ func (o GetSchemasResultOutput) ToGetSchemasResultOutputWithContext(ctx context.
return o
}
+func (o GetSchemasResultOutput) ToOutput(ctx context.Context) pulumix.Output[GetSchemasResult] {
+ return pulumix.Output[GetSchemasResult]{
+ OutputState: o.OutputState,
+ }
+}
+
// ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
func (o GetSchemasResultOutput) DatabaseId() pulumi.StringOutput {
return o.ApplyT(func(v GetSchemasResult) string { return v.DatabaseId }).(pulumi.StringOutput)
diff --git a/sdk/go/mssql/getServerPermissions.go b/sdk/go/mssql/getServerPermissions.go
index bcc0595..8a9252f 100644
--- a/sdk/go/mssql/getServerPermissions.go
+++ b/sdk/go/mssql/getServerPermissions.go
@@ -8,6 +8,8 @@ import (
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Returns all permissions grated to given principal
@@ -45,7 +47,7 @@ import (
//
// ```
func GetServerPermissions(ctx *pulumi.Context, args *GetServerPermissionsArgs, opts ...pulumi.InvokeOption) (*GetServerPermissionsResult, error) {
- opts = pkgInvokeDefaultOpts(opts)
+ opts = internal.PkgInvokeDefaultOpts(opts)
var rv GetServerPermissionsResult
err := ctx.Invoke("mssql:index/getServerPermissions:getServerPermissions", args, &rv, opts...)
if err != nil {
@@ -108,6 +110,12 @@ func (o GetServerPermissionsResultOutput) ToGetServerPermissionsResultOutputWith
return o
}
+func (o GetServerPermissionsResultOutput) ToOutput(ctx context.Context) pulumix.Output[GetServerPermissionsResult] {
+ return pulumix.Output[GetServerPermissionsResult]{
+ OutputState: o.OutputState,
+ }
+}
+
// Equals to `principalId`.
func (o GetServerPermissionsResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v GetServerPermissionsResult) string { return v.Id }).(pulumi.StringOutput)
diff --git a/sdk/go/mssql/getServerRole.go b/sdk/go/mssql/getServerRole.go
index dca52b5..a76d644 100644
--- a/sdk/go/mssql/getServerRole.go
+++ b/sdk/go/mssql/getServerRole.go
@@ -8,6 +8,8 @@ import (
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Obtains information about single server role.
@@ -44,7 +46,7 @@ import (
//
// ```
func LookupServerRole(ctx *pulumi.Context, args *LookupServerRoleArgs, opts ...pulumi.InvokeOption) (*LookupServerRoleResult, error) {
- opts = pkgInvokeDefaultOpts(opts)
+ opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupServerRoleResult
err := ctx.Invoke("mssql:index/getServerRole:getServerRole", args, &rv, opts...)
if err != nil {
@@ -55,9 +57,9 @@ func LookupServerRole(ctx *pulumi.Context, args *LookupServerRoleArgs, opts ...p
// A collection of arguments for invoking getServerRole.
type LookupServerRoleArgs struct {
- // Role principal ID. Either `name` or `id` must be provided.
+ // ID of the member principal
Id *string `pulumi:"id"`
- // Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars. Either `name` or `id` must be provided.
+ // Name of the server principal
Name *string `pulumi:"name"`
}
@@ -88,9 +90,9 @@ func LookupServerRoleOutput(ctx *pulumi.Context, args LookupServerRoleOutputArgs
// A collection of arguments for invoking getServerRole.
type LookupServerRoleOutputArgs struct {
- // Role principal ID. Either `name` or `id` must be provided.
+ // ID of the member principal
Id pulumi.StringPtrInput `pulumi:"id"`
- // Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars. Either `name` or `id` must be provided.
+ // Name of the server principal
Name pulumi.StringPtrInput `pulumi:"name"`
}
@@ -113,6 +115,12 @@ func (o LookupServerRoleResultOutput) ToLookupServerRoleResultOutputWithContext(
return o
}
+func (o LookupServerRoleResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupServerRoleResult] {
+ return pulumix.Output[LookupServerRoleResult]{
+ OutputState: o.OutputState,
+ }
+}
+
// Role principal ID. Either `name` or `id` must be provided.
func (o LookupServerRoleResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupServerRoleResult) string { return v.Id }).(pulumi.StringOutput)
diff --git a/sdk/go/mssql/getServerRoles.go b/sdk/go/mssql/getServerRoles.go
index 07993b8..02d46a5 100644
--- a/sdk/go/mssql/getServerRoles.go
+++ b/sdk/go/mssql/getServerRoles.go
@@ -4,7 +4,12 @@
package mssql
import (
+ "context"
+ "reflect"
+
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Obtains information about all roles defined in the server.
@@ -34,7 +39,7 @@ import (
//
// ```
func GetServerRoles(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetServerRolesResult, error) {
- opts = pkgInvokeDefaultOpts(opts)
+ opts = internal.PkgInvokeDefaultOpts(opts)
var rv GetServerRolesResult
err := ctx.Invoke("mssql:index/getServerRoles:getServerRoles", nil, &rv, opts...)
if err != nil {
@@ -49,3 +54,48 @@ type GetServerRolesResult struct {
// Set of all roles found in the server
Roles []GetServerRolesRole `pulumi:"roles"`
}
+
+func GetServerRolesOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetServerRolesResultOutput {
+ return pulumi.ToOutput(0).ApplyT(func(int) (GetServerRolesResult, error) {
+ r, err := GetServerRoles(ctx, opts...)
+ var s GetServerRolesResult
+ if r != nil {
+ s = *r
+ }
+ return s, err
+ }).(GetServerRolesResultOutput)
+}
+
+// A collection of values returned by getServerRoles.
+type GetServerRolesResultOutput struct{ *pulumi.OutputState }
+
+func (GetServerRolesResultOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((*GetServerRolesResult)(nil)).Elem()
+}
+
+func (o GetServerRolesResultOutput) ToGetServerRolesResultOutput() GetServerRolesResultOutput {
+ return o
+}
+
+func (o GetServerRolesResultOutput) ToGetServerRolesResultOutputWithContext(ctx context.Context) GetServerRolesResultOutput {
+ return o
+}
+
+func (o GetServerRolesResultOutput) ToOutput(ctx context.Context) pulumix.Output[GetServerRolesResult] {
+ return pulumix.Output[GetServerRolesResult]{
+ OutputState: o.OutputState,
+ }
+}
+
+func (o GetServerRolesResultOutput) Id() pulumi.StringOutput {
+ return o.ApplyT(func(v GetServerRolesResult) string { return v.Id }).(pulumi.StringOutput)
+}
+
+// Set of all roles found in the server
+func (o GetServerRolesResultOutput) Roles() GetServerRolesRoleArrayOutput {
+ return o.ApplyT(func(v GetServerRolesResult) []GetServerRolesRole { return v.Roles }).(GetServerRolesRoleArrayOutput)
+}
+
+func init() {
+ pulumi.RegisterOutputType(GetServerRolesResultOutput{})
+}
diff --git a/sdk/go/mssql/getSqlLogin.go b/sdk/go/mssql/getSqlLogin.go
index 4a0616d..103eeb9 100644
--- a/sdk/go/mssql/getSqlLogin.go
+++ b/sdk/go/mssql/getSqlLogin.go
@@ -8,6 +8,8 @@ import (
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Obtains information about single SQL login.
@@ -40,7 +42,7 @@ import (
//
// ```
func LookupSqlLogin(ctx *pulumi.Context, args *LookupSqlLoginArgs, opts ...pulumi.InvokeOption) (*LookupSqlLoginResult, error) {
- opts = pkgInvokeDefaultOpts(opts)
+ opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupSqlLoginResult
err := ctx.Invoke("mssql:index/getSqlLogin:getSqlLogin", args, &rv, opts...)
if err != nil {
@@ -113,6 +115,12 @@ func (o LookupSqlLoginResultOutput) ToLookupSqlLoginResultOutputWithContext(ctx
return o
}
+func (o LookupSqlLoginResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupSqlLoginResult] {
+ return pulumix.Output[LookupSqlLoginResult]{
+ OutputState: o.OutputState,
+ }
+}
+
// When `true`, password expiration policy is enforced for this login.
func (o LookupSqlLoginResultOutput) CheckPasswordExpiration() pulumi.BoolOutput {
return o.ApplyT(func(v LookupSqlLoginResult) bool { return v.CheckPasswordExpiration }).(pulumi.BoolOutput)
diff --git a/sdk/go/mssql/getSqlLogins.go b/sdk/go/mssql/getSqlLogins.go
index 941e464..6712100 100644
--- a/sdk/go/mssql/getSqlLogins.go
+++ b/sdk/go/mssql/getSqlLogins.go
@@ -4,7 +4,12 @@
package mssql
import (
+ "context"
+ "reflect"
+
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Obtains information about all SQL logins found in SQL Server instance.
@@ -34,7 +39,7 @@ import (
//
// ```
func GetSqlLogins(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetSqlLoginsResult, error) {
- opts = pkgInvokeDefaultOpts(opts)
+ opts = internal.PkgInvokeDefaultOpts(opts)
var rv GetSqlLoginsResult
err := ctx.Invoke("mssql:index/getSqlLogins:getSqlLogins", nil, &rv, opts...)
if err != nil {
@@ -50,3 +55,49 @@ type GetSqlLoginsResult struct {
// Set of SQL login objects
Logins []GetSqlLoginsLogin `pulumi:"logins"`
}
+
+func GetSqlLoginsOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetSqlLoginsResultOutput {
+ return pulumi.ToOutput(0).ApplyT(func(int) (GetSqlLoginsResult, error) {
+ r, err := GetSqlLogins(ctx, opts...)
+ var s GetSqlLoginsResult
+ if r != nil {
+ s = *r
+ }
+ return s, err
+ }).(GetSqlLoginsResultOutput)
+}
+
+// A collection of values returned by getSqlLogins.
+type GetSqlLoginsResultOutput struct{ *pulumi.OutputState }
+
+func (GetSqlLoginsResultOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((*GetSqlLoginsResult)(nil)).Elem()
+}
+
+func (o GetSqlLoginsResultOutput) ToGetSqlLoginsResultOutput() GetSqlLoginsResultOutput {
+ return o
+}
+
+func (o GetSqlLoginsResultOutput) ToGetSqlLoginsResultOutputWithContext(ctx context.Context) GetSqlLoginsResultOutput {
+ return o
+}
+
+func (o GetSqlLoginsResultOutput) ToOutput(ctx context.Context) pulumix.Output[GetSqlLoginsResult] {
+ return pulumix.Output[GetSqlLoginsResult]{
+ OutputState: o.OutputState,
+ }
+}
+
+// ID of the resource used only internally by the provider.
+func (o GetSqlLoginsResultOutput) Id() pulumi.StringOutput {
+ return o.ApplyT(func(v GetSqlLoginsResult) string { return v.Id }).(pulumi.StringOutput)
+}
+
+// Set of SQL login objects
+func (o GetSqlLoginsResultOutput) Logins() GetSqlLoginsLoginArrayOutput {
+ return o.ApplyT(func(v GetSqlLoginsResult) []GetSqlLoginsLogin { return v.Logins }).(GetSqlLoginsLoginArrayOutput)
+}
+
+func init() {
+ pulumi.RegisterOutputType(GetSqlLoginsResultOutput{})
+}
diff --git a/sdk/go/mssql/getSqlUser.go b/sdk/go/mssql/getSqlUser.go
index a72f2f1..929a7b5 100644
--- a/sdk/go/mssql/getSqlUser.go
+++ b/sdk/go/mssql/getSqlUser.go
@@ -8,6 +8,8 @@ import (
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Obtains information about single SQL database user.
@@ -46,7 +48,7 @@ import (
//
// ```
func LookupSqlUser(ctx *pulumi.Context, args *LookupSqlUserArgs, opts ...pulumi.InvokeOption) (*LookupSqlUserResult, error) {
- opts = pkgInvokeDefaultOpts(opts)
+ opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupSqlUserResult
err := ctx.Invoke("mssql:index/getSqlUser:getSqlUser", args, &rv, opts...)
if err != nil {
@@ -115,6 +117,12 @@ func (o LookupSqlUserResultOutput) ToLookupSqlUserResultOutputWithContext(ctx co
return o
}
+func (o LookupSqlUserResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupSqlUserResult] {
+ return pulumix.Output[LookupSqlUserResult]{
+ OutputState: o.OutputState,
+ }
+}
+
// ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`.
func (o LookupSqlUserResultOutput) DatabaseId() pulumi.StringOutput {
return o.ApplyT(func(v LookupSqlUserResult) string { return v.DatabaseId }).(pulumi.StringOutput)
diff --git a/sdk/go/mssql/getSqlUsers.go b/sdk/go/mssql/getSqlUsers.go
index bc72b33..7481b13 100644
--- a/sdk/go/mssql/getSqlUsers.go
+++ b/sdk/go/mssql/getSqlUsers.go
@@ -8,6 +8,8 @@ import (
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Obtains information about all SQL users found in a database
@@ -45,7 +47,7 @@ import (
//
// ```
func GetSqlUsers(ctx *pulumi.Context, args *GetSqlUsersArgs, opts ...pulumi.InvokeOption) (*GetSqlUsersResult, error) {
- opts = pkgInvokeDefaultOpts(opts)
+ opts = internal.PkgInvokeDefaultOpts(opts)
var rv GetSqlUsersResult
err := ctx.Invoke("mssql:index/getSqlUsers:getSqlUsers", args, &rv, opts...)
if err != nil {
@@ -56,7 +58,7 @@ func GetSqlUsers(ctx *pulumi.Context, args *GetSqlUsersArgs, opts ...pulumi.Invo
// A collection of arguments for invoking getSqlUsers.
type GetSqlUsersArgs struct {
- // ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
+ // ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`.
DatabaseId *string `pulumi:"databaseId"`
}
@@ -85,7 +87,7 @@ func GetSqlUsersOutput(ctx *pulumi.Context, args GetSqlUsersOutputArgs, opts ...
// A collection of arguments for invoking getSqlUsers.
type GetSqlUsersOutputArgs struct {
- // ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
+ // ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`.
DatabaseId pulumi.StringPtrInput `pulumi:"databaseId"`
}
@@ -108,6 +110,12 @@ func (o GetSqlUsersResultOutput) ToGetSqlUsersResultOutputWithContext(ctx contex
return o
}
+func (o GetSqlUsersResultOutput) ToOutput(ctx context.Context) pulumix.Output[GetSqlUsersResult] {
+ return pulumix.Output[GetSqlUsersResult]{
+ OutputState: o.OutputState,
+ }
+}
+
// ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
func (o GetSqlUsersResultOutput) DatabaseId() pulumi.StringPtrOutput {
return o.ApplyT(func(v GetSqlUsersResult) *string { return v.DatabaseId }).(pulumi.StringPtrOutput)
diff --git a/sdk/go/mssql/init.go b/sdk/go/mssql/init.go
index 02891a2..24d6eec 100644
--- a/sdk/go/mssql/init.go
+++ b/sdk/go/mssql/init.go
@@ -8,6 +8,7 @@ import (
"github.com/blang/semver"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
type module struct {
@@ -75,7 +76,10 @@ func (p *pkg) ConstructProvider(ctx *pulumi.Context, name, typ, urn string) (pul
}
func init() {
- version, _ := PkgVersion()
+ version, err := internal.PkgVersion()
+ if err != nil {
+ version = semver.Version{Major: 1}
+ }
pulumi.RegisterResourceModule(
"mssql",
"index/azureadServicePrincipal",
diff --git a/sdk/go/mssql/config/pulumiUtilities.go b/sdk/go/mssql/internal/pulumiUtilities.go
similarity index 60%
rename from sdk/go/mssql/config/pulumiUtilities.go
rename to sdk/go/mssql/internal/pulumiUtilities.go
index 3f8c7a5..6f07d27 100644
--- a/sdk/go/mssql/config/pulumiUtilities.go
+++ b/sdk/go/mssql/internal/pulumiUtilities.go
@@ -1,7 +1,7 @@
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
-package config
+package internal
import (
"fmt"
@@ -17,7 +17,7 @@ import (
type envParser func(v string) interface{}
-func parseEnvBool(v string) interface{} {
+func ParseEnvBool(v string) interface{} {
b, err := strconv.ParseBool(v)
if err != nil {
return nil
@@ -25,7 +25,7 @@ func parseEnvBool(v string) interface{} {
return b
}
-func parseEnvInt(v string) interface{} {
+func ParseEnvInt(v string) interface{} {
i, err := strconv.ParseInt(v, 0, 0)
if err != nil {
return nil
@@ -33,7 +33,7 @@ func parseEnvInt(v string) interface{} {
return int(i)
}
-func parseEnvFloat(v string) interface{} {
+func ParseEnvFloat(v string) interface{} {
f, err := strconv.ParseFloat(v, 64)
if err != nil {
return nil
@@ -41,7 +41,7 @@ func parseEnvFloat(v string) interface{} {
return f
}
-func parseEnvStringArray(v string) interface{} {
+func ParseEnvStringArray(v string) interface{} {
var result pulumi.StringArray
for _, item := range strings.Split(v, ";") {
result = append(result, pulumi.String(item))
@@ -49,7 +49,7 @@ func parseEnvStringArray(v string) interface{} {
return result
}
-func getEnvOrDefault(def interface{}, parser envParser, vars ...string) interface{} {
+func GetEnvOrDefault(def interface{}, parser envParser, vars ...string) interface{} {
for _, v := range vars {
if value, ok := os.LookupEnv(v); ok {
if parser != nil {
@@ -65,6 +65,10 @@ func getEnvOrDefault(def interface{}, parser envParser, vars ...string) interfac
// If a version cannot be determined, v1 will be assumed. The second return
// value is always nil.
func PkgVersion() (semver.Version, error) {
+ // emptyVersion defaults to v0.0.0
+ if !SdkVersion.Equals(semver.Version{}) {
+ return SdkVersion, nil
+ }
type sentinal struct{}
pkgPath := reflect.TypeOf(sentinal{}).PkgPath()
re := regexp.MustCompile("^.*/pulumi-mssql/sdk(/v\\d+)?")
@@ -79,23 +83,31 @@ func PkgVersion() (semver.Version, error) {
}
// isZero is a null safe check for if a value is it's types zero value.
-func isZero(v interface{}) bool {
+func IsZero(v interface{}) bool {
if v == nil {
return true
}
return reflect.ValueOf(v).IsZero()
}
-// pkgResourceDefaultOpts provides package level defaults to pulumi.OptionResource.
-func pkgResourceDefaultOpts(opts []pulumi.ResourceOption) []pulumi.ResourceOption {
- defaults := []pulumi.ResourceOption{pulumi.PluginDownloadURL("github://api.github.com/pulumiverse/pulumi-mssql")}
-
+// PkgResourceDefaultOpts provides package level defaults to pulumi.OptionResource.
+func PkgResourceDefaultOpts(opts []pulumi.ResourceOption) []pulumi.ResourceOption {
+ defaults := []pulumi.ResourceOption{}
+ defaults = append(defaults, pulumi.PluginDownloadURL("github://api.github.com/pulumiverse/pulumi-mssql"))
+ version := SdkVersion
+ if !version.Equals(semver.Version{}) {
+ defaults = append(defaults, pulumi.Version(version.String()))
+ }
return append(defaults, opts...)
}
-// pkgInvokeDefaultOpts provides package level defaults to pulumi.OptionInvoke.
-func pkgInvokeDefaultOpts(opts []pulumi.InvokeOption) []pulumi.InvokeOption {
- defaults := []pulumi.InvokeOption{pulumi.PluginDownloadURL("github://api.github.com/pulumiverse/pulumi-mssql")}
-
+// PkgInvokeDefaultOpts provides package level defaults to pulumi.OptionInvoke.
+func PkgInvokeDefaultOpts(opts []pulumi.InvokeOption) []pulumi.InvokeOption {
+ defaults := []pulumi.InvokeOption{}
+ defaults = append(defaults, pulumi.PluginDownloadURL("github://api.github.com/pulumiverse/pulumi-mssql"))
+ version := SdkVersion
+ if !version.Equals(semver.Version{}) {
+ defaults = append(defaults, pulumi.Version(version.String()))
+ }
return append(defaults, opts...)
}
diff --git a/sdk/go/mssql/internal/pulumiVersion.go b/sdk/go/mssql/internal/pulumiVersion.go
new file mode 100644
index 0000000..d591687
--- /dev/null
+++ b/sdk/go/mssql/internal/pulumiVersion.go
@@ -0,0 +1,11 @@
+// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
+// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
+
+package internal
+
+import (
+ "github.com/blang/semver"
+)
+
+var SdkVersion semver.Version = semver.Version{}
+var pluginDownloadURL string = ""
diff --git a/sdk/go/mssql/provider.go b/sdk/go/mssql/provider.go
index e5994be..7def181 100644
--- a/sdk/go/mssql/provider.go
+++ b/sdk/go/mssql/provider.go
@@ -8,6 +8,8 @@ import (
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// The provider type for the mssql package. By default, resources use package-wide configuration
@@ -29,16 +31,16 @@ func NewProvider(ctx *pulumi.Context,
}
if args.Hostname == nil {
- if d := getEnvOrDefault(nil, nil, "MSSQL_HOSTNAME"); d != nil {
+ if d := internal.GetEnvOrDefault(nil, nil, "MSSQL_HOSTNAME"); d != nil {
args.Hostname = pulumi.StringPtr(d.(string))
}
}
if args.Port == nil {
- if d := getEnvOrDefault(1433, parseEnvInt, "MSSQL_PORT"); d != nil {
+ if d := internal.GetEnvOrDefault(1433, internal.ParseEnvInt, "MSSQL_PORT"); d != nil {
args.Port = pulumi.IntPtr(d.(int))
}
}
- opts = pkgResourceDefaultOpts(opts)
+ opts = internal.PkgResourceDefaultOpts(opts)
var resource Provider
err := ctx.RegisterResource("pulumi:providers:mssql", name, args, &resource, opts...)
if err != nil {
@@ -93,6 +95,12 @@ func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutp
return pulumi.ToOutputWithContext(ctx, i).(ProviderOutput)
}
+func (i *Provider) ToOutput(ctx context.Context) pulumix.Output[*Provider] {
+ return pulumix.Output[*Provider]{
+ OutputState: i.ToProviderOutputWithContext(ctx).OutputState,
+ }
+}
+
type ProviderOutput struct{ *pulumi.OutputState }
func (ProviderOutput) ElementType() reflect.Type {
@@ -107,6 +115,12 @@ func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) Provide
return o
}
+func (o ProviderOutput) ToOutput(ctx context.Context) pulumix.Output[*Provider] {
+ return pulumix.Output[*Provider]{
+ OutputState: o.OutputState,
+ }
+}
+
// FQDN or IP address of the SQL endpoint. Can be also set using `MSSQL_HOSTNAME` environment variable.
func (o ProviderOutput) Hostname() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Provider) pulumi.StringPtrOutput { return v.Hostname }).(pulumi.StringPtrOutput)
diff --git a/sdk/go/mssql/pulumiTypes.go b/sdk/go/mssql/pulumiTypes.go
index 7d894c8..f974d03 100644
--- a/sdk/go/mssql/pulumiTypes.go
+++ b/sdk/go/mssql/pulumiTypes.go
@@ -8,8 +8,12 @@ import (
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
+var _ = internal.GetEnvOrDefault
+
type ProviderAzureAuth struct {
ClientId *string `pulumi:"clientId"`
ClientSecret *string `pulumi:"clientSecret"`
@@ -45,6 +49,12 @@ func (i ProviderAzureAuthArgs) ToProviderAzureAuthOutputWithContext(ctx context.
return pulumi.ToOutputWithContext(ctx, i).(ProviderAzureAuthOutput)
}
+func (i ProviderAzureAuthArgs) ToOutput(ctx context.Context) pulumix.Output[ProviderAzureAuth] {
+ return pulumix.Output[ProviderAzureAuth]{
+ OutputState: i.ToProviderAzureAuthOutputWithContext(ctx).OutputState,
+ }
+}
+
func (i ProviderAzureAuthArgs) ToProviderAzureAuthPtrOutput() ProviderAzureAuthPtrOutput {
return i.ToProviderAzureAuthPtrOutputWithContext(context.Background())
}
@@ -86,6 +96,12 @@ func (i *providerAzureAuthPtrType) ToProviderAzureAuthPtrOutputWithContext(ctx c
return pulumi.ToOutputWithContext(ctx, i).(ProviderAzureAuthPtrOutput)
}
+func (i *providerAzureAuthPtrType) ToOutput(ctx context.Context) pulumix.Output[*ProviderAzureAuth] {
+ return pulumix.Output[*ProviderAzureAuth]{
+ OutputState: i.ToProviderAzureAuthPtrOutputWithContext(ctx).OutputState,
+ }
+}
+
type ProviderAzureAuthOutput struct{ *pulumi.OutputState }
func (ProviderAzureAuthOutput) ElementType() reflect.Type {
@@ -110,6 +126,12 @@ func (o ProviderAzureAuthOutput) ToProviderAzureAuthPtrOutputWithContext(ctx con
}).(ProviderAzureAuthPtrOutput)
}
+func (o ProviderAzureAuthOutput) ToOutput(ctx context.Context) pulumix.Output[ProviderAzureAuth] {
+ return pulumix.Output[ProviderAzureAuth]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o ProviderAzureAuthOutput) ClientId() pulumi.StringPtrOutput {
return o.ApplyT(func(v ProviderAzureAuth) *string { return v.ClientId }).(pulumi.StringPtrOutput)
}
@@ -136,6 +158,12 @@ func (o ProviderAzureAuthPtrOutput) ToProviderAzureAuthPtrOutputWithContext(ctx
return o
}
+func (o ProviderAzureAuthPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*ProviderAzureAuth] {
+ return pulumix.Output[*ProviderAzureAuth]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o ProviderAzureAuthPtrOutput) Elem() ProviderAzureAuthOutput {
return o.ApplyT(func(v *ProviderAzureAuth) ProviderAzureAuth {
if v != nil {
@@ -206,6 +234,12 @@ func (i ProviderSqlAuthArgs) ToProviderSqlAuthOutputWithContext(ctx context.Cont
return pulumi.ToOutputWithContext(ctx, i).(ProviderSqlAuthOutput)
}
+func (i ProviderSqlAuthArgs) ToOutput(ctx context.Context) pulumix.Output[ProviderSqlAuth] {
+ return pulumix.Output[ProviderSqlAuth]{
+ OutputState: i.ToProviderSqlAuthOutputWithContext(ctx).OutputState,
+ }
+}
+
func (i ProviderSqlAuthArgs) ToProviderSqlAuthPtrOutput() ProviderSqlAuthPtrOutput {
return i.ToProviderSqlAuthPtrOutputWithContext(context.Background())
}
@@ -247,6 +281,12 @@ func (i *providerSqlAuthPtrType) ToProviderSqlAuthPtrOutputWithContext(ctx conte
return pulumi.ToOutputWithContext(ctx, i).(ProviderSqlAuthPtrOutput)
}
+func (i *providerSqlAuthPtrType) ToOutput(ctx context.Context) pulumix.Output[*ProviderSqlAuth] {
+ return pulumix.Output[*ProviderSqlAuth]{
+ OutputState: i.ToProviderSqlAuthPtrOutputWithContext(ctx).OutputState,
+ }
+}
+
type ProviderSqlAuthOutput struct{ *pulumi.OutputState }
func (ProviderSqlAuthOutput) ElementType() reflect.Type {
@@ -271,6 +311,12 @@ func (o ProviderSqlAuthOutput) ToProviderSqlAuthPtrOutputWithContext(ctx context
}).(ProviderSqlAuthPtrOutput)
}
+func (o ProviderSqlAuthOutput) ToOutput(ctx context.Context) pulumix.Output[ProviderSqlAuth] {
+ return pulumix.Output[ProviderSqlAuth]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o ProviderSqlAuthOutput) Password() pulumi.StringOutput {
return o.ApplyT(func(v ProviderSqlAuth) string { return v.Password }).(pulumi.StringOutput)
}
@@ -293,6 +339,12 @@ func (o ProviderSqlAuthPtrOutput) ToProviderSqlAuthPtrOutputWithContext(ctx cont
return o
}
+func (o ProviderSqlAuthPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*ProviderSqlAuth] {
+ return pulumix.Output[*ProviderSqlAuth]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o ProviderSqlAuthPtrOutput) Elem() ProviderSqlAuthOutput {
return o.ApplyT(func(v *ProviderSqlAuth) ProviderSqlAuth {
if v != nil {
@@ -358,6 +410,12 @@ func (i GetDatabasePermissionsPermissionArgs) ToGetDatabasePermissionsPermission
return pulumi.ToOutputWithContext(ctx, i).(GetDatabasePermissionsPermissionOutput)
}
+func (i GetDatabasePermissionsPermissionArgs) ToOutput(ctx context.Context) pulumix.Output[GetDatabasePermissionsPermission] {
+ return pulumix.Output[GetDatabasePermissionsPermission]{
+ OutputState: i.ToGetDatabasePermissionsPermissionOutputWithContext(ctx).OutputState,
+ }
+}
+
// GetDatabasePermissionsPermissionArrayInput is an input type that accepts GetDatabasePermissionsPermissionArray and GetDatabasePermissionsPermissionArrayOutput values.
// You can construct a concrete instance of `GetDatabasePermissionsPermissionArrayInput` via:
//
@@ -383,6 +441,12 @@ func (i GetDatabasePermissionsPermissionArray) ToGetDatabasePermissionsPermissio
return pulumi.ToOutputWithContext(ctx, i).(GetDatabasePermissionsPermissionArrayOutput)
}
+func (i GetDatabasePermissionsPermissionArray) ToOutput(ctx context.Context) pulumix.Output[[]GetDatabasePermissionsPermission] {
+ return pulumix.Output[[]GetDatabasePermissionsPermission]{
+ OutputState: i.ToGetDatabasePermissionsPermissionArrayOutputWithContext(ctx).OutputState,
+ }
+}
+
type GetDatabasePermissionsPermissionOutput struct{ *pulumi.OutputState }
func (GetDatabasePermissionsPermissionOutput) ElementType() reflect.Type {
@@ -397,6 +461,12 @@ func (o GetDatabasePermissionsPermissionOutput) ToGetDatabasePermissionsPermissi
return o
}
+func (o GetDatabasePermissionsPermissionOutput) ToOutput(ctx context.Context) pulumix.Output[GetDatabasePermissionsPermission] {
+ return pulumix.Output[GetDatabasePermissionsPermission]{
+ OutputState: o.OutputState,
+ }
+}
+
// Name of database-level SQL permission. For full list of supported permissions, see [docs](https://learn.microsoft.com/en-us/sql/t-sql/statements/grant-database-permissions-transact-sql?view=azuresqldb-current#remarks)
func (o GetDatabasePermissionsPermissionOutput) Permission() pulumi.StringOutput {
return o.ApplyT(func(v GetDatabasePermissionsPermission) string { return v.Permission }).(pulumi.StringOutput)
@@ -421,6 +491,12 @@ func (o GetDatabasePermissionsPermissionArrayOutput) ToGetDatabasePermissionsPer
return o
}
+func (o GetDatabasePermissionsPermissionArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]GetDatabasePermissionsPermission] {
+ return pulumix.Output[[]GetDatabasePermissionsPermission]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o GetDatabasePermissionsPermissionArrayOutput) Index(i pulumi.IntInput) GetDatabasePermissionsPermissionOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetDatabasePermissionsPermission {
return vs[0].([]GetDatabasePermissionsPermission)[vs[1].(int)]
@@ -468,6 +544,12 @@ func (i GetDatabaseRoleMemberTypeArgs) ToGetDatabaseRoleMemberTypeOutputWithCont
return pulumi.ToOutputWithContext(ctx, i).(GetDatabaseRoleMemberTypeOutput)
}
+func (i GetDatabaseRoleMemberTypeArgs) ToOutput(ctx context.Context) pulumix.Output[GetDatabaseRoleMemberType] {
+ return pulumix.Output[GetDatabaseRoleMemberType]{
+ OutputState: i.ToGetDatabaseRoleMemberTypeOutputWithContext(ctx).OutputState,
+ }
+}
+
// GetDatabaseRoleMemberTypeArrayInput is an input type that accepts GetDatabaseRoleMemberTypeArray and GetDatabaseRoleMemberTypeArrayOutput values.
// You can construct a concrete instance of `GetDatabaseRoleMemberTypeArrayInput` via:
//
@@ -493,6 +575,12 @@ func (i GetDatabaseRoleMemberTypeArray) ToGetDatabaseRoleMemberTypeArrayOutputWi
return pulumi.ToOutputWithContext(ctx, i).(GetDatabaseRoleMemberTypeArrayOutput)
}
+func (i GetDatabaseRoleMemberTypeArray) ToOutput(ctx context.Context) pulumix.Output[[]GetDatabaseRoleMemberType] {
+ return pulumix.Output[[]GetDatabaseRoleMemberType]{
+ OutputState: i.ToGetDatabaseRoleMemberTypeArrayOutputWithContext(ctx).OutputState,
+ }
+}
+
type GetDatabaseRoleMemberTypeOutput struct{ *pulumi.OutputState }
func (GetDatabaseRoleMemberTypeOutput) ElementType() reflect.Type {
@@ -507,6 +595,12 @@ func (o GetDatabaseRoleMemberTypeOutput) ToGetDatabaseRoleMemberTypeOutputWithCo
return o
}
+func (o GetDatabaseRoleMemberTypeOutput) ToOutput(ctx context.Context) pulumix.Output[GetDatabaseRoleMemberType] {
+ return pulumix.Output[GetDatabaseRoleMemberType]{
+ OutputState: o.OutputState,
+ }
+}
+
// `/`. Member ID can be retrieved using `SELECT DATABASE*PRINCIPAL*ID('\n\n')
func (o GetDatabaseRoleMemberTypeOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v GetDatabaseRoleMemberType) string { return v.Id }).(pulumi.StringOutput)
@@ -536,6 +630,12 @@ func (o GetDatabaseRoleMemberTypeArrayOutput) ToGetDatabaseRoleMemberTypeArrayOu
return o
}
+func (o GetDatabaseRoleMemberTypeArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]GetDatabaseRoleMemberType] {
+ return pulumix.Output[[]GetDatabaseRoleMemberType]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o GetDatabaseRoleMemberTypeArrayOutput) Index(i pulumi.IntInput) GetDatabaseRoleMemberTypeOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetDatabaseRoleMemberType {
return vs[0].([]GetDatabaseRoleMemberType)[vs[1].(int)]
@@ -587,6 +687,12 @@ func (i GetDatabaseRolesRoleArgs) ToGetDatabaseRolesRoleOutputWithContext(ctx co
return pulumi.ToOutputWithContext(ctx, i).(GetDatabaseRolesRoleOutput)
}
+func (i GetDatabaseRolesRoleArgs) ToOutput(ctx context.Context) pulumix.Output[GetDatabaseRolesRole] {
+ return pulumix.Output[GetDatabaseRolesRole]{
+ OutputState: i.ToGetDatabaseRolesRoleOutputWithContext(ctx).OutputState,
+ }
+}
+
// GetDatabaseRolesRoleArrayInput is an input type that accepts GetDatabaseRolesRoleArray and GetDatabaseRolesRoleArrayOutput values.
// You can construct a concrete instance of `GetDatabaseRolesRoleArrayInput` via:
//
@@ -612,6 +718,12 @@ func (i GetDatabaseRolesRoleArray) ToGetDatabaseRolesRoleArrayOutputWithContext(
return pulumi.ToOutputWithContext(ctx, i).(GetDatabaseRolesRoleArrayOutput)
}
+func (i GetDatabaseRolesRoleArray) ToOutput(ctx context.Context) pulumix.Output[[]GetDatabaseRolesRole] {
+ return pulumix.Output[[]GetDatabaseRolesRole]{
+ OutputState: i.ToGetDatabaseRolesRoleArrayOutputWithContext(ctx).OutputState,
+ }
+}
+
type GetDatabaseRolesRoleOutput struct{ *pulumi.OutputState }
func (GetDatabaseRolesRoleOutput) ElementType() reflect.Type {
@@ -626,6 +738,12 @@ func (o GetDatabaseRolesRoleOutput) ToGetDatabaseRolesRoleOutputWithContext(ctx
return o
}
+func (o GetDatabaseRolesRoleOutput) ToOutput(ctx context.Context) pulumix.Output[GetDatabaseRolesRole] {
+ return pulumix.Output[GetDatabaseRolesRole]{
+ OutputState: o.OutputState,
+ }
+}
+
// ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`.
func (o GetDatabaseRolesRoleOutput) DatabaseId() pulumi.StringOutput {
return o.ApplyT(func(v GetDatabaseRolesRole) string { return v.DatabaseId }).(pulumi.StringOutput)
@@ -660,6 +778,12 @@ func (o GetDatabaseRolesRoleArrayOutput) ToGetDatabaseRolesRoleArrayOutputWithCo
return o
}
+func (o GetDatabaseRolesRoleArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]GetDatabaseRolesRole] {
+ return pulumix.Output[[]GetDatabaseRolesRole]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o GetDatabaseRolesRoleArrayOutput) Index(i pulumi.IntInput) GetDatabaseRolesRoleOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetDatabaseRolesRole {
return vs[0].([]GetDatabaseRolesRole)[vs[1].(int)]
@@ -707,6 +831,12 @@ func (i GetDatabasesDatabaseArgs) ToGetDatabasesDatabaseOutputWithContext(ctx co
return pulumi.ToOutputWithContext(ctx, i).(GetDatabasesDatabaseOutput)
}
+func (i GetDatabasesDatabaseArgs) ToOutput(ctx context.Context) pulumix.Output[GetDatabasesDatabase] {
+ return pulumix.Output[GetDatabasesDatabase]{
+ OutputState: i.ToGetDatabasesDatabaseOutputWithContext(ctx).OutputState,
+ }
+}
+
// GetDatabasesDatabaseArrayInput is an input type that accepts GetDatabasesDatabaseArray and GetDatabasesDatabaseArrayOutput values.
// You can construct a concrete instance of `GetDatabasesDatabaseArrayInput` via:
//
@@ -732,6 +862,12 @@ func (i GetDatabasesDatabaseArray) ToGetDatabasesDatabaseArrayOutputWithContext(
return pulumi.ToOutputWithContext(ctx, i).(GetDatabasesDatabaseArrayOutput)
}
+func (i GetDatabasesDatabaseArray) ToOutput(ctx context.Context) pulumix.Output[[]GetDatabasesDatabase] {
+ return pulumix.Output[[]GetDatabasesDatabase]{
+ OutputState: i.ToGetDatabasesDatabaseArrayOutputWithContext(ctx).OutputState,
+ }
+}
+
type GetDatabasesDatabaseOutput struct{ *pulumi.OutputState }
func (GetDatabasesDatabaseOutput) ElementType() reflect.Type {
@@ -746,6 +882,12 @@ func (o GetDatabasesDatabaseOutput) ToGetDatabasesDatabaseOutputWithContext(ctx
return o
}
+func (o GetDatabasesDatabaseOutput) ToOutput(ctx context.Context) pulumix.Output[GetDatabasesDatabase] {
+ return pulumix.Output[GetDatabasesDatabase]{
+ OutputState: o.OutputState,
+ }
+}
+
// Default collation name. Can be either a Windows collation name or a SQL collation name.
func (o GetDatabasesDatabaseOutput) Collation() pulumi.StringOutput {
return o.ApplyT(func(v GetDatabasesDatabase) string { return v.Collation }).(pulumi.StringOutput)
@@ -775,6 +917,12 @@ func (o GetDatabasesDatabaseArrayOutput) ToGetDatabasesDatabaseArrayOutputWithCo
return o
}
+func (o GetDatabasesDatabaseArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]GetDatabasesDatabase] {
+ return pulumix.Output[[]GetDatabasesDatabase]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o GetDatabasesDatabaseArrayOutput) Index(i pulumi.IntInput) GetDatabasesDatabaseOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetDatabasesDatabase {
return vs[0].([]GetDatabasesDatabase)[vs[1].(int)]
@@ -818,6 +966,12 @@ func (i GetSchemaPermissionsPermissionArgs) ToGetSchemaPermissionsPermissionOutp
return pulumi.ToOutputWithContext(ctx, i).(GetSchemaPermissionsPermissionOutput)
}
+func (i GetSchemaPermissionsPermissionArgs) ToOutput(ctx context.Context) pulumix.Output[GetSchemaPermissionsPermission] {
+ return pulumix.Output[GetSchemaPermissionsPermission]{
+ OutputState: i.ToGetSchemaPermissionsPermissionOutputWithContext(ctx).OutputState,
+ }
+}
+
// GetSchemaPermissionsPermissionArrayInput is an input type that accepts GetSchemaPermissionsPermissionArray and GetSchemaPermissionsPermissionArrayOutput values.
// You can construct a concrete instance of `GetSchemaPermissionsPermissionArrayInput` via:
//
@@ -843,6 +997,12 @@ func (i GetSchemaPermissionsPermissionArray) ToGetSchemaPermissionsPermissionArr
return pulumi.ToOutputWithContext(ctx, i).(GetSchemaPermissionsPermissionArrayOutput)
}
+func (i GetSchemaPermissionsPermissionArray) ToOutput(ctx context.Context) pulumix.Output[[]GetSchemaPermissionsPermission] {
+ return pulumix.Output[[]GetSchemaPermissionsPermission]{
+ OutputState: i.ToGetSchemaPermissionsPermissionArrayOutputWithContext(ctx).OutputState,
+ }
+}
+
type GetSchemaPermissionsPermissionOutput struct{ *pulumi.OutputState }
func (GetSchemaPermissionsPermissionOutput) ElementType() reflect.Type {
@@ -857,6 +1017,12 @@ func (o GetSchemaPermissionsPermissionOutput) ToGetSchemaPermissionsPermissionOu
return o
}
+func (o GetSchemaPermissionsPermissionOutput) ToOutput(ctx context.Context) pulumix.Output[GetSchemaPermissionsPermission] {
+ return pulumix.Output[GetSchemaPermissionsPermission]{
+ OutputState: o.OutputState,
+ }
+}
+
// Name of schema SQL permission. For full list of supported permissions, see [docs](https://learn.microsoft.com/en-us/sql/t-sql/statements/grant-schema-permissions-transact-sql?view=azuresqldb-current#remarks)
func (o GetSchemaPermissionsPermissionOutput) Permission() pulumi.StringOutput {
return o.ApplyT(func(v GetSchemaPermissionsPermission) string { return v.Permission }).(pulumi.StringOutput)
@@ -881,6 +1047,12 @@ func (o GetSchemaPermissionsPermissionArrayOutput) ToGetSchemaPermissionsPermiss
return o
}
+func (o GetSchemaPermissionsPermissionArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]GetSchemaPermissionsPermission] {
+ return pulumix.Output[[]GetSchemaPermissionsPermission]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o GetSchemaPermissionsPermissionArrayOutput) Index(i pulumi.IntInput) GetSchemaPermissionsPermissionOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetSchemaPermissionsPermission {
return vs[0].([]GetSchemaPermissionsPermission)[vs[1].(int)]
@@ -932,6 +1104,12 @@ func (i GetSchemasSchemaArgs) ToGetSchemasSchemaOutputWithContext(ctx context.Co
return pulumi.ToOutputWithContext(ctx, i).(GetSchemasSchemaOutput)
}
+func (i GetSchemasSchemaArgs) ToOutput(ctx context.Context) pulumix.Output[GetSchemasSchema] {
+ return pulumix.Output[GetSchemasSchema]{
+ OutputState: i.ToGetSchemasSchemaOutputWithContext(ctx).OutputState,
+ }
+}
+
// GetSchemasSchemaArrayInput is an input type that accepts GetSchemasSchemaArray and GetSchemasSchemaArrayOutput values.
// You can construct a concrete instance of `GetSchemasSchemaArrayInput` via:
//
@@ -957,6 +1135,12 @@ func (i GetSchemasSchemaArray) ToGetSchemasSchemaArrayOutputWithContext(ctx cont
return pulumi.ToOutputWithContext(ctx, i).(GetSchemasSchemaArrayOutput)
}
+func (i GetSchemasSchemaArray) ToOutput(ctx context.Context) pulumix.Output[[]GetSchemasSchema] {
+ return pulumix.Output[[]GetSchemasSchema]{
+ OutputState: i.ToGetSchemasSchemaArrayOutputWithContext(ctx).OutputState,
+ }
+}
+
type GetSchemasSchemaOutput struct{ *pulumi.OutputState }
func (GetSchemasSchemaOutput) ElementType() reflect.Type {
@@ -971,6 +1155,12 @@ func (o GetSchemasSchemaOutput) ToGetSchemasSchemaOutputWithContext(ctx context.
return o
}
+func (o GetSchemasSchemaOutput) ToOutput(ctx context.Context) pulumix.Output[GetSchemasSchema] {
+ return pulumix.Output[GetSchemasSchema]{
+ OutputState: o.OutputState,
+ }
+}
+
// ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`.
func (o GetSchemasSchemaOutput) DatabaseId() pulumi.StringOutput {
return o.ApplyT(func(v GetSchemasSchema) string { return v.DatabaseId }).(pulumi.StringOutput)
@@ -1005,6 +1195,12 @@ func (o GetSchemasSchemaArrayOutput) ToGetSchemasSchemaArrayOutputWithContext(ct
return o
}
+func (o GetSchemasSchemaArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]GetSchemasSchema] {
+ return pulumix.Output[[]GetSchemasSchema]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o GetSchemasSchemaArrayOutput) Index(i pulumi.IntInput) GetSchemasSchemaOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetSchemasSchema {
return vs[0].([]GetSchemasSchema)[vs[1].(int)]
@@ -1048,6 +1244,12 @@ func (i GetServerPermissionsPermissionArgs) ToGetServerPermissionsPermissionOutp
return pulumi.ToOutputWithContext(ctx, i).(GetServerPermissionsPermissionOutput)
}
+func (i GetServerPermissionsPermissionArgs) ToOutput(ctx context.Context) pulumix.Output[GetServerPermissionsPermission] {
+ return pulumix.Output[GetServerPermissionsPermission]{
+ OutputState: i.ToGetServerPermissionsPermissionOutputWithContext(ctx).OutputState,
+ }
+}
+
// GetServerPermissionsPermissionArrayInput is an input type that accepts GetServerPermissionsPermissionArray and GetServerPermissionsPermissionArrayOutput values.
// You can construct a concrete instance of `GetServerPermissionsPermissionArrayInput` via:
//
@@ -1073,6 +1275,12 @@ func (i GetServerPermissionsPermissionArray) ToGetServerPermissionsPermissionArr
return pulumi.ToOutputWithContext(ctx, i).(GetServerPermissionsPermissionArrayOutput)
}
+func (i GetServerPermissionsPermissionArray) ToOutput(ctx context.Context) pulumix.Output[[]GetServerPermissionsPermission] {
+ return pulumix.Output[[]GetServerPermissionsPermission]{
+ OutputState: i.ToGetServerPermissionsPermissionArrayOutputWithContext(ctx).OutputState,
+ }
+}
+
type GetServerPermissionsPermissionOutput struct{ *pulumi.OutputState }
func (GetServerPermissionsPermissionOutput) ElementType() reflect.Type {
@@ -1087,6 +1295,12 @@ func (o GetServerPermissionsPermissionOutput) ToGetServerPermissionsPermissionOu
return o
}
+func (o GetServerPermissionsPermissionOutput) ToOutput(ctx context.Context) pulumix.Output[GetServerPermissionsPermission] {
+ return pulumix.Output[GetServerPermissionsPermission]{
+ OutputState: o.OutputState,
+ }
+}
+
// Name of server-level SQL permission. For full list of supported permissions see [docs](https://learn.microsoft.com/en-us/sql/t-sql/statements/grant-server-permissions-transact-sql?view=azuresqldb-current#remarks)
func (o GetServerPermissionsPermissionOutput) Permission() pulumi.StringOutput {
return o.ApplyT(func(v GetServerPermissionsPermission) string { return v.Permission }).(pulumi.StringOutput)
@@ -1111,6 +1325,12 @@ func (o GetServerPermissionsPermissionArrayOutput) ToGetServerPermissionsPermiss
return o
}
+func (o GetServerPermissionsPermissionArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]GetServerPermissionsPermission] {
+ return pulumix.Output[[]GetServerPermissionsPermission]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o GetServerPermissionsPermissionArrayOutput) Index(i pulumi.IntInput) GetServerPermissionsPermissionOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetServerPermissionsPermission {
return vs[0].([]GetServerPermissionsPermission)[vs[1].(int)]
@@ -1158,6 +1378,12 @@ func (i GetServerRoleMemberTypeArgs) ToGetServerRoleMemberTypeOutputWithContext(
return pulumi.ToOutputWithContext(ctx, i).(GetServerRoleMemberTypeOutput)
}
+func (i GetServerRoleMemberTypeArgs) ToOutput(ctx context.Context) pulumix.Output[GetServerRoleMemberType] {
+ return pulumix.Output[GetServerRoleMemberType]{
+ OutputState: i.ToGetServerRoleMemberTypeOutputWithContext(ctx).OutputState,
+ }
+}
+
// GetServerRoleMemberTypeArrayInput is an input type that accepts GetServerRoleMemberTypeArray and GetServerRoleMemberTypeArrayOutput values.
// You can construct a concrete instance of `GetServerRoleMemberTypeArrayInput` via:
//
@@ -1183,6 +1409,12 @@ func (i GetServerRoleMemberTypeArray) ToGetServerRoleMemberTypeArrayOutputWithCo
return pulumi.ToOutputWithContext(ctx, i).(GetServerRoleMemberTypeArrayOutput)
}
+func (i GetServerRoleMemberTypeArray) ToOutput(ctx context.Context) pulumix.Output[[]GetServerRoleMemberType] {
+ return pulumix.Output[[]GetServerRoleMemberType]{
+ OutputState: i.ToGetServerRoleMemberTypeArrayOutputWithContext(ctx).OutputState,
+ }
+}
+
type GetServerRoleMemberTypeOutput struct{ *pulumi.OutputState }
func (GetServerRoleMemberTypeOutput) ElementType() reflect.Type {
@@ -1197,6 +1429,12 @@ func (o GetServerRoleMemberTypeOutput) ToGetServerRoleMemberTypeOutputWithContex
return o
}
+func (o GetServerRoleMemberTypeOutput) ToOutput(ctx context.Context) pulumix.Output[GetServerRoleMemberType] {
+ return pulumix.Output[GetServerRoleMemberType]{
+ OutputState: o.OutputState,
+ }
+}
+
// ID of the member principal
func (o GetServerRoleMemberTypeOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v GetServerRoleMemberType) string { return v.Id }).(pulumi.StringOutput)
@@ -1226,6 +1464,12 @@ func (o GetServerRoleMemberTypeArrayOutput) ToGetServerRoleMemberTypeArrayOutput
return o
}
+func (o GetServerRoleMemberTypeArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]GetServerRoleMemberType] {
+ return pulumix.Output[[]GetServerRoleMemberType]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o GetServerRoleMemberTypeArrayOutput) Index(i pulumi.IntInput) GetServerRoleMemberTypeOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetServerRoleMemberType {
return vs[0].([]GetServerRoleMemberType)[vs[1].(int)]
@@ -1273,6 +1517,12 @@ func (i GetServerRolesRoleArgs) ToGetServerRolesRoleOutputWithContext(ctx contex
return pulumi.ToOutputWithContext(ctx, i).(GetServerRolesRoleOutput)
}
+func (i GetServerRolesRoleArgs) ToOutput(ctx context.Context) pulumix.Output[GetServerRolesRole] {
+ return pulumix.Output[GetServerRolesRole]{
+ OutputState: i.ToGetServerRolesRoleOutputWithContext(ctx).OutputState,
+ }
+}
+
// GetServerRolesRoleArrayInput is an input type that accepts GetServerRolesRoleArray and GetServerRolesRoleArrayOutput values.
// You can construct a concrete instance of `GetServerRolesRoleArrayInput` via:
//
@@ -1298,6 +1548,12 @@ func (i GetServerRolesRoleArray) ToGetServerRolesRoleArrayOutputWithContext(ctx
return pulumi.ToOutputWithContext(ctx, i).(GetServerRolesRoleArrayOutput)
}
+func (i GetServerRolesRoleArray) ToOutput(ctx context.Context) pulumix.Output[[]GetServerRolesRole] {
+ return pulumix.Output[[]GetServerRolesRole]{
+ OutputState: i.ToGetServerRolesRoleArrayOutputWithContext(ctx).OutputState,
+ }
+}
+
type GetServerRolesRoleOutput struct{ *pulumi.OutputState }
func (GetServerRolesRoleOutput) ElementType() reflect.Type {
@@ -1312,6 +1568,12 @@ func (o GetServerRolesRoleOutput) ToGetServerRolesRoleOutputWithContext(ctx cont
return o
}
+func (o GetServerRolesRoleOutput) ToOutput(ctx context.Context) pulumix.Output[GetServerRolesRole] {
+ return pulumix.Output[GetServerRolesRole]{
+ OutputState: o.OutputState,
+ }
+}
+
// Role principal ID.
func (o GetServerRolesRoleOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v GetServerRolesRole) string { return v.Id }).(pulumi.StringOutput)
@@ -1341,6 +1603,12 @@ func (o GetServerRolesRoleArrayOutput) ToGetServerRolesRoleArrayOutputWithContex
return o
}
+func (o GetServerRolesRoleArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]GetServerRolesRole] {
+ return pulumix.Output[[]GetServerRolesRole]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o GetServerRolesRoleArrayOutput) Index(i pulumi.IntInput) GetServerRolesRoleOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetServerRolesRole {
return vs[0].([]GetServerRolesRole)[vs[1].(int)]
@@ -1408,6 +1676,12 @@ func (i GetSqlLoginsLoginArgs) ToGetSqlLoginsLoginOutputWithContext(ctx context.
return pulumi.ToOutputWithContext(ctx, i).(GetSqlLoginsLoginOutput)
}
+func (i GetSqlLoginsLoginArgs) ToOutput(ctx context.Context) pulumix.Output[GetSqlLoginsLogin] {
+ return pulumix.Output[GetSqlLoginsLogin]{
+ OutputState: i.ToGetSqlLoginsLoginOutputWithContext(ctx).OutputState,
+ }
+}
+
// GetSqlLoginsLoginArrayInput is an input type that accepts GetSqlLoginsLoginArray and GetSqlLoginsLoginArrayOutput values.
// You can construct a concrete instance of `GetSqlLoginsLoginArrayInput` via:
//
@@ -1433,6 +1707,12 @@ func (i GetSqlLoginsLoginArray) ToGetSqlLoginsLoginArrayOutputWithContext(ctx co
return pulumi.ToOutputWithContext(ctx, i).(GetSqlLoginsLoginArrayOutput)
}
+func (i GetSqlLoginsLoginArray) ToOutput(ctx context.Context) pulumix.Output[[]GetSqlLoginsLogin] {
+ return pulumix.Output[[]GetSqlLoginsLogin]{
+ OutputState: i.ToGetSqlLoginsLoginArrayOutputWithContext(ctx).OutputState,
+ }
+}
+
type GetSqlLoginsLoginOutput struct{ *pulumi.OutputState }
func (GetSqlLoginsLoginOutput) ElementType() reflect.Type {
@@ -1447,6 +1727,12 @@ func (o GetSqlLoginsLoginOutput) ToGetSqlLoginsLoginOutputWithContext(ctx contex
return o
}
+func (o GetSqlLoginsLoginOutput) ToOutput(ctx context.Context) pulumix.Output[GetSqlLoginsLogin] {
+ return pulumix.Output[GetSqlLoginsLogin]{
+ OutputState: o.OutputState,
+ }
+}
+
// When `true`, password expiration policy is enforced for this login.
func (o GetSqlLoginsLoginOutput) CheckPasswordExpiration() pulumi.BoolOutput {
return o.ApplyT(func(v GetSqlLoginsLogin) bool { return v.CheckPasswordExpiration }).(pulumi.BoolOutput)
@@ -1501,6 +1787,12 @@ func (o GetSqlLoginsLoginArrayOutput) ToGetSqlLoginsLoginArrayOutputWithContext(
return o
}
+func (o GetSqlLoginsLoginArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]GetSqlLoginsLogin] {
+ return pulumix.Output[[]GetSqlLoginsLogin]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o GetSqlLoginsLoginArrayOutput) Index(i pulumi.IntInput) GetSqlLoginsLoginOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetSqlLoginsLogin {
return vs[0].([]GetSqlLoginsLogin)[vs[1].(int)]
@@ -1552,6 +1844,12 @@ func (i GetSqlUsersUserArgs) ToGetSqlUsersUserOutputWithContext(ctx context.Cont
return pulumi.ToOutputWithContext(ctx, i).(GetSqlUsersUserOutput)
}
+func (i GetSqlUsersUserArgs) ToOutput(ctx context.Context) pulumix.Output[GetSqlUsersUser] {
+ return pulumix.Output[GetSqlUsersUser]{
+ OutputState: i.ToGetSqlUsersUserOutputWithContext(ctx).OutputState,
+ }
+}
+
// GetSqlUsersUserArrayInput is an input type that accepts GetSqlUsersUserArray and GetSqlUsersUserArrayOutput values.
// You can construct a concrete instance of `GetSqlUsersUserArrayInput` via:
//
@@ -1577,6 +1875,12 @@ func (i GetSqlUsersUserArray) ToGetSqlUsersUserArrayOutputWithContext(ctx contex
return pulumi.ToOutputWithContext(ctx, i).(GetSqlUsersUserArrayOutput)
}
+func (i GetSqlUsersUserArray) ToOutput(ctx context.Context) pulumix.Output[[]GetSqlUsersUser] {
+ return pulumix.Output[[]GetSqlUsersUser]{
+ OutputState: i.ToGetSqlUsersUserArrayOutputWithContext(ctx).OutputState,
+ }
+}
+
type GetSqlUsersUserOutput struct{ *pulumi.OutputState }
func (GetSqlUsersUserOutput) ElementType() reflect.Type {
@@ -1591,6 +1895,12 @@ func (o GetSqlUsersUserOutput) ToGetSqlUsersUserOutputWithContext(ctx context.Co
return o
}
+func (o GetSqlUsersUserOutput) ToOutput(ctx context.Context) pulumix.Output[GetSqlUsersUser] {
+ return pulumix.Output[GetSqlUsersUser]{
+ OutputState: o.OutputState,
+ }
+}
+
// ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`.
func (o GetSqlUsersUserOutput) DatabaseId() pulumi.StringOutput {
return o.ApplyT(func(v GetSqlUsersUser) string { return v.DatabaseId }).(pulumi.StringOutput)
@@ -1625,6 +1935,12 @@ func (o GetSqlUsersUserArrayOutput) ToGetSqlUsersUserArrayOutputWithContext(ctx
return o
}
+func (o GetSqlUsersUserArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]GetSqlUsersUser] {
+ return pulumix.Output[[]GetSqlUsersUser]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o GetSqlUsersUserArrayOutput) Index(i pulumi.IntInput) GetSqlUsersUserOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetSqlUsersUser {
return vs[0].([]GetSqlUsersUser)[vs[1].(int)]
diff --git a/sdk/go/mssql/pulumiUtilities.go b/sdk/go/mssql/pulumiUtilities.go
deleted file mode 100644
index 7d5a54f..0000000
--- a/sdk/go/mssql/pulumiUtilities.go
+++ /dev/null
@@ -1,101 +0,0 @@
-// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
-// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
-
-package mssql
-
-import (
- "fmt"
- "os"
- "reflect"
- "regexp"
- "strconv"
- "strings"
-
- "github.com/blang/semver"
- "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
-)
-
-type envParser func(v string) interface{}
-
-func parseEnvBool(v string) interface{} {
- b, err := strconv.ParseBool(v)
- if err != nil {
- return nil
- }
- return b
-}
-
-func parseEnvInt(v string) interface{} {
- i, err := strconv.ParseInt(v, 0, 0)
- if err != nil {
- return nil
- }
- return int(i)
-}
-
-func parseEnvFloat(v string) interface{} {
- f, err := strconv.ParseFloat(v, 64)
- if err != nil {
- return nil
- }
- return f
-}
-
-func parseEnvStringArray(v string) interface{} {
- var result pulumi.StringArray
- for _, item := range strings.Split(v, ";") {
- result = append(result, pulumi.String(item))
- }
- return result
-}
-
-func getEnvOrDefault(def interface{}, parser envParser, vars ...string) interface{} {
- for _, v := range vars {
- if value, ok := os.LookupEnv(v); ok {
- if parser != nil {
- return parser(value)
- }
- return value
- }
- }
- return def
-}
-
-// PkgVersion uses reflection to determine the version of the current package.
-// If a version cannot be determined, v1 will be assumed. The second return
-// value is always nil.
-func PkgVersion() (semver.Version, error) {
- type sentinal struct{}
- pkgPath := reflect.TypeOf(sentinal{}).PkgPath()
- re := regexp.MustCompile("^.*/pulumi-mssql/sdk(/v\\d+)?")
- if match := re.FindStringSubmatch(pkgPath); match != nil {
- vStr := match[1]
- if len(vStr) == 0 { // If the version capture group was empty, default to v1.
- return semver.Version{Major: 1}, nil
- }
- return semver.MustParse(fmt.Sprintf("%s.0.0", vStr[2:])), nil
- }
- return semver.Version{Major: 1}, nil
-}
-
-// isZero is a null safe check for if a value is it's types zero value.
-func isZero(v interface{}) bool {
- if v == nil {
- return true
- }
- return reflect.ValueOf(v).IsZero()
-}
-
-// pkgResourceDefaultOpts provides package level defaults to pulumi.OptionResource.
-func pkgResourceDefaultOpts(opts []pulumi.ResourceOption) []pulumi.ResourceOption {
- defaults := []pulumi.ResourceOption{pulumi.PluginDownloadURL("github://api.github.com/pulumiverse/pulumi-mssql")}
-
- return append(defaults, opts...)
-}
-
-// pkgInvokeDefaultOpts provides package level defaults to pulumi.OptionInvoke.
-func pkgInvokeDefaultOpts(opts []pulumi.InvokeOption) []pulumi.InvokeOption {
- defaults := []pulumi.InvokeOption{pulumi.PluginDownloadURL("github://api.github.com/pulumiverse/pulumi-mssql")}
-
- return append(defaults, opts...)
-}
diff --git a/sdk/go/mssql/schema.go b/sdk/go/mssql/schema.go
index 18a6491..88319a4 100644
--- a/sdk/go/mssql/schema.go
+++ b/sdk/go/mssql/schema.go
@@ -7,8 +7,9 @@ import (
"context"
"reflect"
- "errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Manages single DB schema.
@@ -40,7 +41,6 @@ import (
// return err
// }
// _, err = mssql.NewSchema(ctx, "exampleSchema", &mssql.SchemaArgs{
-// Name: pulumi.String("example"),
// DatabaseId: *pulumi.String(exampleDatabase.Id),
// OwnerId: *pulumi.String(owner.Id),
// })
@@ -77,13 +77,10 @@ type Schema struct {
func NewSchema(ctx *pulumi.Context,
name string, args *SchemaArgs, opts ...pulumi.ResourceOption) (*Schema, error) {
if args == nil {
- return nil, errors.New("missing one or more required arguments")
+ args = &SchemaArgs{}
}
- if args.Name == nil {
- return nil, errors.New("invalid value for required argument 'Name'")
- }
- opts = pkgResourceDefaultOpts(opts)
+ opts = internal.PkgResourceDefaultOpts(opts)
var resource Schema
err := ctx.RegisterResource("mssql:index/schema:Schema", name, args, &resource, opts...)
if err != nil {
@@ -131,7 +128,7 @@ type schemaArgs struct {
// ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
DatabaseId *string `pulumi:"databaseId"`
// Schema name.
- Name string `pulumi:"name"`
+ Name *string `pulumi:"name"`
// ID of database role or user owning this schema. Can be retrieved using `DatabaseRole`, `SqlUser`, `AzureadUser` or `AzureadServicePrincipal`
OwnerId *string `pulumi:"ownerId"`
}
@@ -141,7 +138,7 @@ type SchemaArgs struct {
// ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
DatabaseId pulumi.StringPtrInput
// Schema name.
- Name pulumi.StringInput
+ Name pulumi.StringPtrInput
// ID of database role or user owning this schema. Can be retrieved using `DatabaseRole`, `SqlUser`, `AzureadUser` or `AzureadServicePrincipal`
OwnerId pulumi.StringPtrInput
}
@@ -169,6 +166,12 @@ func (i *Schema) ToSchemaOutputWithContext(ctx context.Context) SchemaOutput {
return pulumi.ToOutputWithContext(ctx, i).(SchemaOutput)
}
+func (i *Schema) ToOutput(ctx context.Context) pulumix.Output[*Schema] {
+ return pulumix.Output[*Schema]{
+ OutputState: i.ToSchemaOutputWithContext(ctx).OutputState,
+ }
+}
+
// SchemaArrayInput is an input type that accepts SchemaArray and SchemaArrayOutput values.
// You can construct a concrete instance of `SchemaArrayInput` via:
//
@@ -194,6 +197,12 @@ func (i SchemaArray) ToSchemaArrayOutputWithContext(ctx context.Context) SchemaA
return pulumi.ToOutputWithContext(ctx, i).(SchemaArrayOutput)
}
+func (i SchemaArray) ToOutput(ctx context.Context) pulumix.Output[[]*Schema] {
+ return pulumix.Output[[]*Schema]{
+ OutputState: i.ToSchemaArrayOutputWithContext(ctx).OutputState,
+ }
+}
+
// SchemaMapInput is an input type that accepts SchemaMap and SchemaMapOutput values.
// You can construct a concrete instance of `SchemaMapInput` via:
//
@@ -219,6 +228,12 @@ func (i SchemaMap) ToSchemaMapOutputWithContext(ctx context.Context) SchemaMapOu
return pulumi.ToOutputWithContext(ctx, i).(SchemaMapOutput)
}
+func (i SchemaMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*Schema] {
+ return pulumix.Output[map[string]*Schema]{
+ OutputState: i.ToSchemaMapOutputWithContext(ctx).OutputState,
+ }
+}
+
type SchemaOutput struct{ *pulumi.OutputState }
func (SchemaOutput) ElementType() reflect.Type {
@@ -233,6 +248,12 @@ func (o SchemaOutput) ToSchemaOutputWithContext(ctx context.Context) SchemaOutpu
return o
}
+func (o SchemaOutput) ToOutput(ctx context.Context) pulumix.Output[*Schema] {
+ return pulumix.Output[*Schema]{
+ OutputState: o.OutputState,
+ }
+}
+
// ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
func (o SchemaOutput) DatabaseId() pulumi.StringOutput {
return o.ApplyT(func(v *Schema) pulumi.StringOutput { return v.DatabaseId }).(pulumi.StringOutput)
@@ -262,6 +283,12 @@ func (o SchemaArrayOutput) ToSchemaArrayOutputWithContext(ctx context.Context) S
return o
}
+func (o SchemaArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*Schema] {
+ return pulumix.Output[[]*Schema]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o SchemaArrayOutput) Index(i pulumi.IntInput) SchemaOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Schema {
return vs[0].([]*Schema)[vs[1].(int)]
@@ -282,6 +309,12 @@ func (o SchemaMapOutput) ToSchemaMapOutputWithContext(ctx context.Context) Schem
return o
}
+func (o SchemaMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*Schema] {
+ return pulumix.Output[map[string]*Schema]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o SchemaMapOutput) MapIndex(k pulumi.StringInput) SchemaOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Schema {
return vs[0].(map[string]*Schema)[vs[1].(string)]
diff --git a/sdk/go/mssql/schemaPermission.go b/sdk/go/mssql/schemaPermission.go
index e5ff53c..87ccd35 100644
--- a/sdk/go/mssql/schemaPermission.go
+++ b/sdk/go/mssql/schemaPermission.go
@@ -9,6 +9,8 @@ import (
"errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Grants database-level permission.
@@ -99,7 +101,7 @@ func NewSchemaPermission(ctx *pulumi.Context,
if args.SchemaId == nil {
return nil, errors.New("invalid value for required argument 'SchemaId'")
}
- opts = pkgResourceDefaultOpts(opts)
+ opts = internal.PkgResourceDefaultOpts(opts)
var resource SchemaPermission
err := ctx.RegisterResource("mssql:index/schemaPermission:SchemaPermission", name, args, &resource, opts...)
if err != nil {
@@ -193,6 +195,12 @@ func (i *SchemaPermission) ToSchemaPermissionOutputWithContext(ctx context.Conte
return pulumi.ToOutputWithContext(ctx, i).(SchemaPermissionOutput)
}
+func (i *SchemaPermission) ToOutput(ctx context.Context) pulumix.Output[*SchemaPermission] {
+ return pulumix.Output[*SchemaPermission]{
+ OutputState: i.ToSchemaPermissionOutputWithContext(ctx).OutputState,
+ }
+}
+
// SchemaPermissionArrayInput is an input type that accepts SchemaPermissionArray and SchemaPermissionArrayOutput values.
// You can construct a concrete instance of `SchemaPermissionArrayInput` via:
//
@@ -218,6 +226,12 @@ func (i SchemaPermissionArray) ToSchemaPermissionArrayOutputWithContext(ctx cont
return pulumi.ToOutputWithContext(ctx, i).(SchemaPermissionArrayOutput)
}
+func (i SchemaPermissionArray) ToOutput(ctx context.Context) pulumix.Output[[]*SchemaPermission] {
+ return pulumix.Output[[]*SchemaPermission]{
+ OutputState: i.ToSchemaPermissionArrayOutputWithContext(ctx).OutputState,
+ }
+}
+
// SchemaPermissionMapInput is an input type that accepts SchemaPermissionMap and SchemaPermissionMapOutput values.
// You can construct a concrete instance of `SchemaPermissionMapInput` via:
//
@@ -243,6 +257,12 @@ func (i SchemaPermissionMap) ToSchemaPermissionMapOutputWithContext(ctx context.
return pulumi.ToOutputWithContext(ctx, i).(SchemaPermissionMapOutput)
}
+func (i SchemaPermissionMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*SchemaPermission] {
+ return pulumix.Output[map[string]*SchemaPermission]{
+ OutputState: i.ToSchemaPermissionMapOutputWithContext(ctx).OutputState,
+ }
+}
+
type SchemaPermissionOutput struct{ *pulumi.OutputState }
func (SchemaPermissionOutput) ElementType() reflect.Type {
@@ -257,6 +277,12 @@ func (o SchemaPermissionOutput) ToSchemaPermissionOutputWithContext(ctx context.
return o
}
+func (o SchemaPermissionOutput) ToOutput(ctx context.Context) pulumix.Output[*SchemaPermission] {
+ return pulumix.Output[*SchemaPermission]{
+ OutputState: o.OutputState,
+ }
+}
+
// Name of schema SQL permission. For full list of supported permissions, see [docs](https://learn.microsoft.com/en-us/sql/t-sql/statements/grant-schema-permissions-transact-sql?view=azuresqldb-current#remarks)
func (o SchemaPermissionOutput) Permission() pulumi.StringOutput {
return o.ApplyT(func(v *SchemaPermission) pulumi.StringOutput { return v.Permission }).(pulumi.StringOutput)
@@ -291,6 +317,12 @@ func (o SchemaPermissionArrayOutput) ToSchemaPermissionArrayOutputWithContext(ct
return o
}
+func (o SchemaPermissionArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*SchemaPermission] {
+ return pulumix.Output[[]*SchemaPermission]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o SchemaPermissionArrayOutput) Index(i pulumi.IntInput) SchemaPermissionOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *SchemaPermission {
return vs[0].([]*SchemaPermission)[vs[1].(int)]
@@ -311,6 +343,12 @@ func (o SchemaPermissionMapOutput) ToSchemaPermissionMapOutputWithContext(ctx co
return o
}
+func (o SchemaPermissionMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*SchemaPermission] {
+ return pulumix.Output[map[string]*SchemaPermission]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o SchemaPermissionMapOutput) MapIndex(k pulumi.StringInput) SchemaPermissionOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *SchemaPermission {
return vs[0].(map[string]*SchemaPermission)[vs[1].(string)]
diff --git a/sdk/go/mssql/script.go b/sdk/go/mssql/script.go
index 99a0f75..b9e6d58 100644
--- a/sdk/go/mssql/script.go
+++ b/sdk/go/mssql/script.go
@@ -9,6 +9,8 @@ import (
"errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Allows execution of arbitrary SQL scripts to check state and apply desired state.
@@ -91,7 +93,7 @@ func NewScript(ctx *pulumi.Context,
if args.UpdateScript == nil {
return nil, errors.New("invalid value for required argument 'UpdateScript'")
}
- opts = pkgResourceDefaultOpts(opts)
+ opts = internal.PkgResourceDefaultOpts(opts)
var resource Script
err := ctx.RegisterResource("mssql:index/script:Script", name, args, &resource, opts...)
if err != nil {
@@ -205,6 +207,12 @@ func (i *Script) ToScriptOutputWithContext(ctx context.Context) ScriptOutput {
return pulumi.ToOutputWithContext(ctx, i).(ScriptOutput)
}
+func (i *Script) ToOutput(ctx context.Context) pulumix.Output[*Script] {
+ return pulumix.Output[*Script]{
+ OutputState: i.ToScriptOutputWithContext(ctx).OutputState,
+ }
+}
+
// ScriptArrayInput is an input type that accepts ScriptArray and ScriptArrayOutput values.
// You can construct a concrete instance of `ScriptArrayInput` via:
//
@@ -230,6 +238,12 @@ func (i ScriptArray) ToScriptArrayOutputWithContext(ctx context.Context) ScriptA
return pulumi.ToOutputWithContext(ctx, i).(ScriptArrayOutput)
}
+func (i ScriptArray) ToOutput(ctx context.Context) pulumix.Output[[]*Script] {
+ return pulumix.Output[[]*Script]{
+ OutputState: i.ToScriptArrayOutputWithContext(ctx).OutputState,
+ }
+}
+
// ScriptMapInput is an input type that accepts ScriptMap and ScriptMapOutput values.
// You can construct a concrete instance of `ScriptMapInput` via:
//
@@ -255,6 +269,12 @@ func (i ScriptMap) ToScriptMapOutputWithContext(ctx context.Context) ScriptMapOu
return pulumi.ToOutputWithContext(ctx, i).(ScriptMapOutput)
}
+func (i ScriptMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*Script] {
+ return pulumix.Output[map[string]*Script]{
+ OutputState: i.ToScriptMapOutputWithContext(ctx).OutputState,
+ }
+}
+
type ScriptOutput struct{ *pulumi.OutputState }
func (ScriptOutput) ElementType() reflect.Type {
@@ -269,6 +289,12 @@ func (o ScriptOutput) ToScriptOutputWithContext(ctx context.Context) ScriptOutpu
return o
}
+func (o ScriptOutput) ToOutput(ctx context.Context) pulumix.Output[*Script] {
+ return pulumix.Output[*Script]{
+ OutputState: o.OutputState,
+ }
+}
+
// SQL script executed when the resource does not exist in Terraform state. When not provided, `update_script` will be used
// to create the resource.
func (o ScriptOutput) CreateScript() pulumi.StringPtrOutput {
@@ -314,6 +340,12 @@ func (o ScriptArrayOutput) ToScriptArrayOutputWithContext(ctx context.Context) S
return o
}
+func (o ScriptArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*Script] {
+ return pulumix.Output[[]*Script]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o ScriptArrayOutput) Index(i pulumi.IntInput) ScriptOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Script {
return vs[0].([]*Script)[vs[1].(int)]
@@ -334,6 +366,12 @@ func (o ScriptMapOutput) ToScriptMapOutputWithContext(ctx context.Context) Scrip
return o
}
+func (o ScriptMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*Script] {
+ return pulumix.Output[map[string]*Script]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o ScriptMapOutput) MapIndex(k pulumi.StringInput) ScriptOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Script {
return vs[0].(map[string]*Script)[vs[1].(string)]
diff --git a/sdk/go/mssql/serverPermission.go b/sdk/go/mssql/serverPermission.go
index 94a46b2..7f18e40 100644
--- a/sdk/go/mssql/serverPermission.go
+++ b/sdk/go/mssql/serverPermission.go
@@ -9,6 +9,8 @@ import (
"errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Grants server-level permission.
@@ -80,7 +82,7 @@ func NewServerPermission(ctx *pulumi.Context,
if args.PrincipalId == nil {
return nil, errors.New("invalid value for required argument 'PrincipalId'")
}
- opts = pkgResourceDefaultOpts(opts)
+ opts = internal.PkgResourceDefaultOpts(opts)
var resource ServerPermission
err := ctx.RegisterResource("mssql:index/serverPermission:ServerPermission", name, args, &resource, opts...)
if err != nil {
@@ -166,6 +168,12 @@ func (i *ServerPermission) ToServerPermissionOutputWithContext(ctx context.Conte
return pulumi.ToOutputWithContext(ctx, i).(ServerPermissionOutput)
}
+func (i *ServerPermission) ToOutput(ctx context.Context) pulumix.Output[*ServerPermission] {
+ return pulumix.Output[*ServerPermission]{
+ OutputState: i.ToServerPermissionOutputWithContext(ctx).OutputState,
+ }
+}
+
// ServerPermissionArrayInput is an input type that accepts ServerPermissionArray and ServerPermissionArrayOutput values.
// You can construct a concrete instance of `ServerPermissionArrayInput` via:
//
@@ -191,6 +199,12 @@ func (i ServerPermissionArray) ToServerPermissionArrayOutputWithContext(ctx cont
return pulumi.ToOutputWithContext(ctx, i).(ServerPermissionArrayOutput)
}
+func (i ServerPermissionArray) ToOutput(ctx context.Context) pulumix.Output[[]*ServerPermission] {
+ return pulumix.Output[[]*ServerPermission]{
+ OutputState: i.ToServerPermissionArrayOutputWithContext(ctx).OutputState,
+ }
+}
+
// ServerPermissionMapInput is an input type that accepts ServerPermissionMap and ServerPermissionMapOutput values.
// You can construct a concrete instance of `ServerPermissionMapInput` via:
//
@@ -216,6 +230,12 @@ func (i ServerPermissionMap) ToServerPermissionMapOutputWithContext(ctx context.
return pulumi.ToOutputWithContext(ctx, i).(ServerPermissionMapOutput)
}
+func (i ServerPermissionMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*ServerPermission] {
+ return pulumix.Output[map[string]*ServerPermission]{
+ OutputState: i.ToServerPermissionMapOutputWithContext(ctx).OutputState,
+ }
+}
+
type ServerPermissionOutput struct{ *pulumi.OutputState }
func (ServerPermissionOutput) ElementType() reflect.Type {
@@ -230,6 +250,12 @@ func (o ServerPermissionOutput) ToServerPermissionOutputWithContext(ctx context.
return o
}
+func (o ServerPermissionOutput) ToOutput(ctx context.Context) pulumix.Output[*ServerPermission] {
+ return pulumix.Output[*ServerPermission]{
+ OutputState: o.OutputState,
+ }
+}
+
// Name of server-level SQL permission. For full list of supported permissions see [docs](https://learn.microsoft.com/en-us/sql/t-sql/statements/grant-server-permissions-transact-sql?view=azuresqldb-current#remarks)
func (o ServerPermissionOutput) Permission() pulumi.StringOutput {
return o.ApplyT(func(v *ServerPermission) pulumi.StringOutput { return v.Permission }).(pulumi.StringOutput)
@@ -259,6 +285,12 @@ func (o ServerPermissionArrayOutput) ToServerPermissionArrayOutputWithContext(ct
return o
}
+func (o ServerPermissionArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*ServerPermission] {
+ return pulumix.Output[[]*ServerPermission]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o ServerPermissionArrayOutput) Index(i pulumi.IntInput) ServerPermissionOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ServerPermission {
return vs[0].([]*ServerPermission)[vs[1].(int)]
@@ -279,6 +311,12 @@ func (o ServerPermissionMapOutput) ToServerPermissionMapOutputWithContext(ctx co
return o
}
+func (o ServerPermissionMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*ServerPermission] {
+ return pulumix.Output[map[string]*ServerPermission]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o ServerPermissionMapOutput) MapIndex(k pulumi.StringInput) ServerPermissionOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ServerPermission {
return vs[0].(map[string]*ServerPermission)[vs[1].(string)]
diff --git a/sdk/go/mssql/serverRole.go b/sdk/go/mssql/serverRole.go
index c8f8437..5484a49 100644
--- a/sdk/go/mssql/serverRole.go
+++ b/sdk/go/mssql/serverRole.go
@@ -7,8 +7,9 @@ import (
"context"
"reflect"
- "errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Manages server-level role.
@@ -27,14 +28,11 @@ import (
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
-// owner, err := mssql.NewServerRole(ctx, "owner", &mssql.ServerRoleArgs{
-// Name: pulumi.String("owner_role"),
-// })
+// owner, err := mssql.NewServerRole(ctx, "owner", nil)
// if err != nil {
// return err
// }
// _, err = mssql.NewServerRole(ctx, "example", &mssql.ServerRoleArgs{
-// Name: pulumi.String("example"),
// OwnerId: owner.ID(),
// })
// if err != nil {
@@ -68,13 +66,10 @@ type ServerRole struct {
func NewServerRole(ctx *pulumi.Context,
name string, args *ServerRoleArgs, opts ...pulumi.ResourceOption) (*ServerRole, error) {
if args == nil {
- return nil, errors.New("missing one or more required arguments")
+ args = &ServerRoleArgs{}
}
- if args.Name == nil {
- return nil, errors.New("invalid value for required argument 'Name'")
- }
- opts = pkgResourceDefaultOpts(opts)
+ opts = internal.PkgResourceDefaultOpts(opts)
var resource ServerRole
err := ctx.RegisterResource("mssql:index/serverRole:ServerRole", name, args, &resource, opts...)
if err != nil {
@@ -116,7 +111,7 @@ func (ServerRoleState) ElementType() reflect.Type {
type serverRoleArgs struct {
// Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars.
- Name string `pulumi:"name"`
+ Name *string `pulumi:"name"`
// ID of another server role or login owning this role. Can be retrieved using `ServerRole` or `SqlLogin`.
OwnerId *string `pulumi:"ownerId"`
}
@@ -124,7 +119,7 @@ type serverRoleArgs struct {
// The set of arguments for constructing a ServerRole resource.
type ServerRoleArgs struct {
// Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars.
- Name pulumi.StringInput
+ Name pulumi.StringPtrInput
// ID of another server role or login owning this role. Can be retrieved using `ServerRole` or `SqlLogin`.
OwnerId pulumi.StringPtrInput
}
@@ -152,6 +147,12 @@ func (i *ServerRole) ToServerRoleOutputWithContext(ctx context.Context) ServerRo
return pulumi.ToOutputWithContext(ctx, i).(ServerRoleOutput)
}
+func (i *ServerRole) ToOutput(ctx context.Context) pulumix.Output[*ServerRole] {
+ return pulumix.Output[*ServerRole]{
+ OutputState: i.ToServerRoleOutputWithContext(ctx).OutputState,
+ }
+}
+
// ServerRoleArrayInput is an input type that accepts ServerRoleArray and ServerRoleArrayOutput values.
// You can construct a concrete instance of `ServerRoleArrayInput` via:
//
@@ -177,6 +178,12 @@ func (i ServerRoleArray) ToServerRoleArrayOutputWithContext(ctx context.Context)
return pulumi.ToOutputWithContext(ctx, i).(ServerRoleArrayOutput)
}
+func (i ServerRoleArray) ToOutput(ctx context.Context) pulumix.Output[[]*ServerRole] {
+ return pulumix.Output[[]*ServerRole]{
+ OutputState: i.ToServerRoleArrayOutputWithContext(ctx).OutputState,
+ }
+}
+
// ServerRoleMapInput is an input type that accepts ServerRoleMap and ServerRoleMapOutput values.
// You can construct a concrete instance of `ServerRoleMapInput` via:
//
@@ -202,6 +209,12 @@ func (i ServerRoleMap) ToServerRoleMapOutputWithContext(ctx context.Context) Ser
return pulumi.ToOutputWithContext(ctx, i).(ServerRoleMapOutput)
}
+func (i ServerRoleMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*ServerRole] {
+ return pulumix.Output[map[string]*ServerRole]{
+ OutputState: i.ToServerRoleMapOutputWithContext(ctx).OutputState,
+ }
+}
+
type ServerRoleOutput struct{ *pulumi.OutputState }
func (ServerRoleOutput) ElementType() reflect.Type {
@@ -216,6 +229,12 @@ func (o ServerRoleOutput) ToServerRoleOutputWithContext(ctx context.Context) Ser
return o
}
+func (o ServerRoleOutput) ToOutput(ctx context.Context) pulumix.Output[*ServerRole] {
+ return pulumix.Output[*ServerRole]{
+ OutputState: o.OutputState,
+ }
+}
+
// Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars.
func (o ServerRoleOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *ServerRole) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
@@ -240,6 +259,12 @@ func (o ServerRoleArrayOutput) ToServerRoleArrayOutputWithContext(ctx context.Co
return o
}
+func (o ServerRoleArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*ServerRole] {
+ return pulumix.Output[[]*ServerRole]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o ServerRoleArrayOutput) Index(i pulumi.IntInput) ServerRoleOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ServerRole {
return vs[0].([]*ServerRole)[vs[1].(int)]
@@ -260,6 +285,12 @@ func (o ServerRoleMapOutput) ToServerRoleMapOutputWithContext(ctx context.Contex
return o
}
+func (o ServerRoleMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*ServerRole] {
+ return pulumix.Output[map[string]*ServerRole]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o ServerRoleMapOutput) MapIndex(k pulumi.StringInput) ServerRoleOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ServerRole {
return vs[0].(map[string]*ServerRole)[vs[1].(string)]
diff --git a/sdk/go/mssql/serverRoleMember.go b/sdk/go/mssql/serverRoleMember.go
index 8a5a391..bd333b7 100644
--- a/sdk/go/mssql/serverRoleMember.go
+++ b/sdk/go/mssql/serverRoleMember.go
@@ -9,6 +9,8 @@ import (
"errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Manages server role membership.
@@ -33,9 +35,7 @@ import (
// if err != nil {
// return err
// }
-// exampleServerRole, err := mssql.NewServerRole(ctx, "exampleServerRole", &mssql.ServerRoleArgs{
-// Name: pulumi.String("example"),
-// })
+// exampleServerRole, err := mssql.NewServerRole(ctx, "exampleServerRole", nil)
// if err != nil {
// return err
// }
@@ -83,7 +83,7 @@ func NewServerRoleMember(ctx *pulumi.Context,
if args.RoleId == nil {
return nil, errors.New("invalid value for required argument 'RoleId'")
}
- opts = pkgResourceDefaultOpts(opts)
+ opts = internal.PkgResourceDefaultOpts(opts)
var resource ServerRoleMember
err := ctx.RegisterResource("mssql:index/serverRoleMember:ServerRoleMember", name, args, &resource, opts...)
if err != nil {
@@ -161,6 +161,12 @@ func (i *ServerRoleMember) ToServerRoleMemberOutputWithContext(ctx context.Conte
return pulumi.ToOutputWithContext(ctx, i).(ServerRoleMemberOutput)
}
+func (i *ServerRoleMember) ToOutput(ctx context.Context) pulumix.Output[*ServerRoleMember] {
+ return pulumix.Output[*ServerRoleMember]{
+ OutputState: i.ToServerRoleMemberOutputWithContext(ctx).OutputState,
+ }
+}
+
// ServerRoleMemberArrayInput is an input type that accepts ServerRoleMemberArray and ServerRoleMemberArrayOutput values.
// You can construct a concrete instance of `ServerRoleMemberArrayInput` via:
//
@@ -186,6 +192,12 @@ func (i ServerRoleMemberArray) ToServerRoleMemberArrayOutputWithContext(ctx cont
return pulumi.ToOutputWithContext(ctx, i).(ServerRoleMemberArrayOutput)
}
+func (i ServerRoleMemberArray) ToOutput(ctx context.Context) pulumix.Output[[]*ServerRoleMember] {
+ return pulumix.Output[[]*ServerRoleMember]{
+ OutputState: i.ToServerRoleMemberArrayOutputWithContext(ctx).OutputState,
+ }
+}
+
// ServerRoleMemberMapInput is an input type that accepts ServerRoleMemberMap and ServerRoleMemberMapOutput values.
// You can construct a concrete instance of `ServerRoleMemberMapInput` via:
//
@@ -211,6 +223,12 @@ func (i ServerRoleMemberMap) ToServerRoleMemberMapOutputWithContext(ctx context.
return pulumi.ToOutputWithContext(ctx, i).(ServerRoleMemberMapOutput)
}
+func (i ServerRoleMemberMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*ServerRoleMember] {
+ return pulumix.Output[map[string]*ServerRoleMember]{
+ OutputState: i.ToServerRoleMemberMapOutputWithContext(ctx).OutputState,
+ }
+}
+
type ServerRoleMemberOutput struct{ *pulumi.OutputState }
func (ServerRoleMemberOutput) ElementType() reflect.Type {
@@ -225,6 +243,12 @@ func (o ServerRoleMemberOutput) ToServerRoleMemberOutputWithContext(ctx context.
return o
}
+func (o ServerRoleMemberOutput) ToOutput(ctx context.Context) pulumix.Output[*ServerRoleMember] {
+ return pulumix.Output[*ServerRoleMember]{
+ OutputState: o.OutputState,
+ }
+}
+
// ID of the member. Can be retrieved using `ServerRole` or `SqlLogin`
func (o ServerRoleMemberOutput) MemberId() pulumi.StringOutput {
return o.ApplyT(func(v *ServerRoleMember) pulumi.StringOutput { return v.MemberId }).(pulumi.StringOutput)
@@ -249,6 +273,12 @@ func (o ServerRoleMemberArrayOutput) ToServerRoleMemberArrayOutputWithContext(ct
return o
}
+func (o ServerRoleMemberArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*ServerRoleMember] {
+ return pulumix.Output[[]*ServerRoleMember]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o ServerRoleMemberArrayOutput) Index(i pulumi.IntInput) ServerRoleMemberOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ServerRoleMember {
return vs[0].([]*ServerRoleMember)[vs[1].(int)]
@@ -269,6 +299,12 @@ func (o ServerRoleMemberMapOutput) ToServerRoleMemberMapOutputWithContext(ctx co
return o
}
+func (o ServerRoleMemberMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*ServerRoleMember] {
+ return pulumix.Output[map[string]*ServerRoleMember]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o ServerRoleMemberMapOutput) MapIndex(k pulumi.StringInput) ServerRoleMemberOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ServerRoleMember {
return vs[0].(map[string]*ServerRoleMember)[vs[1].(string)]
diff --git a/sdk/go/mssql/sqlLogin.go b/sdk/go/mssql/sqlLogin.go
index 42c3b05..c21ea3d 100644
--- a/sdk/go/mssql/sqlLogin.go
+++ b/sdk/go/mssql/sqlLogin.go
@@ -9,6 +9,8 @@ import (
"errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Manages single login.
@@ -34,7 +36,6 @@ import (
// return err
// }
// exampleSqlLogin, err := mssql.NewSqlLogin(ctx, "exampleSqlLogin", &mssql.SqlLoginArgs{
-// Name: pulumi.String("example"),
// Password: pulumi.String("Str0ngPa$$word12"),
// MustChangePassword: pulumi.Bool(true),
// DefaultDatabaseId: *pulumi.String(exampleDatabase.Id),
@@ -96,9 +97,6 @@ func NewSqlLogin(ctx *pulumi.Context,
return nil, errors.New("missing one or more required arguments")
}
- if args.Name == nil {
- return nil, errors.New("invalid value for required argument 'Name'")
- }
if args.Password == nil {
return nil, errors.New("invalid value for required argument 'Password'")
}
@@ -109,7 +107,7 @@ func NewSqlLogin(ctx *pulumi.Context,
"password",
})
opts = append(opts, secrets)
- opts = pkgResourceDefaultOpts(opts)
+ opts = internal.PkgResourceDefaultOpts(opts)
var resource SqlLogin
err := ctx.RegisterResource("mssql:index/sqlLogin:SqlLogin", name, args, &resource, opts...)
if err != nil {
@@ -206,7 +204,7 @@ type sqlLoginArgs struct {
// this behavior. -> **Note** In case of Azure SQL, which does not support this feature, the flag will be ignored.
MustChangePassword *bool `pulumi:"mustChangePassword"`
// Login name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot contain `\`
- Name string `pulumi:"name"`
+ Name *string `pulumi:"name"`
// Password for the login. Must follow strong password policies defined for SQL server. Passwords are case-sensitive, length must be 8-128 chars, can include all characters except `'` or `name`.
Password string `pulumi:"password"`
}
@@ -231,7 +229,7 @@ type SqlLoginArgs struct {
// this behavior. -> **Note** In case of Azure SQL, which does not support this feature, the flag will be ignored.
MustChangePassword pulumi.BoolPtrInput
// Login name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot contain `\`
- Name pulumi.StringInput
+ Name pulumi.StringPtrInput
// Password for the login. Must follow strong password policies defined for SQL server. Passwords are case-sensitive, length must be 8-128 chars, can include all characters except `'` or `name`.
Password pulumi.StringInput
}
@@ -259,6 +257,12 @@ func (i *SqlLogin) ToSqlLoginOutputWithContext(ctx context.Context) SqlLoginOutp
return pulumi.ToOutputWithContext(ctx, i).(SqlLoginOutput)
}
+func (i *SqlLogin) ToOutput(ctx context.Context) pulumix.Output[*SqlLogin] {
+ return pulumix.Output[*SqlLogin]{
+ OutputState: i.ToSqlLoginOutputWithContext(ctx).OutputState,
+ }
+}
+
// SqlLoginArrayInput is an input type that accepts SqlLoginArray and SqlLoginArrayOutput values.
// You can construct a concrete instance of `SqlLoginArrayInput` via:
//
@@ -284,6 +288,12 @@ func (i SqlLoginArray) ToSqlLoginArrayOutputWithContext(ctx context.Context) Sql
return pulumi.ToOutputWithContext(ctx, i).(SqlLoginArrayOutput)
}
+func (i SqlLoginArray) ToOutput(ctx context.Context) pulumix.Output[[]*SqlLogin] {
+ return pulumix.Output[[]*SqlLogin]{
+ OutputState: i.ToSqlLoginArrayOutputWithContext(ctx).OutputState,
+ }
+}
+
// SqlLoginMapInput is an input type that accepts SqlLoginMap and SqlLoginMapOutput values.
// You can construct a concrete instance of `SqlLoginMapInput` via:
//
@@ -309,6 +319,12 @@ func (i SqlLoginMap) ToSqlLoginMapOutputWithContext(ctx context.Context) SqlLogi
return pulumi.ToOutputWithContext(ctx, i).(SqlLoginMapOutput)
}
+func (i SqlLoginMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*SqlLogin] {
+ return pulumix.Output[map[string]*SqlLogin]{
+ OutputState: i.ToSqlLoginMapOutputWithContext(ctx).OutputState,
+ }
+}
+
type SqlLoginOutput struct{ *pulumi.OutputState }
func (SqlLoginOutput) ElementType() reflect.Type {
@@ -323,6 +339,12 @@ func (o SqlLoginOutput) ToSqlLoginOutputWithContext(ctx context.Context) SqlLogi
return o
}
+func (o SqlLoginOutput) ToOutput(ctx context.Context) pulumix.Output[*SqlLogin] {
+ return pulumix.Output[*SqlLogin]{
+ OutputState: o.OutputState,
+ }
+}
+
// When `true`, password expiration policy is enforced for this login. Defaults to `false`. -> **Note** In case of Azure
// SQL, which does not support this feature, the flag will be ignored.
func (o SqlLoginOutput) CheckPasswordExpiration() pulumi.BoolPtrOutput {
@@ -384,6 +406,12 @@ func (o SqlLoginArrayOutput) ToSqlLoginArrayOutputWithContext(ctx context.Contex
return o
}
+func (o SqlLoginArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*SqlLogin] {
+ return pulumix.Output[[]*SqlLogin]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o SqlLoginArrayOutput) Index(i pulumi.IntInput) SqlLoginOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *SqlLogin {
return vs[0].([]*SqlLogin)[vs[1].(int)]
@@ -404,6 +432,12 @@ func (o SqlLoginMapOutput) ToSqlLoginMapOutputWithContext(ctx context.Context) S
return o
}
+func (o SqlLoginMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*SqlLogin] {
+ return pulumix.Output[map[string]*SqlLogin]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o SqlLoginMapOutput) MapIndex(k pulumi.StringInput) SqlLoginOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *SqlLogin {
return vs[0].(map[string]*SqlLogin)[vs[1].(string)]
diff --git a/sdk/go/mssql/sqlUser.go b/sdk/go/mssql/sqlUser.go
index c466f2c..f30434e 100644
--- a/sdk/go/mssql/sqlUser.go
+++ b/sdk/go/mssql/sqlUser.go
@@ -9,6 +9,8 @@ import (
"errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumix"
+ "github.com/pulumiverse/pulumi-mssql/sdk/go/mssql/internal"
)
// Manages database-level user, based on SQL login.
@@ -34,7 +36,6 @@ import (
// return err
// }
// exampleSqlLogin, err := mssql.NewSqlLogin(ctx, "exampleSqlLogin", &mssql.SqlLoginArgs{
-// Name: pulumi.String("example"),
// Password: pulumi.String("Str0ngPa$$word12"),
// MustChangePassword: pulumi.Bool(true),
// DefaultDatabaseId: *pulumi.String(exampleDatabase.Id),
@@ -46,7 +47,6 @@ import (
// return err
// }
// exampleSqlUser, err := mssql.NewSqlUser(ctx, "exampleSqlUser", &mssql.SqlUserArgs{
-// Name: pulumi.String("example"),
// DatabaseId: *pulumi.String(exampleDatabase.Id),
// LoginId: exampleSqlLogin.ID(),
// })
@@ -90,10 +90,7 @@ func NewSqlUser(ctx *pulumi.Context,
if args.LoginId == nil {
return nil, errors.New("invalid value for required argument 'LoginId'")
}
- if args.Name == nil {
- return nil, errors.New("invalid value for required argument 'Name'")
- }
- opts = pkgResourceDefaultOpts(opts)
+ opts = internal.PkgResourceDefaultOpts(opts)
var resource SqlUser
err := ctx.RegisterResource("mssql:index/sqlUser:SqlUser", name, args, &resource, opts...)
if err != nil {
@@ -143,7 +140,7 @@ type sqlUserArgs struct {
// SID of SQL login. Can be retrieved using `SqlLogin` or `SELECT SUSER_SID('')`.
LoginId string `pulumi:"loginId"`
// User name. Cannot be longer than 128 chars.
- Name string `pulumi:"name"`
+ Name *string `pulumi:"name"`
}
// The set of arguments for constructing a SqlUser resource.
@@ -153,7 +150,7 @@ type SqlUserArgs struct {
// SID of SQL login. Can be retrieved using `SqlLogin` or `SELECT SUSER_SID('')`.
LoginId pulumi.StringInput
// User name. Cannot be longer than 128 chars.
- Name pulumi.StringInput
+ Name pulumi.StringPtrInput
}
func (SqlUserArgs) ElementType() reflect.Type {
@@ -179,6 +176,12 @@ func (i *SqlUser) ToSqlUserOutputWithContext(ctx context.Context) SqlUserOutput
return pulumi.ToOutputWithContext(ctx, i).(SqlUserOutput)
}
+func (i *SqlUser) ToOutput(ctx context.Context) pulumix.Output[*SqlUser] {
+ return pulumix.Output[*SqlUser]{
+ OutputState: i.ToSqlUserOutputWithContext(ctx).OutputState,
+ }
+}
+
// SqlUserArrayInput is an input type that accepts SqlUserArray and SqlUserArrayOutput values.
// You can construct a concrete instance of `SqlUserArrayInput` via:
//
@@ -204,6 +207,12 @@ func (i SqlUserArray) ToSqlUserArrayOutputWithContext(ctx context.Context) SqlUs
return pulumi.ToOutputWithContext(ctx, i).(SqlUserArrayOutput)
}
+func (i SqlUserArray) ToOutput(ctx context.Context) pulumix.Output[[]*SqlUser] {
+ return pulumix.Output[[]*SqlUser]{
+ OutputState: i.ToSqlUserArrayOutputWithContext(ctx).OutputState,
+ }
+}
+
// SqlUserMapInput is an input type that accepts SqlUserMap and SqlUserMapOutput values.
// You can construct a concrete instance of `SqlUserMapInput` via:
//
@@ -229,6 +238,12 @@ func (i SqlUserMap) ToSqlUserMapOutputWithContext(ctx context.Context) SqlUserMa
return pulumi.ToOutputWithContext(ctx, i).(SqlUserMapOutput)
}
+func (i SqlUserMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*SqlUser] {
+ return pulumix.Output[map[string]*SqlUser]{
+ OutputState: i.ToSqlUserMapOutputWithContext(ctx).OutputState,
+ }
+}
+
type SqlUserOutput struct{ *pulumi.OutputState }
func (SqlUserOutput) ElementType() reflect.Type {
@@ -243,6 +258,12 @@ func (o SqlUserOutput) ToSqlUserOutputWithContext(ctx context.Context) SqlUserOu
return o
}
+func (o SqlUserOutput) ToOutput(ctx context.Context) pulumix.Output[*SqlUser] {
+ return pulumix.Output[*SqlUser]{
+ OutputState: o.OutputState,
+ }
+}
+
// ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
func (o SqlUserOutput) DatabaseId() pulumi.StringOutput {
return o.ApplyT(func(v *SqlUser) pulumi.StringOutput { return v.DatabaseId }).(pulumi.StringOutput)
@@ -272,6 +293,12 @@ func (o SqlUserArrayOutput) ToSqlUserArrayOutputWithContext(ctx context.Context)
return o
}
+func (o SqlUserArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*SqlUser] {
+ return pulumix.Output[[]*SqlUser]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o SqlUserArrayOutput) Index(i pulumi.IntInput) SqlUserOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *SqlUser {
return vs[0].([]*SqlUser)[vs[1].(int)]
@@ -292,6 +319,12 @@ func (o SqlUserMapOutput) ToSqlUserMapOutputWithContext(ctx context.Context) Sql
return o
}
+func (o SqlUserMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*SqlUser] {
+ return pulumix.Output[map[string]*SqlUser]{
+ OutputState: o.OutputState,
+ }
+}
+
func (o SqlUserMapOutput) MapIndex(k pulumi.StringInput) SqlUserOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *SqlUser {
return vs[0].(map[string]*SqlUser)[vs[1].(string)]
diff --git a/sdk/nodejs/azureadServicePrincipal.ts b/sdk/nodejs/azureadServicePrincipal.ts
index 62f808a..7e8ed4c 100644
--- a/sdk/nodejs/azureadServicePrincipal.ts
+++ b/sdk/nodejs/azureadServicePrincipal.ts
@@ -24,7 +24,6 @@ import * as utilities from "./utilities";
* displayName: "test-application",
* });
* const exampleAzureadServicePrincipal = new mssql.AzureadServicePrincipal("exampleAzureadServicePrincipal", {
- * name: "example",
* databaseId: exampleDatabase.then(exampleDatabase => exampleDatabase.id),
* clientId: exampleServicePrincipal.then(exampleServicePrincipal => exampleServicePrincipal.applicationId),
* });
@@ -104,9 +103,6 @@ export class AzureadServicePrincipal extends pulumi.CustomResource {
if ((!args || args.databaseId === undefined) && !opts.urn) {
throw new Error("Missing required property 'databaseId'");
}
- if ((!args || args.name === undefined) && !opts.urn) {
- throw new Error("Missing required property 'name'");
- }
resourceInputs["clientId"] = args ? args.clientId : undefined;
resourceInputs["databaseId"] = args ? args.databaseId : undefined;
resourceInputs["name"] = args ? args.name : undefined;
@@ -149,5 +145,5 @@ export interface AzureadServicePrincipalArgs {
/**
* User name. Cannot be longer than 128 chars.
*/
- name: pulumi.Input;
+ name?: pulumi.Input;
}
diff --git a/sdk/nodejs/azureadUser.ts b/sdk/nodejs/azureadUser.ts
index 57bbf4e..3162da4 100644
--- a/sdk/nodejs/azureadUser.ts
+++ b/sdk/nodejs/azureadUser.ts
@@ -24,7 +24,6 @@ import * as utilities from "./utilities";
* userPrincipalName: "user@example.com",
* });
* const exampleAzureadUser = new mssql.AzureadUser("exampleAzureadUser", {
- * name: "example",
* databaseId: exampleDatabase.then(exampleDatabase => exampleDatabase.id),
* userObjectId: exampleUser.then(exampleUser => exampleUser.objectId),
* });
@@ -101,9 +100,6 @@ export class AzureadUser extends pulumi.CustomResource {
if ((!args || args.databaseId === undefined) && !opts.urn) {
throw new Error("Missing required property 'databaseId'");
}
- if ((!args || args.name === undefined) && !opts.urn) {
- throw new Error("Missing required property 'name'");
- }
if ((!args || args.userObjectId === undefined) && !opts.urn) {
throw new Error("Missing required property 'userObjectId'");
}
@@ -145,7 +141,7 @@ export interface AzureadUserArgs {
/**
* User name. Cannot be longer than 128 chars.
*/
- name: pulumi.Input;
+ name?: pulumi.Input;
/**
* Azure AD objectId of the user. This can be either regular user or a group.
*/
diff --git a/sdk/nodejs/database.ts b/sdk/nodejs/database.ts
index 8b5641d..e7e4bbb 100644
--- a/sdk/nodejs/database.ts
+++ b/sdk/nodejs/database.ts
@@ -13,10 +13,7 @@ import * as utilities from "./utilities";
* import * as pulumi from "@pulumi/pulumi";
* import * as mssql from "@pulumiverse/mssql";
*
- * const example = new mssql.Database("example", {
- * collation: "SQL_Latin1_General_CP1_CS_AS",
- * name: "example",
- * });
+ * const example = new mssql.Database("example", {collation: "SQL_Latin1_General_CP1_CS_AS"});
* ```
*
* ## Import
@@ -71,7 +68,7 @@ export class Database extends pulumi.CustomResource {
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
- constructor(name: string, args: DatabaseArgs, opts?: pulumi.CustomResourceOptions)
+ constructor(name: string, args?: DatabaseArgs, opts?: pulumi.CustomResourceOptions)
constructor(name: string, argsOrState?: DatabaseArgs | DatabaseState, opts?: pulumi.CustomResourceOptions) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
@@ -81,9 +78,6 @@ export class Database extends pulumi.CustomResource {
resourceInputs["name"] = state ? state.name : undefined;
} else {
const args = argsOrState as DatabaseArgs | undefined;
- if ((!args || args.name === undefined) && !opts.urn) {
- throw new Error("Missing required property 'name'");
- }
resourceInputs["collation"] = args ? args.collation : undefined;
resourceInputs["name"] = args ? args.name : undefined;
}
@@ -117,5 +111,5 @@ export interface DatabaseArgs {
/**
* Database name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers).
*/
- name: pulumi.Input;
+ name?: pulumi.Input;
}
diff --git a/sdk/nodejs/databaseRole.ts b/sdk/nodejs/databaseRole.ts
index 7f15e63..5179e8a 100644
--- a/sdk/nodejs/databaseRole.ts
+++ b/sdk/nodejs/databaseRole.ts
@@ -21,7 +21,6 @@ import * as utilities from "./utilities";
* name: "example_user",
* });
* const exampleDatabaseRole = new mssql.DatabaseRole("exampleDatabaseRole", {
- * name: "example",
* databaseId: exampleDatabase.then(exampleDatabase => exampleDatabase.id),
* ownerId: owner.then(owner => owner.id),
* });
@@ -84,7 +83,7 @@ export class DatabaseRole extends pulumi.CustomResource {
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
- constructor(name: string, args: DatabaseRoleArgs, opts?: pulumi.CustomResourceOptions)
+ constructor(name: string, args?: DatabaseRoleArgs, opts?: pulumi.CustomResourceOptions)
constructor(name: string, argsOrState?: DatabaseRoleArgs | DatabaseRoleState, opts?: pulumi.CustomResourceOptions) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
@@ -95,9 +94,6 @@ export class DatabaseRole extends pulumi.CustomResource {
resourceInputs["ownerId"] = state ? state.ownerId : undefined;
} else {
const args = argsOrState as DatabaseRoleArgs | undefined;
- if ((!args || args.name === undefined) && !opts.urn) {
- throw new Error("Missing required property 'name'");
- }
resourceInputs["databaseId"] = args ? args.databaseId : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["ownerId"] = args ? args.ownerId : undefined;
@@ -137,7 +133,7 @@ export interface DatabaseRoleArgs {
/**
* Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars.
*/
- name: pulumi.Input;
+ name?: pulumi.Input;
/**
* ID of another database role or user owning this role. Can be retrieved using `mssql_database_role` or `mssql_sql_user`.
* Defaults to ID of current user, used to authorize the Terraform provider.
diff --git a/sdk/nodejs/databaseRoleMember.ts b/sdk/nodejs/databaseRoleMember.ts
index 70b5434..ad6a231 100644
--- a/sdk/nodejs/databaseRoleMember.ts
+++ b/sdk/nodejs/databaseRoleMember.ts
@@ -26,7 +26,6 @@ import * as utilities from "./utilities";
* databaseId: exampleDatabase.id,
* }));
* const exampleDatabaseRole = new mssql.DatabaseRole("exampleDatabaseRole", {
- * name: "example",
* databaseId: exampleDatabase.then(exampleDatabase => exampleDatabase.id),
* ownerId: owner.then(owner => owner.id),
* });
diff --git a/sdk/nodejs/getDatabaseRole.ts b/sdk/nodejs/getDatabaseRole.ts
index 985eb08..7395418 100644
--- a/sdk/nodejs/getDatabaseRole.ts
+++ b/sdk/nodejs/getDatabaseRole.ts
@@ -43,7 +43,7 @@ export interface GetDatabaseRoleArgs {
*/
databaseId?: string;
/**
- * Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars.
+ * Name of the database principal.
*/
name: string;
}
@@ -105,7 +105,7 @@ export interface GetDatabaseRoleOutputArgs {
*/
databaseId?: pulumi.Input;
/**
- * Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars.
+ * Name of the database principal.
*/
name: pulumi.Input;
}
diff --git a/sdk/nodejs/getDatabaseRoles.ts b/sdk/nodejs/getDatabaseRoles.ts
index ff3c897..1f0084b 100644
--- a/sdk/nodejs/getDatabaseRoles.ts
+++ b/sdk/nodejs/getDatabaseRoles.ts
@@ -38,7 +38,7 @@ export function getDatabaseRoles(args?: GetDatabaseRolesArgs, opts?: pulumi.Invo
*/
export interface GetDatabaseRolesArgs {
/**
- * ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
+ * ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('')`.
*/
databaseId?: string;
}
@@ -87,7 +87,7 @@ export function getDatabaseRolesOutput(args?: GetDatabaseRolesOutputArgs, opts?:
*/
export interface GetDatabaseRolesOutputArgs {
/**
- * ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
+ * ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('')`.
*/
databaseId?: pulumi.Input;
}
diff --git a/sdk/nodejs/getDatabases.ts b/sdk/nodejs/getDatabases.ts
index 284889d..2b1725f 100644
--- a/sdk/nodejs/getDatabases.ts
+++ b/sdk/nodejs/getDatabases.ts
@@ -39,3 +39,19 @@ export interface GetDatabasesResult {
*/
readonly id: string;
}
+/**
+ * Obtains information about all databases found in SQL Server instance.
+ *
+ * ## Example Usage
+ *
+ * ```typescript
+ * import * as pulumi from "@pulumi/pulumi";
+ * import * as mssql from "@pulumi/mssql";
+ *
+ * const example = mssql.getDatabases({});
+ * export const databases = example.then(example => example.databases);
+ * ```
+ */
+export function getDatabasesOutput(opts?: pulumi.InvokeOptions): pulumi.Output {
+ return pulumi.output(getDatabases(opts))
+}
diff --git a/sdk/nodejs/getSchemas.ts b/sdk/nodejs/getSchemas.ts
index 1e03f0b..a5aec31 100644
--- a/sdk/nodejs/getSchemas.ts
+++ b/sdk/nodejs/getSchemas.ts
@@ -38,7 +38,7 @@ export function getSchemas(args?: GetSchemasArgs, opts?: pulumi.InvokeOptions):
*/
export interface GetSchemasArgs {
/**
- * ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
+ * ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('')`.
*/
databaseId?: string;
}
@@ -87,7 +87,7 @@ export function getSchemasOutput(args?: GetSchemasOutputArgs, opts?: pulumi.Invo
*/
export interface GetSchemasOutputArgs {
/**
- * ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
+ * ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('')`.
*/
databaseId?: pulumi.Input;
}
diff --git a/sdk/nodejs/getServerRole.ts b/sdk/nodejs/getServerRole.ts
index 6aab112..a0a26a3 100644
--- a/sdk/nodejs/getServerRole.ts
+++ b/sdk/nodejs/getServerRole.ts
@@ -38,11 +38,11 @@ export function getServerRole(args?: GetServerRoleArgs, opts?: pulumi.InvokeOpti
*/
export interface GetServerRoleArgs {
/**
- * Role principal ID. Either `name` or `id` must be provided.
+ * ID of the member principal
*/
id?: string;
/**
- * Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars. Either `name` or `id` must be provided.
+ * Name of the server principal
*/
name?: string;
}
@@ -94,11 +94,11 @@ export function getServerRoleOutput(args?: GetServerRoleOutputArgs, opts?: pulum
*/
export interface GetServerRoleOutputArgs {
/**
- * Role principal ID. Either `name` or `id` must be provided.
+ * ID of the member principal
*/
id?: pulumi.Input;
/**
- * Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars. Either `name` or `id` must be provided.
+ * Name of the server principal
*/
name?: pulumi.Input;
}
diff --git a/sdk/nodejs/getServerRoles.ts b/sdk/nodejs/getServerRoles.ts
index 39e13c1..e8a23c4 100644
--- a/sdk/nodejs/getServerRoles.ts
+++ b/sdk/nodejs/getServerRoles.ts
@@ -36,3 +36,19 @@ export interface GetServerRolesResult {
*/
readonly roles: outputs.GetServerRolesRole[];
}
+/**
+ * Obtains information about all roles defined in the server.
+ *
+ * ## Example Usage
+ *
+ * ```typescript
+ * import * as pulumi from "@pulumi/pulumi";
+ * import * as mssql from "@pulumi/mssql";
+ *
+ * const all = mssql.getServerRoles({});
+ * export const roles = all.then(all => all.roles);
+ * ```
+ */
+export function getServerRolesOutput(opts?: pulumi.InvokeOptions): pulumi.Output {
+ return pulumi.output(getServerRoles(opts))
+}
diff --git a/sdk/nodejs/getSqlLogins.ts b/sdk/nodejs/getSqlLogins.ts
index 501b073..00f350c 100644
--- a/sdk/nodejs/getSqlLogins.ts
+++ b/sdk/nodejs/getSqlLogins.ts
@@ -39,3 +39,19 @@ export interface GetSqlLoginsResult {
*/
readonly logins: outputs.GetSqlLoginsLogin[];
}
+/**
+ * Obtains information about all SQL logins found in SQL Server instance.
+ *
+ * ## Example Usage
+ *
+ * ```typescript
+ * import * as pulumi from "@pulumi/pulumi";
+ * import * as mssql from "@pulumi/mssql";
+ *
+ * const example = mssql.getSqlLogins({});
+ * export const databases = example.then(example => example.logins);
+ * ```
+ */
+export function getSqlLoginsOutput(opts?: pulumi.InvokeOptions): pulumi.Output {
+ return pulumi.output(getSqlLogins(opts))
+}
diff --git a/sdk/nodejs/getSqlUsers.ts b/sdk/nodejs/getSqlUsers.ts
index 847121e..aaae3be 100644
--- a/sdk/nodejs/getSqlUsers.ts
+++ b/sdk/nodejs/getSqlUsers.ts
@@ -38,7 +38,7 @@ export function getSqlUsers(args?: GetSqlUsersArgs, opts?: pulumi.InvokeOptions)
*/
export interface GetSqlUsersArgs {
/**
- * ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
+ * ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('')`.
*/
databaseId?: string;
}
@@ -87,7 +87,7 @@ export function getSqlUsersOutput(args?: GetSqlUsersOutputArgs, opts?: pulumi.In
*/
export interface GetSqlUsersOutputArgs {
/**
- * ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
+ * ID of database. Can be retrieved using `mssql.Database` or `SELECT DB_ID('')`.
*/
databaseId?: pulumi.Input;
}
diff --git a/sdk/nodejs/index.ts b/sdk/nodejs/index.ts
index c9082bd..300d582 100644
--- a/sdk/nodejs/index.ts
+++ b/sdk/nodejs/index.ts
@@ -67,7 +67,8 @@ utilities.lazyLoad(exports, ["getDatabaseRoles","getDatabaseRolesOutput"], () =>
export { GetDatabasesResult } from "./getDatabases";
export const getDatabases: typeof import("./getDatabases").getDatabases = null as any;
-utilities.lazyLoad(exports, ["getDatabases"], () => require("./getDatabases"));
+export const getDatabasesOutput: typeof import("./getDatabases").getDatabasesOutput = null as any;
+utilities.lazyLoad(exports, ["getDatabases","getDatabasesOutput"], () => require("./getDatabases"));
export { GetQueryArgs, GetQueryResult, GetQueryOutputArgs } from "./getQuery";
export const getQuery: typeof import("./getQuery").getQuery = null as any;
@@ -101,7 +102,8 @@ utilities.lazyLoad(exports, ["getServerRole","getServerRoleOutput"], () => requi
export { GetServerRolesResult } from "./getServerRoles";
export const getServerRoles: typeof import("./getServerRoles").getServerRoles = null as any;
-utilities.lazyLoad(exports, ["getServerRoles"], () => require("./getServerRoles"));
+export const getServerRolesOutput: typeof import("./getServerRoles").getServerRolesOutput = null as any;
+utilities.lazyLoad(exports, ["getServerRoles","getServerRolesOutput"], () => require("./getServerRoles"));
export { GetSqlLoginArgs, GetSqlLoginResult, GetSqlLoginOutputArgs } from "./getSqlLogin";
export const getSqlLogin: typeof import("./getSqlLogin").getSqlLogin = null as any;
@@ -110,7 +112,8 @@ utilities.lazyLoad(exports, ["getSqlLogin","getSqlLoginOutput"], () => require("
export { GetSqlLoginsResult } from "./getSqlLogins";
export const getSqlLogins: typeof import("./getSqlLogins").getSqlLogins = null as any;
-utilities.lazyLoad(exports, ["getSqlLogins"], () => require("./getSqlLogins"));
+export const getSqlLoginsOutput: typeof import("./getSqlLogins").getSqlLoginsOutput = null as any;
+utilities.lazyLoad(exports, ["getSqlLogins","getSqlLoginsOutput"], () => require("./getSqlLogins"));
export { GetSqlUserArgs, GetSqlUserResult, GetSqlUserOutputArgs } from "./getSqlUser";
export const getSqlUser: typeof import("./getSqlUser").getSqlUser = null as any;
diff --git a/sdk/nodejs/package.json b/sdk/nodejs/package.json
index 22af516..c83c51e 100644
--- a/sdk/nodejs/package.json
+++ b/sdk/nodejs/package.json
@@ -11,8 +11,7 @@
"repository": "https://github.com/pulumiverse/pulumi-mssql",
"license": "Apache-2.0",
"scripts": {
- "build": "tsc",
- "install": "node scripts/install-pulumi-plugin.js resource mssql ${VERSION}"
+ "build": "tsc"
},
"dependencies": {
"@pulumi/pulumi": "^3.0.0"
diff --git a/sdk/nodejs/provider.ts b/sdk/nodejs/provider.ts
index aa419c4..ecfd8af 100644
--- a/sdk/nodejs/provider.ts
+++ b/sdk/nodejs/provider.ts
@@ -24,7 +24,7 @@ export class Provider extends pulumi.ProviderResource {
if (obj === undefined || obj === null) {
return false;
}
- return obj['__pulumiType'] === Provider.__pulumiType;
+ return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
}
/**
diff --git a/sdk/nodejs/schema.ts b/sdk/nodejs/schema.ts
index 8fdb9d3..775265d 100644
--- a/sdk/nodejs/schema.ts
+++ b/sdk/nodejs/schema.ts
@@ -21,7 +21,6 @@ import * as utilities from "./utilities";
* name: "example_user",
* });
* const exampleSchema = new mssql.Schema("exampleSchema", {
- * name: "example",
* databaseId: exampleDatabase.then(exampleDatabase => exampleDatabase.id),
* ownerId: owner.then(owner => owner.id),
* });
@@ -83,7 +82,7 @@ export class Schema extends pulumi.CustomResource {
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
- constructor(name: string, args: SchemaArgs, opts?: pulumi.CustomResourceOptions)
+ constructor(name: string, args?: SchemaArgs, opts?: pulumi.CustomResourceOptions)
constructor(name: string, argsOrState?: SchemaArgs | SchemaState, opts?: pulumi.CustomResourceOptions) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
@@ -94,9 +93,6 @@ export class Schema extends pulumi.CustomResource {
resourceInputs["ownerId"] = state ? state.ownerId : undefined;
} else {
const args = argsOrState as SchemaArgs | undefined;
- if ((!args || args.name === undefined) && !opts.urn) {
- throw new Error("Missing required property 'name'");
- }
resourceInputs["databaseId"] = args ? args.databaseId : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["ownerId"] = args ? args.ownerId : undefined;
@@ -135,7 +131,7 @@ export interface SchemaArgs {
/**
* Schema name.
*/
- name: pulumi.Input;
+ name?: pulumi.Input;
/**
* ID of database role or user owning this schema. Can be retrieved using `mssql.DatabaseRole`, `mssql.SqlUser`, `mssql.AzureadUser` or `mssql.AzureadServicePrincipal`
*/
diff --git a/sdk/nodejs/scripts/install-pulumi-plugin.js b/sdk/nodejs/scripts/install-pulumi-plugin.js
deleted file mode 100644
index 7d6ebb7..0000000
--- a/sdk/nodejs/scripts/install-pulumi-plugin.js
+++ /dev/null
@@ -1,26 +0,0 @@
-"use strict";
-var childProcess = require("child_process");
-
-var args = process.argv.slice(2);
-
-if (args.indexOf("${VERSION}") !== -1) {
- process.exit(0);
-}
-
-var res = childProcess.spawnSync("pulumi", ["plugin", "install", "--server", "github://api.github.com/pulumiverse/pulumi-mssql"].concat(args), {
- stdio: ["ignore", "inherit", "inherit"]
-});
-
-if (res.error && res.error.code === "ENOENT") {
- console.error("\nThere was an error installing the resource provider plugin. " +
- "It looks like `pulumi` is not installed on your system. " +
- "Please visit https://pulumi.com/ to install the Pulumi CLI.\n" +
- "You may try manually installing the plugin by running " +
- "`pulumi plugin install " + args.join(" ") + "`");
-} else if (res.error || res.status !== 0) {
- console.error("\nThere was an error installing the resource provider plugin. " +
- "You may try to manually installing the plugin by running " +
- "`pulumi plugin install " + args.join(" ") + "`");
-}
-
-process.exit(0);
diff --git a/sdk/nodejs/serverRole.ts b/sdk/nodejs/serverRole.ts
index 9fe23fc..9daffba 100644
--- a/sdk/nodejs/serverRole.ts
+++ b/sdk/nodejs/serverRole.ts
@@ -13,11 +13,8 @@ import * as utilities from "./utilities";
* import * as pulumi from "@pulumi/pulumi";
* import * as mssql from "@pulumiverse/mssql";
*
- * const owner = new mssql.ServerRole("owner", {name: "owner_role"});
- * const example = new mssql.ServerRole("example", {
- * name: "example",
- * ownerId: owner.id,
- * });
+ * const owner = new mssql.ServerRole("owner", {});
+ * const example = new mssql.ServerRole("example", {ownerId: owner.id});
* ```
*
* ## Import
@@ -72,7 +69,7 @@ export class ServerRole extends pulumi.CustomResource {
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
- constructor(name: string, args: ServerRoleArgs, opts?: pulumi.CustomResourceOptions)
+ constructor(name: string, args?: ServerRoleArgs, opts?: pulumi.CustomResourceOptions)
constructor(name: string, argsOrState?: ServerRoleArgs | ServerRoleState, opts?: pulumi.CustomResourceOptions) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
@@ -82,9 +79,6 @@ export class ServerRole extends pulumi.CustomResource {
resourceInputs["ownerId"] = state ? state.ownerId : undefined;
} else {
const args = argsOrState as ServerRoleArgs | undefined;
- if ((!args || args.name === undefined) && !opts.urn) {
- throw new Error("Missing required property 'name'");
- }
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["ownerId"] = args ? args.ownerId : undefined;
}
@@ -114,7 +108,7 @@ export interface ServerRoleArgs {
/**
* Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars.
*/
- name: pulumi.Input;
+ name?: pulumi.Input;
/**
* ID of another server role or login owning this role. Can be retrieved using `mssql.ServerRole` or `mssql.SqlLogin`.
*/
diff --git a/sdk/nodejs/serverRoleMember.ts b/sdk/nodejs/serverRoleMember.ts
index dfebc40..4d6f833 100644
--- a/sdk/nodejs/serverRoleMember.ts
+++ b/sdk/nodejs/serverRoleMember.ts
@@ -17,7 +17,7 @@ import * as utilities from "./utilities";
* const member = mssql.getSqlLogin({
* name: "member_login",
* });
- * const exampleServerRole = new mssql.ServerRole("exampleServerRole", {name: "example"});
+ * const exampleServerRole = new mssql.ServerRole("exampleServerRole", {});
* const exampleServerRoleMember = new mssql.ServerRoleMember("exampleServerRoleMember", {
* roleId: exampleServerRole.id,
* memberId: member.then(member => member.id),
diff --git a/sdk/nodejs/sqlLogin.ts b/sdk/nodejs/sqlLogin.ts
index 03381c8..38eaffe 100644
--- a/sdk/nodejs/sqlLogin.ts
+++ b/sdk/nodejs/sqlLogin.ts
@@ -18,7 +18,6 @@ import * as utilities from "./utilities";
* name: "example",
* });
* const exampleSqlLogin = new mssql.SqlLogin("exampleSqlLogin", {
- * name: "example",
* password: "Str0ngPa$$word12",
* mustChangePassword: true,
* defaultDatabaseId: exampleDatabase.then(exampleDatabase => exampleDatabase.id),
@@ -128,9 +127,6 @@ export class SqlLogin extends pulumi.CustomResource {
resourceInputs["principalId"] = state ? state.principalId : undefined;
} else {
const args = argsOrState as SqlLoginArgs | undefined;
- if ((!args || args.name === undefined) && !opts.urn) {
- throw new Error("Missing required property 'name'");
- }
if ((!args || args.password === undefined) && !opts.urn) {
throw new Error("Missing required property 'password'");
}
@@ -229,7 +225,7 @@ export interface SqlLoginArgs {
/**
* Login name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot contain `\`
*/
- name: pulumi.Input;
+ name?: pulumi.Input;
/**
* Password for the login. Must follow strong password policies defined for SQL server. Passwords are case-sensitive, length must be 8-128 chars, can include all characters except `'` or `name`.
*/
diff --git a/sdk/nodejs/sqlUser.ts b/sdk/nodejs/sqlUser.ts
index 496cba2..f434763 100644
--- a/sdk/nodejs/sqlUser.ts
+++ b/sdk/nodejs/sqlUser.ts
@@ -18,7 +18,6 @@ import * as utilities from "./utilities";
* name: "example",
* });
* const exampleSqlLogin = new mssql.SqlLogin("exampleSqlLogin", {
- * name: "example",
* password: "Str0ngPa$$word12",
* mustChangePassword: true,
* defaultDatabaseId: exampleDatabase.then(exampleDatabase => exampleDatabase.id),
@@ -27,7 +26,6 @@ import * as utilities from "./utilities";
* checkPasswordPolicy: true,
* });
* const exampleSqlUser = new mssql.SqlUser("exampleSqlUser", {
- * name: "example",
* databaseId: exampleDatabase.then(exampleDatabase => exampleDatabase.id),
* loginId: exampleSqlLogin.id,
* });
@@ -104,9 +102,6 @@ export class SqlUser extends pulumi.CustomResource {
if ((!args || args.loginId === undefined) && !opts.urn) {
throw new Error("Missing required property 'loginId'");
}
- if ((!args || args.name === undefined) && !opts.urn) {
- throw new Error("Missing required property 'name'");
- }
resourceInputs["databaseId"] = args ? args.databaseId : undefined;
resourceInputs["loginId"] = args ? args.loginId : undefined;
resourceInputs["name"] = args ? args.name : undefined;
@@ -149,5 +144,5 @@ export interface SqlUserArgs {
/**
* User name. Cannot be longer than 128 chars.
*/
- name: pulumi.Input;
+ name?: pulumi.Input;
}
diff --git a/sdk/python/pulumiverse_mssql/azuread_service_principal.py b/sdk/python/pulumiverse_mssql/azuread_service_principal.py
index 7b03e1e..5c3492a 100644
--- a/sdk/python/pulumiverse_mssql/azuread_service_principal.py
+++ b/sdk/python/pulumiverse_mssql/azuread_service_principal.py
@@ -16,7 +16,7 @@ class AzureadServicePrincipalArgs:
def __init__(__self__, *,
client_id: pulumi.Input[str],
database_id: pulumi.Input[str],
- name: pulumi.Input[str]):
+ name: Optional[pulumi.Input[str]] = None):
"""
The set of arguments for constructing a AzureadServicePrincipal resource.
:param pulumi.Input[str] client_id: Azure AD client_id of the Service Principal. This can be either regular Service Principal or Managed Service Identity.
@@ -25,7 +25,8 @@ def __init__(__self__, *,
"""
pulumi.set(__self__, "client_id", client_id)
pulumi.set(__self__, "database_id", database_id)
- pulumi.set(__self__, "name", name)
+ if name is not None:
+ pulumi.set(__self__, "name", name)
@property
@pulumi.getter(name="clientId")
@@ -53,14 +54,14 @@ def database_id(self, value: pulumi.Input[str]):
@property
@pulumi.getter
- def name(self) -> pulumi.Input[str]:
+ def name(self) -> Optional[pulumi.Input[str]]:
"""
User name. Cannot be longer than 128 chars.
"""
return pulumi.get(self, "name")
@name.setter
- def name(self, value: pulumi.Input[str]):
+ def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@@ -145,7 +146,6 @@ def __init__(__self__,
example_database = mssql.get_database(name="example")
example_service_principal = azuread.get_service_principal(display_name="test-application")
example_azuread_service_principal = mssql.AzureadServicePrincipal("exampleAzureadServicePrincipal",
- name="example",
database_id=example_database.id,
client_id=example_service_principal.application_id)
pulumi.export("userId", example_azuread_service_principal.id)
@@ -187,7 +187,6 @@ def __init__(__self__,
example_database = mssql.get_database(name="example")
example_service_principal = azuread.get_service_principal(display_name="test-application")
example_azuread_service_principal = mssql.AzureadServicePrincipal("exampleAzureadServicePrincipal",
- name="example",
database_id=example_database.id,
client_id=example_service_principal.application_id)
pulumi.export("userId", example_azuread_service_principal.id)
@@ -234,8 +233,6 @@ def _internal_init(__self__,
if database_id is None and not opts.urn:
raise TypeError("Missing required property 'database_id'")
__props__.__dict__["database_id"] = database_id
- if name is None and not opts.urn:
- raise TypeError("Missing required property 'name'")
__props__.__dict__["name"] = name
super(AzureadServicePrincipal, __self__).__init__(
'mssql:index/azureadServicePrincipal:AzureadServicePrincipal',
diff --git a/sdk/python/pulumiverse_mssql/azuread_user.py b/sdk/python/pulumiverse_mssql/azuread_user.py
index 6e3590c..d940a8a 100644
--- a/sdk/python/pulumiverse_mssql/azuread_user.py
+++ b/sdk/python/pulumiverse_mssql/azuread_user.py
@@ -15,17 +15,18 @@
class AzureadUserArgs:
def __init__(__self__, *,
database_id: pulumi.Input[str],
- name: pulumi.Input[str],
- user_object_id: pulumi.Input[str]):
+ user_object_id: pulumi.Input[str],
+ name: Optional[pulumi.Input[str]] = None):
"""
The set of arguments for constructing a AzureadUser resource.
:param pulumi.Input[str] database_id: ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`.
- :param pulumi.Input[str] name: User name. Cannot be longer than 128 chars.
:param pulumi.Input[str] user_object_id: Azure AD object_id of the user. This can be either regular user or a group.
+ :param pulumi.Input[str] name: User name. Cannot be longer than 128 chars.
"""
pulumi.set(__self__, "database_id", database_id)
- pulumi.set(__self__, "name", name)
pulumi.set(__self__, "user_object_id", user_object_id)
+ if name is not None:
+ pulumi.set(__self__, "name", name)
@property
@pulumi.getter(name="databaseId")
@@ -39,18 +40,6 @@ def database_id(self) -> pulumi.Input[str]:
def database_id(self, value: pulumi.Input[str]):
pulumi.set(self, "database_id", value)
- @property
- @pulumi.getter
- def name(self) -> pulumi.Input[str]:
- """
- User name. Cannot be longer than 128 chars.
- """
- return pulumi.get(self, "name")
-
- @name.setter
- def name(self, value: pulumi.Input[str]):
- pulumi.set(self, "name", value)
-
@property
@pulumi.getter(name="userObjectId")
def user_object_id(self) -> pulumi.Input[str]:
@@ -63,6 +52,18 @@ def user_object_id(self) -> pulumi.Input[str]:
def user_object_id(self, value: pulumi.Input[str]):
pulumi.set(self, "user_object_id", value)
+ @property
+ @pulumi.getter
+ def name(self) -> Optional[pulumi.Input[str]]:
+ """
+ User name. Cannot be longer than 128 chars.
+ """
+ return pulumi.get(self, "name")
+
+ @name.setter
+ def name(self, value: Optional[pulumi.Input[str]]):
+ pulumi.set(self, "name", value)
+
@pulumi.input_type
class _AzureadUserState:
@@ -145,7 +146,6 @@ def __init__(__self__,
example_database = mssql.get_database(name="example")
example_user = azuread.get_user(user_principal_name="user@example.com")
example_azuread_user = mssql.AzureadUser("exampleAzureadUser",
- name="example",
database_id=example_database.id,
user_object_id=example_user.object_id)
pulumi.export("userId", example_azuread_user.id)
@@ -187,7 +187,6 @@ def __init__(__self__,
example_database = mssql.get_database(name="example")
example_user = azuread.get_user(user_principal_name="user@example.com")
example_azuread_user = mssql.AzureadUser("exampleAzureadUser",
- name="example",
database_id=example_database.id,
user_object_id=example_user.object_id)
pulumi.export("userId", example_azuread_user.id)
@@ -231,8 +230,6 @@ def _internal_init(__self__,
if database_id is None and not opts.urn:
raise TypeError("Missing required property 'database_id'")
__props__.__dict__["database_id"] = database_id
- if name is None and not opts.urn:
- raise TypeError("Missing required property 'name'")
__props__.__dict__["name"] = name
if user_object_id is None and not opts.urn:
raise TypeError("Missing required property 'user_object_id'")
diff --git a/sdk/python/pulumiverse_mssql/database.py b/sdk/python/pulumiverse_mssql/database.py
index acc0ca9..6cf8fe6 100644
--- a/sdk/python/pulumiverse_mssql/database.py
+++ b/sdk/python/pulumiverse_mssql/database.py
@@ -14,28 +14,17 @@
@pulumi.input_type
class DatabaseArgs:
def __init__(__self__, *,
- name: pulumi.Input[str],
- collation: Optional[pulumi.Input[str]] = None):
+ collation: Optional[pulumi.Input[str]] = None,
+ name: Optional[pulumi.Input[str]] = None):
"""
The set of arguments for constructing a Database resource.
- :param pulumi.Input[str] name: Database name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers).
:param pulumi.Input[str] collation: Default collation name. Can be either a Windows collation name or a SQL collation name. Defaults to SQL Server instance's default collation.
+ :param pulumi.Input[str] name: Database name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers).
"""
- pulumi.set(__self__, "name", name)
if collation is not None:
pulumi.set(__self__, "collation", collation)
-
- @property
- @pulumi.getter
- def name(self) -> pulumi.Input[str]:
- """
- Database name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers).
- """
- return pulumi.get(self, "name")
-
- @name.setter
- def name(self, value: pulumi.Input[str]):
- pulumi.set(self, "name", value)
+ if name is not None:
+ pulumi.set(__self__, "name", name)
@property
@pulumi.getter
@@ -49,6 +38,18 @@ def collation(self) -> Optional[pulumi.Input[str]]:
def collation(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "collation", value)
+ @property
+ @pulumi.getter
+ def name(self) -> Optional[pulumi.Input[str]]:
+ """
+ Database name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers).
+ """
+ return pulumi.get(self, "name")
+
+ @name.setter
+ def name(self, value: Optional[pulumi.Input[str]]):
+ pulumi.set(self, "name", value)
+
@pulumi.input_type
class _DatabaseState:
@@ -107,9 +108,7 @@ def __init__(__self__,
import pulumi
import pulumiverse_mssql as mssql
- example = mssql.Database("example",
- collation="SQL_Latin1_General_CP1_CS_AS",
- name="example")
+ example = mssql.Database("example", collation="SQL_Latin1_General_CP1_CS_AS")
```
## Import
@@ -129,7 +128,7 @@ def __init__(__self__,
@overload
def __init__(__self__,
resource_name: str,
- args: DatabaseArgs,
+ args: Optional[DatabaseArgs] = None,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Manages single database.
@@ -140,9 +139,7 @@ def __init__(__self__,
import pulumi
import pulumiverse_mssql as mssql
- example = mssql.Database("example",
- collation="SQL_Latin1_General_CP1_CS_AS",
- name="example")
+ example = mssql.Database("example", collation="SQL_Latin1_General_CP1_CS_AS")
```
## Import
@@ -180,8 +177,6 @@ def _internal_init(__self__,
__props__ = DatabaseArgs.__new__(DatabaseArgs)
__props__.__dict__["collation"] = collation
- if name is None and not opts.urn:
- raise TypeError("Missing required property 'name'")
__props__.__dict__["name"] = name
super(Database, __self__).__init__(
'mssql:index/database:Database',
diff --git a/sdk/python/pulumiverse_mssql/database_role.py b/sdk/python/pulumiverse_mssql/database_role.py
index 213a016..b8302ab 100644
--- a/sdk/python/pulumiverse_mssql/database_role.py
+++ b/sdk/python/pulumiverse_mssql/database_role.py
@@ -14,34 +14,23 @@
@pulumi.input_type
class DatabaseRoleArgs:
def __init__(__self__, *,
- name: pulumi.Input[str],
database_id: Optional[pulumi.Input[str]] = None,
+ name: Optional[pulumi.Input[str]] = None,
owner_id: Optional[pulumi.Input[str]] = None):
"""
The set of arguments for constructing a DatabaseRole resource.
- :param pulumi.Input[str] name: Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars.
:param pulumi.Input[str] database_id: ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
+ :param pulumi.Input[str] name: Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars.
:param pulumi.Input[str] owner_id: ID of another database role or user owning this role. Can be retrieved using `mssql_database_role` or `mssql_sql_user`.
Defaults to ID of current user, used to authorize the Terraform provider.
"""
- pulumi.set(__self__, "name", name)
if database_id is not None:
pulumi.set(__self__, "database_id", database_id)
+ if name is not None:
+ pulumi.set(__self__, "name", name)
if owner_id is not None:
pulumi.set(__self__, "owner_id", owner_id)
- @property
- @pulumi.getter
- def name(self) -> pulumi.Input[str]:
- """
- Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars.
- """
- return pulumi.get(self, "name")
-
- @name.setter
- def name(self, value: pulumi.Input[str]):
- pulumi.set(self, "name", value)
-
@property
@pulumi.getter(name="databaseId")
def database_id(self) -> Optional[pulumi.Input[str]]:
@@ -54,6 +43,18 @@ def database_id(self) -> Optional[pulumi.Input[str]]:
def database_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "database_id", value)
+ @property
+ @pulumi.getter
+ def name(self) -> Optional[pulumi.Input[str]]:
+ """
+ Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars.
+ """
+ return pulumi.get(self, "name")
+
+ @name.setter
+ def name(self, value: Optional[pulumi.Input[str]]):
+ pulumi.set(self, "name", value)
+
@property
@pulumi.getter(name="ownerId")
def owner_id(self) -> Optional[pulumi.Input[str]]:
@@ -148,7 +149,6 @@ def __init__(__self__,
example_database = mssql.get_database(name="example")
owner = mssql.get_sql_user(name="example_user")
example_database_role = mssql.DatabaseRole("exampleDatabaseRole",
- name="example",
database_id=example_database.id,
owner_id=owner.id)
```
@@ -172,7 +172,7 @@ def __init__(__self__,
@overload
def __init__(__self__,
resource_name: str,
- args: DatabaseRoleArgs,
+ args: Optional[DatabaseRoleArgs] = None,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Manages database-level role.
@@ -187,7 +187,6 @@ def __init__(__self__,
example_database = mssql.get_database(name="example")
owner = mssql.get_sql_user(name="example_user")
example_database_role = mssql.DatabaseRole("exampleDatabaseRole",
- name="example",
database_id=example_database.id,
owner_id=owner.id)
```
@@ -228,8 +227,6 @@ def _internal_init(__self__,
__props__ = DatabaseRoleArgs.__new__(DatabaseRoleArgs)
__props__.__dict__["database_id"] = database_id
- if name is None and not opts.urn:
- raise TypeError("Missing required property 'name'")
__props__.__dict__["name"] = name
__props__.__dict__["owner_id"] = owner_id
super(DatabaseRole, __self__).__init__(
diff --git a/sdk/python/pulumiverse_mssql/database_role_member.py b/sdk/python/pulumiverse_mssql/database_role_member.py
index b833476..d9da7c3 100644
--- a/sdk/python/pulumiverse_mssql/database_role_member.py
+++ b/sdk/python/pulumiverse_mssql/database_role_member.py
@@ -113,7 +113,6 @@ def __init__(__self__,
member = mssql.get_sql_user(name="member_user",
database_id=example_database.id)
example_database_role = mssql.DatabaseRole("exampleDatabaseRole",
- name="example",
database_id=example_database.id,
owner_id=owner.id)
example_database_role_member = mssql.DatabaseRoleMember("exampleDatabaseRoleMember",
@@ -156,7 +155,6 @@ def __init__(__self__,
member = mssql.get_sql_user(name="member_user",
database_id=example_database.id)
example_database_role = mssql.DatabaseRole("exampleDatabaseRole",
- name="example",
database_id=example_database.id,
owner_id=owner.id)
example_database_role_member = mssql.DatabaseRoleMember("exampleDatabaseRoleMember",
diff --git a/sdk/python/pulumiverse_mssql/get_azuread_service_principal.py b/sdk/python/pulumiverse_mssql/get_azuread_service_principal.py
index 0e92bb2..798dc96 100644
--- a/sdk/python/pulumiverse_mssql/get_azuread_service_principal.py
+++ b/sdk/python/pulumiverse_mssql/get_azuread_service_principal.py
@@ -112,10 +112,10 @@ def get_azuread_service_principal(client_id: Optional[str] = None,
__ret__ = pulumi.runtime.invoke('mssql:index/getAzureadServicePrincipal:getAzureadServicePrincipal', __args__, opts=opts, typ=GetAzureadServicePrincipalResult).value
return AwaitableGetAzureadServicePrincipalResult(
- client_id=__ret__.client_id,
- database_id=__ret__.database_id,
- id=__ret__.id,
- name=__ret__.name)
+ client_id=pulumi.get(__ret__, 'client_id'),
+ database_id=pulumi.get(__ret__, 'database_id'),
+ id=pulumi.get(__ret__, 'id'),
+ name=pulumi.get(__ret__, 'name'))
@_utilities.lift_output_func(get_azuread_service_principal)
diff --git a/sdk/python/pulumiverse_mssql/get_azuread_user.py b/sdk/python/pulumiverse_mssql/get_azuread_user.py
index 1417b41..0662875 100644
--- a/sdk/python/pulumiverse_mssql/get_azuread_user.py
+++ b/sdk/python/pulumiverse_mssql/get_azuread_user.py
@@ -112,10 +112,10 @@ def get_azuread_user(database_id: Optional[str] = None,
__ret__ = pulumi.runtime.invoke('mssql:index/getAzureadUser:getAzureadUser', __args__, opts=opts, typ=GetAzureadUserResult).value
return AwaitableGetAzureadUserResult(
- database_id=__ret__.database_id,
- id=__ret__.id,
- name=__ret__.name,
- user_object_id=__ret__.user_object_id)
+ database_id=pulumi.get(__ret__, 'database_id'),
+ id=pulumi.get(__ret__, 'id'),
+ name=pulumi.get(__ret__, 'name'),
+ user_object_id=pulumi.get(__ret__, 'user_object_id'))
@_utilities.lift_output_func(get_azuread_user)
diff --git a/sdk/python/pulumiverse_mssql/get_database.py b/sdk/python/pulumiverse_mssql/get_database.py
index 6f9a843..4471339 100644
--- a/sdk/python/pulumiverse_mssql/get_database.py
+++ b/sdk/python/pulumiverse_mssql/get_database.py
@@ -93,9 +93,9 @@ def get_database(name: Optional[str] = None,
__ret__ = pulumi.runtime.invoke('mssql:index/getDatabase:getDatabase', __args__, opts=opts, typ=GetDatabaseResult).value
return AwaitableGetDatabaseResult(
- collation=__ret__.collation,
- id=__ret__.id,
- name=__ret__.name)
+ collation=pulumi.get(__ret__, 'collation'),
+ id=pulumi.get(__ret__, 'id'),
+ name=pulumi.get(__ret__, 'name'))
@_utilities.lift_output_func(get_database)
diff --git a/sdk/python/pulumiverse_mssql/get_database_permissions.py b/sdk/python/pulumiverse_mssql/get_database_permissions.py
index 2f2fd5f..dee11ac 100644
--- a/sdk/python/pulumiverse_mssql/get_database_permissions.py
+++ b/sdk/python/pulumiverse_mssql/get_database_permissions.py
@@ -96,9 +96,9 @@ def get_database_permissions(principal_id: Optional[str] = None,
__ret__ = pulumi.runtime.invoke('mssql:index/getDatabasePermissions:getDatabasePermissions', __args__, opts=opts, typ=GetDatabasePermissionsResult).value
return AwaitableGetDatabasePermissionsResult(
- id=__ret__.id,
- permissions=__ret__.permissions,
- principal_id=__ret__.principal_id)
+ id=pulumi.get(__ret__, 'id'),
+ permissions=pulumi.get(__ret__, 'permissions'),
+ principal_id=pulumi.get(__ret__, 'principal_id'))
@_utilities.lift_output_func(get_database_permissions)
diff --git a/sdk/python/pulumiverse_mssql/get_database_role.py b/sdk/python/pulumiverse_mssql/get_database_role.py
index 3dfd66f..1d708e9 100644
--- a/sdk/python/pulumiverse_mssql/get_database_role.py
+++ b/sdk/python/pulumiverse_mssql/get_database_role.py
@@ -113,7 +113,7 @@ def get_database_role(database_id: Optional[str] = None,
:param str database_id: ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
- :param str name: Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars.
+ :param str name: Name of the database principal.
"""
__args__ = dict()
__args__['databaseId'] = database_id
@@ -122,11 +122,11 @@ def get_database_role(database_id: Optional[str] = None,
__ret__ = pulumi.runtime.invoke('mssql:index/getDatabaseRole:getDatabaseRole', __args__, opts=opts, typ=GetDatabaseRoleResult).value
return AwaitableGetDatabaseRoleResult(
- database_id=__ret__.database_id,
- id=__ret__.id,
- members=__ret__.members,
- name=__ret__.name,
- owner_id=__ret__.owner_id)
+ database_id=pulumi.get(__ret__, 'database_id'),
+ id=pulumi.get(__ret__, 'id'),
+ members=pulumi.get(__ret__, 'members'),
+ name=pulumi.get(__ret__, 'name'),
+ owner_id=pulumi.get(__ret__, 'owner_id'))
@_utilities.lift_output_func(get_database_role)
@@ -150,6 +150,6 @@ def get_database_role_output(database_id: Optional[pulumi.Input[Optional[str]]]
:param str database_id: ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
- :param str name: Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars.
+ :param str name: Name of the database principal.
"""
...
diff --git a/sdk/python/pulumiverse_mssql/get_database_roles.py b/sdk/python/pulumiverse_mssql/get_database_roles.py
index 35090f6..a289005 100644
--- a/sdk/python/pulumiverse_mssql/get_database_roles.py
+++ b/sdk/python/pulumiverse_mssql/get_database_roles.py
@@ -86,7 +86,7 @@ def get_database_roles(database_id: Optional[str] = None,
```
- :param str database_id: ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
+ :param str database_id: ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`.
"""
__args__ = dict()
__args__['databaseId'] = database_id
@@ -94,9 +94,9 @@ def get_database_roles(database_id: Optional[str] = None,
__ret__ = pulumi.runtime.invoke('mssql:index/getDatabaseRoles:getDatabaseRoles', __args__, opts=opts, typ=GetDatabaseRolesResult).value
return AwaitableGetDatabaseRolesResult(
- database_id=__ret__.database_id,
- id=__ret__.id,
- roles=__ret__.roles)
+ database_id=pulumi.get(__ret__, 'database_id'),
+ id=pulumi.get(__ret__, 'id'),
+ roles=pulumi.get(__ret__, 'roles'))
@_utilities.lift_output_func(get_database_roles)
@@ -117,6 +117,6 @@ def get_database_roles_output(database_id: Optional[pulumi.Input[Optional[str]]]
```
- :param str database_id: ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
+ :param str database_id: ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`.
"""
...
diff --git a/sdk/python/pulumiverse_mssql/get_databases.py b/sdk/python/pulumiverse_mssql/get_databases.py
index 87ade55..bd79100 100644
--- a/sdk/python/pulumiverse_mssql/get_databases.py
+++ b/sdk/python/pulumiverse_mssql/get_databases.py
@@ -14,6 +14,7 @@
'GetDatabasesResult',
'AwaitableGetDatabasesResult',
'get_databases',
+ 'get_databases_output',
]
@pulumi.output_type
@@ -75,5 +76,23 @@ def get_databases(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDa
__ret__ = pulumi.runtime.invoke('mssql:index/getDatabases:getDatabases', __args__, opts=opts, typ=GetDatabasesResult).value
return AwaitableGetDatabasesResult(
- databases=__ret__.databases,
- id=__ret__.id)
+ databases=pulumi.get(__ret__, 'databases'),
+ id=pulumi.get(__ret__, 'id'))
+
+
+@_utilities.lift_output_func(get_databases)
+def get_databases_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatabasesResult]:
+ """
+ Obtains information about all databases found in SQL Server instance.
+
+ ## Example Usage
+
+ ```python
+ import pulumi
+ import pulumi_mssql as mssql
+
+ example = mssql.get_databases()
+ pulumi.export("databases", example.databases)
+ ```
+ """
+ ...
diff --git a/sdk/python/pulumiverse_mssql/get_query.py b/sdk/python/pulumiverse_mssql/get_query.py
index adac4f3..97bbde6 100644
--- a/sdk/python/pulumiverse_mssql/get_query.py
+++ b/sdk/python/pulumiverse_mssql/get_query.py
@@ -108,10 +108,10 @@ def get_query(database_id: Optional[str] = None,
__ret__ = pulumi.runtime.invoke('mssql:index/getQuery:getQuery', __args__, opts=opts, typ=GetQueryResult).value
return AwaitableGetQueryResult(
- database_id=__ret__.database_id,
- id=__ret__.id,
- query=__ret__.query,
- results=__ret__.results)
+ database_id=pulumi.get(__ret__, 'database_id'),
+ id=pulumi.get(__ret__, 'id'),
+ query=pulumi.get(__ret__, 'query'),
+ results=pulumi.get(__ret__, 'results'))
@_utilities.lift_output_func(get_query)
diff --git a/sdk/python/pulumiverse_mssql/get_schema.py b/sdk/python/pulumiverse_mssql/get_schema.py
index 191a353..c41f56e 100644
--- a/sdk/python/pulumiverse_mssql/get_schema.py
+++ b/sdk/python/pulumiverse_mssql/get_schema.py
@@ -111,10 +111,10 @@ def get_schema(database_id: Optional[str] = None,
__ret__ = pulumi.runtime.invoke('mssql:index/getSchema:getSchema', __args__, opts=opts, typ=GetSchemaResult).value
return AwaitableGetSchemaResult(
- database_id=__ret__.database_id,
- id=__ret__.id,
- name=__ret__.name,
- owner_id=__ret__.owner_id)
+ database_id=pulumi.get(__ret__, 'database_id'),
+ id=pulumi.get(__ret__, 'id'),
+ name=pulumi.get(__ret__, 'name'),
+ owner_id=pulumi.get(__ret__, 'owner_id'))
@_utilities.lift_output_func(get_schema)
diff --git a/sdk/python/pulumiverse_mssql/get_schema_permissions.py b/sdk/python/pulumiverse_mssql/get_schema_permissions.py
index 1173dbf..c36f9ea 100644
--- a/sdk/python/pulumiverse_mssql/get_schema_permissions.py
+++ b/sdk/python/pulumiverse_mssql/get_schema_permissions.py
@@ -114,10 +114,10 @@ def get_schema_permissions(principal_id: Optional[str] = None,
__ret__ = pulumi.runtime.invoke('mssql:index/getSchemaPermissions:getSchemaPermissions', __args__, opts=opts, typ=GetSchemaPermissionsResult).value
return AwaitableGetSchemaPermissionsResult(
- id=__ret__.id,
- permissions=__ret__.permissions,
- principal_id=__ret__.principal_id,
- schema_id=__ret__.schema_id)
+ id=pulumi.get(__ret__, 'id'),
+ permissions=pulumi.get(__ret__, 'permissions'),
+ principal_id=pulumi.get(__ret__, 'principal_id'),
+ schema_id=pulumi.get(__ret__, 'schema_id'))
@_utilities.lift_output_func(get_schema_permissions)
diff --git a/sdk/python/pulumiverse_mssql/get_schemas.py b/sdk/python/pulumiverse_mssql/get_schemas.py
index a50c078..35ceb18 100644
--- a/sdk/python/pulumiverse_mssql/get_schemas.py
+++ b/sdk/python/pulumiverse_mssql/get_schemas.py
@@ -86,7 +86,7 @@ def get_schemas(database_id: Optional[str] = None,
```
- :param str database_id: ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
+ :param str database_id: ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`.
"""
__args__ = dict()
__args__['databaseId'] = database_id
@@ -94,9 +94,9 @@ def get_schemas(database_id: Optional[str] = None,
__ret__ = pulumi.runtime.invoke('mssql:index/getSchemas:getSchemas', __args__, opts=opts, typ=GetSchemasResult).value
return AwaitableGetSchemasResult(
- database_id=__ret__.database_id,
- id=__ret__.id,
- schemas=__ret__.schemas)
+ database_id=pulumi.get(__ret__, 'database_id'),
+ id=pulumi.get(__ret__, 'id'),
+ schemas=pulumi.get(__ret__, 'schemas'))
@_utilities.lift_output_func(get_schemas)
@@ -117,6 +117,6 @@ def get_schemas_output(database_id: Optional[pulumi.Input[Optional[str]]] = None
```
- :param str database_id: ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
+ :param str database_id: ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`.
"""
...
diff --git a/sdk/python/pulumiverse_mssql/get_server_permissions.py b/sdk/python/pulumiverse_mssql/get_server_permissions.py
index d7cc7b2..de55eef 100644
--- a/sdk/python/pulumiverse_mssql/get_server_permissions.py
+++ b/sdk/python/pulumiverse_mssql/get_server_permissions.py
@@ -94,9 +94,9 @@ def get_server_permissions(principal_id: Optional[str] = None,
__ret__ = pulumi.runtime.invoke('mssql:index/getServerPermissions:getServerPermissions', __args__, opts=opts, typ=GetServerPermissionsResult).value
return AwaitableGetServerPermissionsResult(
- id=__ret__.id,
- permissions=__ret__.permissions,
- principal_id=__ret__.principal_id)
+ id=pulumi.get(__ret__, 'id'),
+ permissions=pulumi.get(__ret__, 'permissions'),
+ principal_id=pulumi.get(__ret__, 'principal_id'))
@_utilities.lift_output_func(get_server_permissions)
diff --git a/sdk/python/pulumiverse_mssql/get_server_role.py b/sdk/python/pulumiverse_mssql/get_server_role.py
index d767dd3..2c6f57e 100644
--- a/sdk/python/pulumiverse_mssql/get_server_role.py
+++ b/sdk/python/pulumiverse_mssql/get_server_role.py
@@ -98,8 +98,8 @@ def get_server_role(id: Optional[str] = None,
```
- :param str id: Role principal ID. Either `name` or `id` must be provided.
- :param str name: Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars. Either `name` or `id` must be provided.
+ :param str id: ID of the member principal
+ :param str name: Name of the server principal
"""
__args__ = dict()
__args__['id'] = id
@@ -108,10 +108,10 @@ def get_server_role(id: Optional[str] = None,
__ret__ = pulumi.runtime.invoke('mssql:index/getServerRole:getServerRole', __args__, opts=opts, typ=GetServerRoleResult).value
return AwaitableGetServerRoleResult(
- id=__ret__.id,
- members=__ret__.members,
- name=__ret__.name,
- owner_id=__ret__.owner_id)
+ id=pulumi.get(__ret__, 'id'),
+ members=pulumi.get(__ret__, 'members'),
+ name=pulumi.get(__ret__, 'name'),
+ owner_id=pulumi.get(__ret__, 'owner_id'))
@_utilities.lift_output_func(get_server_role)
@@ -132,7 +132,7 @@ def get_server_role_output(id: Optional[pulumi.Input[Optional[str]]] = None,
```
- :param str id: Role principal ID. Either `name` or `id` must be provided.
- :param str name: Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars. Either `name` or `id` must be provided.
+ :param str id: ID of the member principal
+ :param str name: Name of the server principal
"""
...
diff --git a/sdk/python/pulumiverse_mssql/get_server_roles.py b/sdk/python/pulumiverse_mssql/get_server_roles.py
index ed7fd57..f4b7504 100644
--- a/sdk/python/pulumiverse_mssql/get_server_roles.py
+++ b/sdk/python/pulumiverse_mssql/get_server_roles.py
@@ -14,6 +14,7 @@
'GetServerRolesResult',
'AwaitableGetServerRolesResult',
'get_server_roles',
+ 'get_server_roles_output',
]
@pulumi.output_type
@@ -72,5 +73,23 @@ def get_server_roles(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGe
__ret__ = pulumi.runtime.invoke('mssql:index/getServerRoles:getServerRoles', __args__, opts=opts, typ=GetServerRolesResult).value
return AwaitableGetServerRolesResult(
- id=__ret__.id,
- roles=__ret__.roles)
+ id=pulumi.get(__ret__, 'id'),
+ roles=pulumi.get(__ret__, 'roles'))
+
+
+@_utilities.lift_output_func(get_server_roles)
+def get_server_roles_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetServerRolesResult]:
+ """
+ Obtains information about all roles defined in the server.
+
+ ## Example Usage
+
+ ```python
+ import pulumi
+ import pulumi_mssql as mssql
+
+ all = mssql.get_server_roles()
+ pulumi.export("roles", all.roles)
+ ```
+ """
+ ...
diff --git a/sdk/python/pulumiverse_mssql/get_sql_login.py b/sdk/python/pulumiverse_mssql/get_sql_login.py
index 5c37fec..32d4607 100644
--- a/sdk/python/pulumiverse_mssql/get_sql_login.py
+++ b/sdk/python/pulumiverse_mssql/get_sql_login.py
@@ -153,14 +153,14 @@ def get_sql_login(name: Optional[str] = None,
__ret__ = pulumi.runtime.invoke('mssql:index/getSqlLogin:getSqlLogin', __args__, opts=opts, typ=GetSqlLoginResult).value
return AwaitableGetSqlLoginResult(
- check_password_expiration=__ret__.check_password_expiration,
- check_password_policy=__ret__.check_password_policy,
- default_database_id=__ret__.default_database_id,
- default_language=__ret__.default_language,
- id=__ret__.id,
- must_change_password=__ret__.must_change_password,
- name=__ret__.name,
- principal_id=__ret__.principal_id)
+ check_password_expiration=pulumi.get(__ret__, 'check_password_expiration'),
+ check_password_policy=pulumi.get(__ret__, 'check_password_policy'),
+ default_database_id=pulumi.get(__ret__, 'default_database_id'),
+ default_language=pulumi.get(__ret__, 'default_language'),
+ id=pulumi.get(__ret__, 'id'),
+ must_change_password=pulumi.get(__ret__, 'must_change_password'),
+ name=pulumi.get(__ret__, 'name'),
+ principal_id=pulumi.get(__ret__, 'principal_id'))
@_utilities.lift_output_func(get_sql_login)
diff --git a/sdk/python/pulumiverse_mssql/get_sql_logins.py b/sdk/python/pulumiverse_mssql/get_sql_logins.py
index f960bce..86b6fcf 100644
--- a/sdk/python/pulumiverse_mssql/get_sql_logins.py
+++ b/sdk/python/pulumiverse_mssql/get_sql_logins.py
@@ -14,6 +14,7 @@
'GetSqlLoginsResult',
'AwaitableGetSqlLoginsResult',
'get_sql_logins',
+ 'get_sql_logins_output',
]
@pulumi.output_type
@@ -75,5 +76,23 @@ def get_sql_logins(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetS
__ret__ = pulumi.runtime.invoke('mssql:index/getSqlLogins:getSqlLogins', __args__, opts=opts, typ=GetSqlLoginsResult).value
return AwaitableGetSqlLoginsResult(
- id=__ret__.id,
- logins=__ret__.logins)
+ id=pulumi.get(__ret__, 'id'),
+ logins=pulumi.get(__ret__, 'logins'))
+
+
+@_utilities.lift_output_func(get_sql_logins)
+def get_sql_logins_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSqlLoginsResult]:
+ """
+ Obtains information about all SQL logins found in SQL Server instance.
+
+ ## Example Usage
+
+ ```python
+ import pulumi
+ import pulumi_mssql as mssql
+
+ example = mssql.get_sql_logins()
+ pulumi.export("databases", example.logins)
+ ```
+ """
+ ...
diff --git a/sdk/python/pulumiverse_mssql/get_sql_user.py b/sdk/python/pulumiverse_mssql/get_sql_user.py
index 8e39436..c166f3c 100644
--- a/sdk/python/pulumiverse_mssql/get_sql_user.py
+++ b/sdk/python/pulumiverse_mssql/get_sql_user.py
@@ -109,10 +109,10 @@ def get_sql_user(database_id: Optional[str] = None,
__ret__ = pulumi.runtime.invoke('mssql:index/getSqlUser:getSqlUser', __args__, opts=opts, typ=GetSqlUserResult).value
return AwaitableGetSqlUserResult(
- database_id=__ret__.database_id,
- id=__ret__.id,
- login_id=__ret__.login_id,
- name=__ret__.name)
+ database_id=pulumi.get(__ret__, 'database_id'),
+ id=pulumi.get(__ret__, 'id'),
+ login_id=pulumi.get(__ret__, 'login_id'),
+ name=pulumi.get(__ret__, 'name'))
@_utilities.lift_output_func(get_sql_user)
diff --git a/sdk/python/pulumiverse_mssql/get_sql_users.py b/sdk/python/pulumiverse_mssql/get_sql_users.py
index 8b31dee..dd6349a 100644
--- a/sdk/python/pulumiverse_mssql/get_sql_users.py
+++ b/sdk/python/pulumiverse_mssql/get_sql_users.py
@@ -86,7 +86,7 @@ def get_sql_users(database_id: Optional[str] = None,
```
- :param str database_id: ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
+ :param str database_id: ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`.
"""
__args__ = dict()
__args__['databaseId'] = database_id
@@ -94,9 +94,9 @@ def get_sql_users(database_id: Optional[str] = None,
__ret__ = pulumi.runtime.invoke('mssql:index/getSqlUsers:getSqlUsers', __args__, opts=opts, typ=GetSqlUsersResult).value
return AwaitableGetSqlUsersResult(
- database_id=__ret__.database_id,
- id=__ret__.id,
- users=__ret__.users)
+ database_id=pulumi.get(__ret__, 'database_id'),
+ id=pulumi.get(__ret__, 'id'),
+ users=pulumi.get(__ret__, 'users'))
@_utilities.lift_output_func(get_sql_users)
@@ -117,6 +117,6 @@ def get_sql_users_output(database_id: Optional[pulumi.Input[Optional[str]]] = No
```
- :param str database_id: ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
+ :param str database_id: ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`.
"""
...
diff --git a/sdk/python/pulumiverse_mssql/schema.py b/sdk/python/pulumiverse_mssql/schema.py
index 57d7fbc..af61d73 100644
--- a/sdk/python/pulumiverse_mssql/schema.py
+++ b/sdk/python/pulumiverse_mssql/schema.py
@@ -14,33 +14,22 @@
@pulumi.input_type
class SchemaArgs:
def __init__(__self__, *,
- name: pulumi.Input[str],
database_id: Optional[pulumi.Input[str]] = None,
+ name: Optional[pulumi.Input[str]] = None,
owner_id: Optional[pulumi.Input[str]] = None):
"""
The set of arguments for constructing a Schema resource.
- :param pulumi.Input[str] name: Schema name.
:param pulumi.Input[str] database_id: ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
+ :param pulumi.Input[str] name: Schema name.
:param pulumi.Input[str] owner_id: ID of database role or user owning this schema. Can be retrieved using `DatabaseRole`, `SqlUser`, `AzureadUser` or `AzureadServicePrincipal`
"""
- pulumi.set(__self__, "name", name)
if database_id is not None:
pulumi.set(__self__, "database_id", database_id)
+ if name is not None:
+ pulumi.set(__self__, "name", name)
if owner_id is not None:
pulumi.set(__self__, "owner_id", owner_id)
- @property
- @pulumi.getter
- def name(self) -> pulumi.Input[str]:
- """
- Schema name.
- """
- return pulumi.get(self, "name")
-
- @name.setter
- def name(self, value: pulumi.Input[str]):
- pulumi.set(self, "name", value)
-
@property
@pulumi.getter(name="databaseId")
def database_id(self) -> Optional[pulumi.Input[str]]:
@@ -53,6 +42,18 @@ def database_id(self) -> Optional[pulumi.Input[str]]:
def database_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "database_id", value)
+ @property
+ @pulumi.getter
+ def name(self) -> Optional[pulumi.Input[str]]:
+ """
+ Schema name.
+ """
+ return pulumi.get(self, "name")
+
+ @name.setter
+ def name(self, value: Optional[pulumi.Input[str]]):
+ pulumi.set(self, "name", value)
+
@property
@pulumi.getter(name="ownerId")
def owner_id(self) -> Optional[pulumi.Input[str]]:
@@ -144,7 +145,6 @@ def __init__(__self__,
example_database = mssql.get_database(name="example")
owner = mssql.get_sql_user(name="example_user")
example_schema = mssql.Schema("exampleSchema",
- name="example",
database_id=example_database.id,
owner_id=owner.id)
```
@@ -167,7 +167,7 @@ def __init__(__self__,
@overload
def __init__(__self__,
resource_name: str,
- args: SchemaArgs,
+ args: Optional[SchemaArgs] = None,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Manages single DB schema.
@@ -182,7 +182,6 @@ def __init__(__self__,
example_database = mssql.get_database(name="example")
owner = mssql.get_sql_user(name="example_user")
example_schema = mssql.Schema("exampleSchema",
- name="example",
database_id=example_database.id,
owner_id=owner.id)
```
@@ -223,8 +222,6 @@ def _internal_init(__self__,
__props__ = SchemaArgs.__new__(SchemaArgs)
__props__.__dict__["database_id"] = database_id
- if name is None and not opts.urn:
- raise TypeError("Missing required property 'name'")
__props__.__dict__["name"] = name
__props__.__dict__["owner_id"] = owner_id
super(Schema, __self__).__init__(
diff --git a/sdk/python/pulumiverse_mssql/server_role.py b/sdk/python/pulumiverse_mssql/server_role.py
index 957f43e..c6e2339 100644
--- a/sdk/python/pulumiverse_mssql/server_role.py
+++ b/sdk/python/pulumiverse_mssql/server_role.py
@@ -14,27 +14,28 @@
@pulumi.input_type
class ServerRoleArgs:
def __init__(__self__, *,
- name: pulumi.Input[str],
+ name: Optional[pulumi.Input[str]] = None,
owner_id: Optional[pulumi.Input[str]] = None):
"""
The set of arguments for constructing a ServerRole resource.
:param pulumi.Input[str] name: Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars.
:param pulumi.Input[str] owner_id: ID of another server role or login owning this role. Can be retrieved using `ServerRole` or `SqlLogin`.
"""
- pulumi.set(__self__, "name", name)
+ if name is not None:
+ pulumi.set(__self__, "name", name)
if owner_id is not None:
pulumi.set(__self__, "owner_id", owner_id)
@property
@pulumi.getter
- def name(self) -> pulumi.Input[str]:
+ def name(self) -> Optional[pulumi.Input[str]]:
"""
Role name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot be longer than 128 chars.
"""
return pulumi.get(self, "name")
@name.setter
- def name(self, value: pulumi.Input[str]):
+ def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@@ -107,10 +108,8 @@ def __init__(__self__,
import pulumi
import pulumiverse_mssql as mssql
- owner = mssql.ServerRole("owner", name="owner_role")
- example = mssql.ServerRole("example",
- name="example",
- owner_id=owner.id)
+ owner = mssql.ServerRole("owner")
+ example = mssql.ServerRole("example", owner_id=owner.id)
```
## Import
@@ -130,7 +129,7 @@ def __init__(__self__,
@overload
def __init__(__self__,
resource_name: str,
- args: ServerRoleArgs,
+ args: Optional[ServerRoleArgs] = None,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Manages server-level role.
@@ -141,10 +140,8 @@ def __init__(__self__,
import pulumi
import pulumiverse_mssql as mssql
- owner = mssql.ServerRole("owner", name="owner_role")
- example = mssql.ServerRole("example",
- name="example",
- owner_id=owner.id)
+ owner = mssql.ServerRole("owner")
+ example = mssql.ServerRole("example", owner_id=owner.id)
```
## Import
@@ -181,8 +178,6 @@ def _internal_init(__self__,
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = ServerRoleArgs.__new__(ServerRoleArgs)
- if name is None and not opts.urn:
- raise TypeError("Missing required property 'name'")
__props__.__dict__["name"] = name
__props__.__dict__["owner_id"] = owner_id
super(ServerRole, __self__).__init__(
diff --git a/sdk/python/pulumiverse_mssql/server_role_member.py b/sdk/python/pulumiverse_mssql/server_role_member.py
index d771cc0..6ac4065 100644
--- a/sdk/python/pulumiverse_mssql/server_role_member.py
+++ b/sdk/python/pulumiverse_mssql/server_role_member.py
@@ -108,7 +108,7 @@ def __init__(__self__,
import pulumiverse_mssql as mssql
member = mssql.get_sql_login(name="member_login")
- example_server_role = mssql.ServerRole("exampleServerRole", name="example")
+ example_server_role = mssql.ServerRole("exampleServerRole")
example_server_role_member = mssql.ServerRoleMember("exampleServerRoleMember",
role_id=example_server_role.id,
member_id=member.id)
@@ -144,7 +144,7 @@ def __init__(__self__,
import pulumiverse_mssql as mssql
member = mssql.get_sql_login(name="member_login")
- example_server_role = mssql.ServerRole("exampleServerRole", name="example")
+ example_server_role = mssql.ServerRole("exampleServerRole")
example_server_role_member = mssql.ServerRoleMember("exampleServerRoleMember",
role_id=example_server_role.id,
member_id=member.id)
diff --git a/sdk/python/pulumiverse_mssql/sql_login.py b/sdk/python/pulumiverse_mssql/sql_login.py
index c92a1fc..8d98b48 100644
--- a/sdk/python/pulumiverse_mssql/sql_login.py
+++ b/sdk/python/pulumiverse_mssql/sql_login.py
@@ -14,16 +14,15 @@
@pulumi.input_type
class SqlLoginArgs:
def __init__(__self__, *,
- name: pulumi.Input[str],
password: pulumi.Input[str],
check_password_expiration: Optional[pulumi.Input[bool]] = None,
check_password_policy: Optional[pulumi.Input[bool]] = None,
default_database_id: Optional[pulumi.Input[str]] = None,
default_language: Optional[pulumi.Input[str]] = None,
- must_change_password: Optional[pulumi.Input[bool]] = None):
+ must_change_password: Optional[pulumi.Input[bool]] = None,
+ name: Optional[pulumi.Input[str]] = None):
"""
The set of arguments for constructing a SqlLogin resource.
- :param pulumi.Input[str] name: Login name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot contain `\\`
:param pulumi.Input[str] password: Password for the login. Must follow strong password policies defined for SQL server. Passwords are case-sensitive, length must be 8-128 chars, can include all characters except `'` or `name`.
:param pulumi.Input[bool] check_password_expiration: When `true`, password expiration policy is enforced for this login. Defaults to `false`. -> **Note** In case of Azure
SQL, which does not support this feature, the flag will be ignored.
@@ -37,8 +36,8 @@ def __init__(__self__, *,
:param pulumi.Input[bool] must_change_password: When true, password change will be forced on first logon. Defaults to `false`. -> **Note** After password is changed,
this flag is being reset to `false`, which will show as changes in Terraform plan. Use `ignore_changes` block to prevent
this behavior. -> **Note** In case of Azure SQL, which does not support this feature, the flag will be ignored.
+ :param pulumi.Input[str] name: Login name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot contain `\\`
"""
- pulumi.set(__self__, "name", name)
pulumi.set(__self__, "password", password)
if check_password_expiration is not None:
pulumi.set(__self__, "check_password_expiration", check_password_expiration)
@@ -50,18 +49,8 @@ def __init__(__self__, *,
pulumi.set(__self__, "default_language", default_language)
if must_change_password is not None:
pulumi.set(__self__, "must_change_password", must_change_password)
-
- @property
- @pulumi.getter
- def name(self) -> pulumi.Input[str]:
- """
- Login name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot contain `\\`
- """
- return pulumi.get(self, "name")
-
- @name.setter
- def name(self, value: pulumi.Input[str]):
- pulumi.set(self, "name", value)
+ if name is not None:
+ pulumi.set(__self__, "name", name)
@property
@pulumi.getter
@@ -142,6 +131,18 @@ def must_change_password(self) -> Optional[pulumi.Input[bool]]:
def must_change_password(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "must_change_password", value)
+ @property
+ @pulumi.getter
+ def name(self) -> Optional[pulumi.Input[str]]:
+ """
+ Login name. Must follow [Regular Identifiers rules](https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers#rules-for-regular-identifiers) and cannot contain `\\`
+ """
+ return pulumi.get(self, "name")
+
+ @name.setter
+ def name(self, value: Optional[pulumi.Input[str]]):
+ pulumi.set(self, "name", value)
+
@pulumi.input_type
class _SqlLoginState:
@@ -318,7 +319,6 @@ def __init__(__self__,
example_database = mssql.get_database(name="example")
example_sql_login = mssql.SqlLogin("exampleSqlLogin",
- name="example",
password="Str0ngPa$$word12",
must_change_password=True,
default_database_id=example_database.id,
@@ -371,7 +371,6 @@ def __init__(__self__,
example_database = mssql.get_database(name="example")
example_sql_login = mssql.SqlLogin("exampleSqlLogin",
- name="example",
password="Str0ngPa$$word12",
must_change_password=True,
default_database_id=example_database.id,
@@ -425,8 +424,6 @@ def _internal_init(__self__,
__props__.__dict__["default_database_id"] = default_database_id
__props__.__dict__["default_language"] = default_language
__props__.__dict__["must_change_password"] = must_change_password
- if name is None and not opts.urn:
- raise TypeError("Missing required property 'name'")
__props__.__dict__["name"] = name
if password is None and not opts.urn:
raise TypeError("Missing required property 'password'")
diff --git a/sdk/python/pulumiverse_mssql/sql_user.py b/sdk/python/pulumiverse_mssql/sql_user.py
index c6bb8a4..098b018 100644
--- a/sdk/python/pulumiverse_mssql/sql_user.py
+++ b/sdk/python/pulumiverse_mssql/sql_user.py
@@ -15,18 +15,19 @@
class SqlUserArgs:
def __init__(__self__, *,
login_id: pulumi.Input[str],
- name: pulumi.Input[str],
- database_id: Optional[pulumi.Input[str]] = None):
+ database_id: Optional[pulumi.Input[str]] = None,
+ name: Optional[pulumi.Input[str]] = None):
"""
The set of arguments for constructing a SqlUser resource.
:param pulumi.Input[str] login_id: SID of SQL login. Can be retrieved using `SqlLogin` or `SELECT SUSER_SID('')`.
- :param pulumi.Input[str] name: User name. Cannot be longer than 128 chars.
:param pulumi.Input[str] database_id: ID of database. Can be retrieved using `Database` or `SELECT DB_ID('')`. Defaults to ID of `master`.
+ :param pulumi.Input[str] name: User name. Cannot be longer than 128 chars.
"""
pulumi.set(__self__, "login_id", login_id)
- pulumi.set(__self__, "name", name)
if database_id is not None:
pulumi.set(__self__, "database_id", database_id)
+ if name is not None:
+ pulumi.set(__self__, "name", name)
@property
@pulumi.getter(name="loginId")
@@ -40,18 +41,6 @@ def login_id(self) -> pulumi.Input[str]:
def login_id(self, value: pulumi.Input[str]):
pulumi.set(self, "login_id", value)
- @property
- @pulumi.getter
- def name(self) -> pulumi.Input[str]:
- """
- User name. Cannot be longer than 128 chars.
- """
- return pulumi.get(self, "name")
-
- @name.setter
- def name(self, value: pulumi.Input[str]):
- pulumi.set(self, "name", value)
-
@property
@pulumi.getter(name="databaseId")
def database_id(self) -> Optional[pulumi.Input[str]]:
@@ -64,6 +53,18 @@ def database_id(self) -> Optional[pulumi.Input[str]]:
def database_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "database_id", value)
+ @property
+ @pulumi.getter
+ def name(self) -> Optional[pulumi.Input[str]]:
+ """
+ User name. Cannot be longer than 128 chars.
+ """
+ return pulumi.get(self, "name")
+
+ @name.setter
+ def name(self, value: Optional[pulumi.Input[str]]):
+ pulumi.set(self, "name", value)
+
@pulumi.input_type
class _SqlUserState:
@@ -142,7 +143,6 @@ def __init__(__self__,
example_database = mssql.get_database(name="example")
example_sql_login = mssql.SqlLogin("exampleSqlLogin",
- name="example",
password="Str0ngPa$$word12",
must_change_password=True,
default_database_id=example_database.id,
@@ -150,7 +150,6 @@ def __init__(__self__,
check_password_expiration=True,
check_password_policy=True)
example_sql_user = mssql.SqlUser("exampleSqlUser",
- name="example",
database_id=example_database.id,
login_id=example_sql_login.id)
pulumi.export("userId", example_sql_user.id)
@@ -188,7 +187,6 @@ def __init__(__self__,
example_database = mssql.get_database(name="example")
example_sql_login = mssql.SqlLogin("exampleSqlLogin",
- name="example",
password="Str0ngPa$$word12",
must_change_password=True,
default_database_id=example_database.id,
@@ -196,7 +194,6 @@ def __init__(__self__,
check_password_expiration=True,
check_password_policy=True)
example_sql_user = mssql.SqlUser("exampleSqlUser",
- name="example",
database_id=example_database.id,
login_id=example_sql_login.id)
pulumi.export("userId", example_sql_user.id)
@@ -241,8 +238,6 @@ def _internal_init(__self__,
if login_id is None and not opts.urn:
raise TypeError("Missing required property 'login_id'")
__props__.__dict__["login_id"] = login_id
- if name is None and not opts.urn:
- raise TypeError("Missing required property 'name'")
__props__.__dict__["name"] = name
super(SqlUser, __self__).__init__(
'mssql:index/sqlUser:SqlUser',
diff --git a/sdk/python/setup.py b/sdk/python/setup.py
index dbab903..0903679 100644
--- a/sdk/python/setup.py
+++ b/sdk/python/setup.py
@@ -9,26 +9,6 @@
VERSION = "0.0.0"
-PLUGIN_VERSION = "0.0.0"
-
-class InstallPluginCommand(install):
- def run(self):
- install.run(self)
- try:
- check_call(['pulumi', 'plugin', 'install', 'resource', 'mssql', PLUGIN_VERSION, '--server', 'github://api.github.com/pulumiverse/pulumi-mssql'])
- except OSError as error:
- if error.errno == errno.ENOENT:
- print(f"""
- There was an error installing the mssql resource provider plugin.
- It looks like `pulumi` is not installed on your system.
- Please visit https://pulumi.com/ to install the Pulumi CLI.
- You may try manually installing the plugin by running
- `pulumi plugin install resource mssql {PLUGIN_VERSION}`
- """)
- else:
- raise
-
-
def readme():
try:
with open('README.md', encoding='utf-8') as f:
@@ -43,9 +23,6 @@ def readme():
description="A Pulumi Provider for Microsoft SQL Server and Azure SQL",
long_description=readme(),
long_description_content_type='text/markdown',
- cmdclass={
- 'install': InstallPluginCommand,
- },
keywords='pulumi mssql category/database',
url='https://github.com/pulumiverse/pulumi-mssql',
project_urls={