diff --git a/go.mod b/go.mod
index b8ebb29b5c..0b8762b22b 100644
--- a/go.mod
+++ b/go.mod
@@ -5,7 +5,7 @@ go 1.21
require (
github.com/Azure/azure-sdk-for-go v68.0.0+incompatible
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.12.0
- github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5 v5.6.0
+ github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5 v5.7.0
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v4 v4.3.0
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0
github.com/Azure/go-autorest/autorest v0.11.29
@@ -15,8 +15,8 @@ require (
github.com/kubernetes-csi/csi-lib-utils v0.17.0
github.com/kubernetes-csi/csi-proxy/client v1.1.3
github.com/kubernetes-csi/external-snapshotter/client/v4 v4.2.0
- github.com/onsi/ginkgo/v2 v2.17.1
- github.com/onsi/gomega v1.32.0
+ github.com/onsi/ginkgo/v2 v2.19.0
+ github.com/onsi/gomega v1.33.1
github.com/pelletier/go-toml v1.9.5
github.com/stretchr/testify v1.9.0
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.1
@@ -39,21 +39,23 @@ require (
k8s.io/kubernetes v1.29.4
k8s.io/mount-utils v0.29.4
k8s.io/pod-security-admission v0.0.0
- k8s.io/utils v0.0.0-20231127182322-b307cd553661
+ k8s.io/utils v0.0.0-20240711033017-18e509b52bc8
sigs.k8s.io/cloud-provider-azure v1.29.1-0.20240401064333-15fadde40d38
- sigs.k8s.io/cloud-provider-azure/pkg/azclient v0.0.7
+ sigs.k8s.io/cloud-provider-azure/pkg/azclient v0.0.31
sigs.k8s.io/cloud-provider-azure/pkg/azclient/configloader v0.0.2
sigs.k8s.io/yaml v1.4.0
)
require (
- github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.6.0 // indirect
- github.com/Azure/azure-sdk-for-go/sdk/internal v1.9.0 // indirect
+ github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.7.0 // indirect
+ github.com/Azure/azure-sdk-for-go/sdk/internal v1.9.1 // indirect
+ github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets v0.12.0 // indirect
+ github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.1 // indirect
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry v1.2.0 // indirect
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerservice/armcontainerservice/v4 v4.8.0 // indirect
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault v1.4.0 // indirect
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/privatedns/armprivatedns v1.2.0 // indirect
- github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage v1.5.0 // indirect
+ github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage v1.6.0 // indirect
github.com/Azure/go-autorest v14.2.0+incompatible // indirect
github.com/Azure/go-autorest/autorest/adal v0.9.23 // indirect
github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect
@@ -83,7 +85,7 @@ require (
github.com/go-openapi/jsonpointer v0.19.6 // indirect
github.com/go-openapi/jsonreference v0.20.2 // indirect
github.com/go-openapi/swag v0.22.4 // indirect
- github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
+ github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang-jwt/jwt/v4 v4.5.0 // indirect
github.com/golang-jwt/jwt/v5 v5.2.1 // indirect
@@ -92,7 +94,7 @@ require (
github.com/google/gnostic-models v0.6.8 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/gofuzz v1.2.0 // indirect
- github.com/google/pprof v0.0.0-20230602010524-ada837c32108 // indirect
+ github.com/google/pprof v0.0.0-20240424215950-a892ee059fd6 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/gorilla/websocket v1.5.0 // indirect
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
diff --git a/go.sum b/go.sum
index 833a936fa9..e62bcfd83b 100644
--- a/go.sum
+++ b/go.sum
@@ -605,18 +605,24 @@ github.com/Azure/azure-sdk-for-go v68.0.0+incompatible h1:fcYLmCpyNYRnvJbPerq7U0
github.com/Azure/azure-sdk-for-go v68.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.12.0 h1:1nGuui+4POelzDwI7RG56yfQJHCnKvwfMoU7VsEp+Zg=
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.12.0/go.mod h1:99EvauvlcJ1U06amZiksfYz/3aFGyIhWGHVyiZXtBAI=
-github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.6.0 h1:U2rTu3Ef+7w9FHKIAXM6ZyqF3UOWJZ12zIm8zECAFfg=
-github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.6.0/go.mod h1:9kIvujWAA58nmPmWB1m23fyWic1kYZMxD9CxaWn4Qpg=
-github.com/Azure/azure-sdk-for-go/sdk/internal v1.9.0 h1:H+U3Gk9zY56G3u872L82bk4thcsy2Gghb9ExT4Zvm1o=
-github.com/Azure/azure-sdk-for-go/sdk/internal v1.9.0/go.mod h1:mgrmMSgaLp9hmax62XQTd0N4aAqSE5E0DulSpVYK7vc=
-github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5 v5.6.0 h1:ui3YNbxfW7J3tTFIZMH6LIGRjCngp+J+nIFlnizfNTE=
-github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5 v5.6.0/go.mod h1:gZmgV+qBqygoznvqo2J9oKZAFziqhLZ2xE/WVUmzkHA=
+github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.7.0 h1:tfLQ34V6F7tVSwoTf/4lH5sE0o6eCJuNDTmH09nDpbc=
+github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.7.0/go.mod h1:9kIvujWAA58nmPmWB1m23fyWic1kYZMxD9CxaWn4Qpg=
+github.com/Azure/azure-sdk-for-go/sdk/internal v1.9.1 h1:Xy/qV1DyOhhqsU/z0PyFMJfYCxnzna+vBEUtFW0ksQo=
+github.com/Azure/azure-sdk-for-go/sdk/internal v1.9.1/go.mod h1:oib6iWdC+sILvNUoJbbBn3xv7TXow7mEp/WRcsYvmow=
+github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets v0.12.0 h1:xnO4sFyG8UH2fElBkcqLTOZsAajvKfnSlgBBW8dXYjw=
+github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets v0.12.0/go.mod h1:XD3DIOOVgBCO03OleB1fHjgktVRFxlT++KwKgIOewdM=
+github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.1 h1:FbH3BbSb4bvGluTesZZ+ttN/MDsnMmQP36OSnDuSXqw=
+github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.1/go.mod h1:9V2j0jn9jDEkCkv8w/bKTNppX/d0FVA1ud77xCIP4KA=
+github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5 v5.7.0 h1:LkHbJbgF3YyvC53aqYGR+wWQDn2Rdp9AQdGndf9QvY4=
+github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5 v5.7.0/go.mod h1:QyiQdW4f4/BIfB8ZutZ2s+28RAgfa/pT+zS++ZHyM1I=
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry v1.2.0 h1:DWlwvVV5r/Wy1561nZ3wrpI1/vDIBRY/Wd1HWaRBZWA=
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry v1.2.0/go.mod h1:E7ltexgRDmeJ0fJWv0D/HLwY2xbDdN+uv+X2uZtOx3w=
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerservice/armcontainerservice/v4 v4.8.0 h1:0nGmzwBv5ougvzfGPCO2ljFRHvun57KpNrVCMrlk0ns=
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerservice/armcontainerservice/v4 v4.8.0/go.mod h1:gYq8wyDgv6JLhGbAU6gg8amCPgQWRE+aCvrV2gyzdfs=
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do=
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI=
+github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY=
+github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s=
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault v1.4.0 h1:HlZMUZW8S4P9oob1nCHxCCKrytxyLc+24nUJGssoEto=
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault v1.4.0/go.mod h1:StGsLbuJh06Bd8IBfnAlIFV3fLb+gkczONWf15hpX2E=
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o=
@@ -627,8 +633,8 @@ github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/privatedns/armprivatedns v
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/privatedns/armprivatedns v1.2.0/go.mod h1:wGPyTi+aURdqPAGMZDQqnNs9IrShADF8w2WZb6bKeq0=
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM=
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE=
-github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage v1.5.0 h1:AifHbc4mg0x9zW52WOpKbsHaDKuRhlI7TVl47thgQ70=
-github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage v1.5.0/go.mod h1:T5RfihdXtBDxt1Ch2wobif3TvzTdumDy29kahv6AV9A=
+github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage v1.6.0 h1:PiSrjRPpkQNjrM8H0WwKMnZUdu1RGMtd/LdGKUrOo+c=
+github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage v1.6.0/go.mod h1:oDrbWx4ewMylP7xHivfgixbfGBT6APAwsSoHRKotnIc=
github.com/Azure/go-autorest v14.2.0+incompatible h1:V5VMDjClD3GiElqLWO7mz2MxNAK/vTfRHdAubSIPRgs=
github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24=
github.com/Azure/go-autorest/autorest v0.11.29 h1:I4+HL/JDvErx2LjyzaVxllw2lRDB5/BT2Bm4g20iqYw=
@@ -794,8 +800,9 @@ github.com/go-openapi/swag v0.22.4/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+
github.com/go-pdf/fpdf v0.5.0/go.mod h1:HzcnA+A23uwogo0tp9yU+l3V+KXhiESpt1PMayhOh5M=
github.com/go-pdf/fpdf v0.6.0/go.mod h1:HzcnA+A23uwogo0tp9yU+l3V+KXhiESpt1PMayhOh5M=
github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE=
-github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI=
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod h1:9Pwr4B2jHnOSGXyyzV8ROjYa2ojvAY6HCGYYfMoC3Ls=
+github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI=
+github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8=
github.com/goccy/go-json v0.9.11/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
@@ -896,8 +903,8 @@ github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLe
github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
-github.com/google/pprof v0.0.0-20230602010524-ada837c32108 h1:y+JfwMOPwQwIrnh3TUPwwtOAhONoppkHiSa4sQBoK2k=
-github.com/google/pprof v0.0.0-20230602010524-ada837c32108/go.mod h1:Jh3hGz2jkYak8qXPD19ryItVnUgpgeqzdkY/D0EaeuA=
+github.com/google/pprof v0.0.0-20240424215950-a892ee059fd6 h1:k7nVchz72niMH6YLQNvHSdIE7iqsQxK1P41mySCvssg=
+github.com/google/pprof v0.0.0-20240424215950-a892ee059fd6/go.mod h1:kf6iHlnVGwgKolg33glAes7Yg/8iWP8ukqeldJSO7jw=
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
github.com/google/s2a-go v0.1.0/go.mod h1:OJpEgntRZo8ugHpF9hkoLJbS5dSI20XZeXJ9JVywLlM=
github.com/google/s2a-go v0.1.3/go.mod h1:Ej+mSEMGRnqRzjc7VtF+jdBwYG5fuJfiZ8ELkjEwM0A=
@@ -1034,8 +1041,8 @@ github.com/onsi/ginkgo/v2 v2.9.5/go.mod h1:tvAoo1QUJwNEU2ITftXTpR7R1RbCzoZUOs3Ro
github.com/onsi/ginkgo/v2 v2.9.7/go.mod h1:cxrmXWykAwTwhQsJOPfdIDiJ+l2RYq7U8hFU+M/1uw0=
github.com/onsi/ginkgo/v2 v2.11.0/go.mod h1:ZhrRA5XmEE3x3rhlzamx/JJvujdZoJ2uvgI7kR0iZvM=
github.com/onsi/ginkgo/v2 v2.13.0/go.mod h1:TE309ZR8s5FsKKpuB1YAQYBzCaAfUgatB/xlT/ETL/o=
-github.com/onsi/ginkgo/v2 v2.17.1 h1:V++EzdbhI4ZV4ev0UTIj0PzhzOcReJFyJaLjtSF55M8=
-github.com/onsi/ginkgo/v2 v2.17.1/go.mod h1:llBI3WDLL9Z6taip6f33H76YcWtJv+7R3HigUjbIBOs=
+github.com/onsi/ginkgo/v2 v2.19.0 h1:9Cnnf7UHo57Hy3k6/m5k3dRfGTMXGvxhHFvkDTCTpvA=
+github.com/onsi/ginkgo/v2 v2.19.0/go.mod h1:rlwLi9PilAFJ8jCg9UE1QP6VBpd6/xj3SRC0d6TU0To=
github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY=
@@ -1054,8 +1061,8 @@ github.com/onsi/gomega v1.27.7/go.mod h1:1p8OOlwo2iUUDsHnOrjE5UKYJ+e3W8eQ3qSlRah
github.com/onsi/gomega v1.27.8/go.mod h1:2J8vzI/s+2shY9XHRApDkdgPo1TKT7P2u6fXeJKFnNQ=
github.com/onsi/gomega v1.27.10/go.mod h1:RsS8tutOdbdgzbPtzzATp12yT7kM5I5aElG3evPbQ0M=
github.com/onsi/gomega v1.29.0/go.mod h1:9sxs+SwGrKI0+PWe4Fxa9tFQQBG5xSsSbMXOI8PPpoQ=
-github.com/onsi/gomega v1.32.0 h1:JRYU78fJ1LPxlckP6Txi/EYqJvjtMrDC04/MM5XRHPk=
-github.com/onsi/gomega v1.32.0/go.mod h1:a4x4gW6Pz2yK1MAmvluYme5lvYTn61afQ2ETw/8n4Lg=
+github.com/onsi/gomega v1.33.1 h1:dsYjIxxSR755MDmKVsaFQTE22ChNBcuuTWgkUDSubOk=
+github.com/onsi/gomega v1.33.1/go.mod h1:U4R44UsT+9eLIaYRB2a5qajjtQYn0hauxvRm16AVYg0=
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
github.com/opencontainers/selinux v1.11.0 h1:+5Zbo97w3Lbmb3PeqQtpmTkMwsW5nRI3YaLpt7tQ7oU=
@@ -2014,8 +2021,8 @@ k8s.io/pod-security-admission v0.29.4 h1:XatfG2zbye9SRaHQhE7EdiIu462ak3TctnkvdrU
k8s.io/pod-security-admission v0.29.4/go.mod h1:PNErt3eRnzVx2zxIdYmgk7vBos5Qm4c8U5QXKvXFfxQ=
k8s.io/utils v0.0.0-20210802155522-efc7438f0176/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
k8s.io/utils v0.0.0-20230726121419-3b25d923346b/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
-k8s.io/utils v0.0.0-20231127182322-b307cd553661 h1:FepOBzJ0GXm8t0su67ln2wAZjbQ6RxQGZDnzuLcrUTI=
-k8s.io/utils v0.0.0-20231127182322-b307cd553661/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
+k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 h1:pUdcCO1Lk/tbT5ztQWOBi5HBgbBP1J8+AsQnQCKsi8A=
+k8s.io/utils v0.0.0-20240711033017-18e509b52bc8/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
lukechampine.com/uint128 v1.1.1/go.mod h1:c4eWIwlEGaxC/+H1VguhU4PHXNWDCDMUlWdIWl2j1gk=
lukechampine.com/uint128 v1.2.0/go.mod h1:c4eWIwlEGaxC/+H1VguhU4PHXNWDCDMUlWdIWl2j1gk=
modernc.org/cc/v3 v3.36.0/go.mod h1:NFUHyPn4ekoC/JHeZFfZurN6ixxawE1BnVonP/oahEI=
@@ -2058,8 +2065,8 @@ sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.28.0 h1:TgtAeesdhpm2S
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.28.0/go.mod h1:VHVDI/KrK4fjnV61bE2g3sA7tiETLn8sooImelsCx3Y=
sigs.k8s.io/cloud-provider-azure v1.29.1-0.20240401064333-15fadde40d38 h1:vO1Hm+bkN5+rQBxupkSyPT9vRSzKsF2Dde2/wIpKWHc=
sigs.k8s.io/cloud-provider-azure v1.29.1-0.20240401064333-15fadde40d38/go.mod h1:P9469h4lNzbAy86lAdxstlALSdmCHaTuhJTaVAgdfkI=
-sigs.k8s.io/cloud-provider-azure/pkg/azclient v0.0.7 h1:2i90v/+RL6UmN9zE8bDxEy8DpEdIK9WiwmrGS6XoDgk=
-sigs.k8s.io/cloud-provider-azure/pkg/azclient v0.0.7/go.mod h1:4rMNajTN5xEbeVGFWfAeqorkednAmXM5/d8OK+ux+tY=
+sigs.k8s.io/cloud-provider-azure/pkg/azclient v0.0.31 h1:Yb3czLu6jVwrOaTHuWWx/Ho8fuCgBwFtCBJQOeTRPWU=
+sigs.k8s.io/cloud-provider-azure/pkg/azclient v0.0.31/go.mod h1:6V7rPyX6IkrBnWfw9RB9qZQHOs28cW2e06zeFto57/k=
sigs.k8s.io/cloud-provider-azure/pkg/azclient/configloader v0.0.2 h1:quGUBBYzHpEXd6PSNUS9UpheEcwW+AbDtZBIAuzS0jM=
sigs.k8s.io/cloud-provider-azure/pkg/azclient/configloader v0.0.2/go.mod h1:XG0A5DEGP8oKo97GeDAcd2rXOCVX22JeHNLpiDVgfZg=
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo=
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/CHANGELOG.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/CHANGELOG.md
index 6d4b6feb86..a8c2feb6d4 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/CHANGELOG.md
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/CHANGELOG.md
@@ -1,5 +1,29 @@
# Release History
+## 1.7.0 (2024-06-20)
+
+### Features Added
+* `AzurePipelinesCredential` authenticates an Azure Pipelines service connection with
+ workload identity federation
+
+### Breaking Changes
+> These changes affect only code written against a beta version such as v1.7.0-beta.1
+* Removed the persistent token caching API. It will return in v1.8.0-beta.1
+
+## 1.7.0-beta.1 (2024-06-10)
+
+### Features Added
+* Restored `AzurePipelinesCredential` and persistent token caching API
+
+## Breaking Changes
+> These changes affect only code written against a beta version such as v1.6.0-beta.4
+* Values which `NewAzurePipelinesCredential` read from environment variables in
+ prior versions are now parameters
+* Renamed `AzurePipelinesServiceConnectionCredentialOptions` to `AzurePipelinesCredentialOptions`
+
+### Bugs Fixed
+* Managed identity bug fixes
+
## 1.6.0 (2024-06-10)
### Features Added
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/README.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/README.md
index b5acff0e63..7e201ea2fd 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/README.md
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/README.md
@@ -140,6 +140,7 @@ client := armresources.NewResourceGroupsClient("subscription ID", chain, nil)
|Credential|Usage
|-|-
+|[AzurePipelinesCredential](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity#AzurePipelinesCredential)|Authenticate an Azure Pipelines [service connection](https://learn.microsoft.com/azure/devops/pipelines/library/service-endpoints?view=azure-devops&tabs=yaml)
|[ClientAssertionCredential](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity#ClientAssertionCredential)|Authenticate a service principal with a signed client assertion
|[ClientCertificateCredential](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity#ClientCertificateCredential)|Authenticate a service principal with a certificate
|[ClientSecretCredential](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity#ClientSecretCredential)|Authenticate a service principal with a secret
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/TOKEN_CACHING.MD b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/TOKEN_CACHING.MD
index f9cc489433..fbaa292204 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/TOKEN_CACHING.MD
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/TOKEN_CACHING.MD
@@ -57,6 +57,7 @@ The following table indicates the state of in-memory and persistent caching in e
|--------------------------------|---------------------------------------------------------------------|--------------------------|
| `AzureCLICredential` | Not Supported | Not Supported |
| `AzureDeveloperCLICredential` | Not Supported | Not Supported |
+| `AzurePipelinesCredential` | Supported | Supported |
| `ClientAssertionCredential` | Supported | Supported |
| `ClientCertificateCredential` | Supported | Supported |
| `ClientSecretCredential` | Supported | Supported |
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/TROUBLESHOOTING.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/TROUBLESHOOTING.md
index 3564e685e1..54016a0709 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/TROUBLESHOOTING.md
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/TROUBLESHOOTING.md
@@ -10,6 +10,7 @@ This troubleshooting guide covers failure investigation techniques, common error
- [Enable and configure logging](#enable-and-configure-logging)
- [Troubleshoot AzureCLICredential authentication issues](#troubleshoot-azureclicredential-authentication-issues)
- [Troubleshoot AzureDeveloperCLICredential authentication issues](#troubleshoot-azuredeveloperclicredential-authentication-issues)
+- [Troubleshoot AzurePipelinesCredential authentication issues](#troubleshoot-azurepipelinescredential-authentication-issues)
- [Troubleshoot ClientCertificateCredential authentication issues](#troubleshoot-clientcertificatecredential-authentication-issues)
- [Troubleshoot ClientSecretCredential authentication issues](#troubleshoot-clientsecretcredential-authentication-issues)
- [Troubleshoot DefaultAzureCredential authentication issues](#troubleshoot-defaultazurecredential-authentication-issues)
@@ -226,6 +227,15 @@ azd auth token --output json --scope https://management.core.windows.net/.defaul
|---|---|---|
|no client ID/tenant ID/token file specified|Incomplete configuration|In most cases these values are provided via environment variables set by Azure Workload Identity.
- If your application runs on Azure Kubernetes Servide (AKS) or a cluster that has deployed the Azure Workload Identity admission webhook, check pod labels and service account configuration. See the [AKS documentation](https://learn.microsoft.com/azure/aks/workload-identity-deploy-cluster#disable-workload-identity) and [Azure Workload Identity troubleshooting guide](https://azure.github.io/azure-workload-identity/docs/troubleshooting.html) for more details.
- If your application isn't running on AKS or your cluster hasn't deployed the Workload Identity admission webhook, set these values in `WorkloadIdentityCredentialOptions`
+
+## Troubleshoot AzurePipelinesCredential authentication issues
+
+| Error Message |Description| Mitigation |
+|---|---|---|
+| AADSTS900023: Specified tenant identifier 'some tenant ID' is neither a valid DNS name, nor a valid external domain.|The `tenantID` argument to `NewAzurePipelinesCredential` is incorrect| Verify the tenant ID. It must identify the tenant of the user-assigned managed identity or service principal configured for the service connection.|
+| No service connection found with identifier |The `serviceConnectionID` argument to `NewAzurePipelinesCredential` is incorrect| Verify the service connection ID. This parameter refers to the `resourceId` of the Azure Service Connection. It can also be found in the query string of the service connection's configuration in Azure DevOps. [Azure Pipelines documentation](https://learn.microsoft.com/azure/devops/pipelines/library/service-endpoints?view=azure-devops&tabs=yaml) has more information about service connections.|
+|302 (Found) response from OIDC endpoint|The `systemAccessToken` argument to `NewAzurePipelinesCredential` is incorrect|Check pipeline configuration. This value comes from the predefined variable `System.AccessToken` [as described in Azure Pipelines documentation](https://learn.microsoft.com/azure/devops/pipelines/build/variables?view=azure-devops&tabs=yaml#systemaccesstoken).|
+
## Get additional help
Additional information on ways to reach out for support can be found in [SUPPORT.md](https://github.com/Azure/azure-sdk-for-go/blob/main/SUPPORT.md).
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/azure_pipelines_credential.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/azure_pipelines_credential.go
index 2655543aee..80c1806bb1 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/azure_pipelines_credential.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/azure_pipelines_credential.go
@@ -19,21 +19,20 @@ import (
const (
credNameAzurePipelines = "AzurePipelinesCredential"
oidcAPIVersion = "7.1"
- systemAccessToken = "SYSTEM_ACCESSTOKEN"
systemOIDCRequestURI = "SYSTEM_OIDCREQUESTURI"
)
-// azurePipelinesCredential authenticates with workload identity federation in an Azure Pipeline. See
+// AzurePipelinesCredential authenticates with workload identity federation in an Azure Pipeline. See
// [Azure Pipelines documentation] for more information.
//
// [Azure Pipelines documentation]: https://learn.microsoft.com/azure/devops/pipelines/library/connect-to-azure?view=azure-devops#create-an-azure-resource-manager-service-connection-that-uses-workload-identity-federation
-type azurePipelinesCredential struct {
+type AzurePipelinesCredential struct {
connectionID, oidcURI, systemAccessToken string
cred *ClientAssertionCredential
}
-// azurePipelinesCredentialOptions contains optional parameters for AzurePipelinesCredential.
-type azurePipelinesCredentialOptions struct {
+// AzurePipelinesCredentialOptions contains optional parameters for AzurePipelinesCredential.
+type AzurePipelinesCredentialOptions struct {
azcore.ClientOptions
// AdditionallyAllowedTenants specifies additional tenants for which the credential may acquire tokens.
@@ -48,28 +47,39 @@ type azurePipelinesCredentialOptions struct {
DisableInstanceDiscovery bool
}
-// newAzurePipelinesCredential is the constructor for AzurePipelinesCredential. In addition to its required arguments,
-// it reads a security token for the running build, which is required to authenticate the service connection, from the
-// environment variable SYSTEM_ACCESSTOKEN. See the [Azure Pipelines documentation] for an example showing how to set
-// this variable in build job YAML.
+// NewAzurePipelinesCredential is the constructor for AzurePipelinesCredential.
+//
+// - tenantID: tenant ID of the service principal federated with the service connection
+// - clientID: client ID of that service principal
+// - serviceConnectionID: ID of the service connection to authenticate
+// - systemAccessToken: security token for the running build. See [Azure Pipelines documentation] for
+// an example showing how to get this value.
//
// [Azure Pipelines documentation]: https://learn.microsoft.com/azure/devops/pipelines/build/variables?view=azure-devops&tabs=yaml#systemaccesstoken
-func newAzurePipelinesCredential(tenantID, clientID, serviceConnectionID string, options *azurePipelinesCredentialOptions) (*azurePipelinesCredential, error) {
- if options == nil {
- options = &azurePipelinesCredentialOptions{}
+func NewAzurePipelinesCredential(tenantID, clientID, serviceConnectionID, systemAccessToken string, options *AzurePipelinesCredentialOptions) (*AzurePipelinesCredential, error) {
+ if !validTenantID(tenantID) {
+ return nil, errInvalidTenantID
+ }
+ if clientID == "" {
+ return nil, errors.New("no client ID specified")
+ }
+ if serviceConnectionID == "" {
+ return nil, errors.New("no service connection ID specified")
+ }
+ if systemAccessToken == "" {
+ return nil, errors.New("no system access token specified")
}
u := os.Getenv(systemOIDCRequestURI)
if u == "" {
return nil, fmt.Errorf("no value for environment variable %s. This should be set by Azure Pipelines", systemOIDCRequestURI)
}
- sat := os.Getenv(systemAccessToken)
- if sat == "" {
- return nil, errors.New("no value for environment variable " + systemAccessToken)
- }
- a := azurePipelinesCredential{
+ a := AzurePipelinesCredential{
connectionID: serviceConnectionID,
oidcURI: u,
- systemAccessToken: sat,
+ systemAccessToken: systemAccessToken,
+ }
+ if options == nil {
+ options = &AzurePipelinesCredentialOptions{}
}
caco := ClientAssertionCredentialOptions{
AdditionallyAllowedTenants: options.AdditionallyAllowedTenants,
@@ -86,7 +96,7 @@ func newAzurePipelinesCredential(tenantID, clientID, serviceConnectionID string,
}
// GetToken requests an access token from Microsoft Entra ID. Azure SDK clients call this method automatically.
-func (a *azurePipelinesCredential) GetToken(ctx context.Context, opts policy.TokenRequestOptions) (azcore.AccessToken, error) {
+func (a *AzurePipelinesCredential) GetToken(ctx context.Context, opts policy.TokenRequestOptions) (azcore.AccessToken, error) {
var err error
ctx, endSpan := runtime.StartSpan(ctx, credNameAzurePipelines+"."+traceOpGetToken, a.cred.client.azClient.Tracer(), nil)
defer func() { endSpan(err) }()
@@ -94,7 +104,7 @@ func (a *azurePipelinesCredential) GetToken(ctx context.Context, opts policy.Tok
return tk, err
}
-func (a *azurePipelinesCredential) getAssertion(ctx context.Context) (string, error) {
+func (a *AzurePipelinesCredential) getAssertion(ctx context.Context) (string, error) {
url := a.oidcURI + "?api-version=" + oidcAPIVersion + "&serviceConnectionId=" + a.connectionID
url, err := runtime.EncodeQueryParams(url)
if err != nil {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/errors.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/errors.go
index 698650bbb6..35fa01d136 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/errors.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/errors.go
@@ -83,6 +83,8 @@ func (e *AuthenticationFailedError) Error() string {
anchor = "azure-cli"
case credNameAzureDeveloperCLI:
anchor = "azd"
+ case credNameAzurePipelines:
+ anchor = "apc"
case credNameCert:
anchor = "client-cert"
case credNameSecret:
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/version.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/version.go
index 459ef64c6f..4305b5d3d8 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/version.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/version.go
@@ -14,5 +14,5 @@ const (
module = "github.com/Azure/azure-sdk-for-go/sdk/" + component
// Version is the semantic version (see http://semver.org) of this module.
- version = "v1.6.0"
+ version = "v1.7.0"
)
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/CHANGELOG.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/CHANGELOG.md
new file mode 100644
index 0000000000..8a5c4cc9f1
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/CHANGELOG.md
@@ -0,0 +1,110 @@
+# Release History
+
+## 0.12.0 (2023-04-13)
+
+### Features Added
+* upgraded to api version 7.4
+
+### Breaking Changes
+* This module is now DEPRECATED. The latest supported version of this module is at github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azsecrets
+
+## 0.11.0 (2022-11-08)
+
+### Breaking Changes
+* `NewClient` returns an `error`
+
+## 0.10.1 (2022-09-20)
+
+### Features Added
+* Added `ClientOptions.DisableChallengeResourceVerification`.
+ See https://aka.ms/azsdk/blog/vault-uri for more information.
+
+## 0.10.0 (2022-09-12)
+
+### Breaking Changes
+* Verify the challenge resource matches the vault domain.
+
+## 0.9.0 (2022-08-09)
+
+### Breaking Changes
+* Changed type of `NewClient` options parameter to `azsecrets.ClientOptions`, which embeds
+ the former type, `azcore.ClientOptions`
+
+## 0.8.0 (2022-07-07)
+
+### Breaking Changes
+* The `Client` API now corresponds more directly to the Key Vault REST API.
+ Most method signatures and types have changed. See the
+ [module documentation](https://aka.ms/azsdk/go/keyvault-secrets/docs)
+ for updated code examples and more details.
+
+### Other Changes
+* Upgrade to latest `azcore`
+
+## 0.7.1 (2022-05-12)
+
+### Other Changes
+* Updated to latest `azcore` and `internal` modules.
+
+## 0.7.0 (2022-04-06)
+
+### Features Added
+* Added `PossibleDeletionRecoveryLevelValues` to iterate over all valid `DeletionRecoveryLevel` values
+* Implemented generic pagers from `runtime.Pager` for all List operations
+* Added `Name *string` to `DeletedSecret`, `Properties`, `Secret`, `SecretItem`, and `SecretItem`
+* Added `Client.VaultURL` to determine the vault URL for debugging
+* Adding `ResumeToken` method to pollers for resuming polling at a later date by using the added `ResumeToken` optional parameter on client polling methods
+
+### Breaking Changes
+* Requires a minimum version of go 1.18
+* Removed `RawResponse` from pollers
+* Removed `DeletionRecoveryLevel`
+* Polling operations return a Poller struct directly instead of a Response envelope
+* Removed `ToPtr` methods
+* `Client.UpdateSecretProperties` takes a `Secret`
+* Renamed `Client.ListSecrets` to `Client.ListPropertiesOfSecrets`
+* Renamed `Client.ListSecretVersions` to `Client.ListPropertiesOfSecretVersions`
+* Renamed `DeletedDate` to `DeletedOn` and `Managed` to `IsManaged`
+* Moved `ContentType`, `Tags`, `KeyID`, and `IsManaged` to `Properties`
+
+## 0.6.0 (2022-03-08)
+
+### Breaking Changes
+* Changes `Attributes` to `Properties`
+* Changes `Secret.KID` to `Secret.KeyID`
+* Changes `DeletedSecretBundle` to `DeletedSecret`
+* Changes `DeletedDate` to `DeletedOn`, `Created` to `CreatedOn`, and `Updated` to `UpdatedOn`
+* Changes the signature of `Client.UpdateSecretProperties` to have all alterable properties in the `UpdateSecretPropertiesOptions` parameter, removing the `parameters Properties` parameter.
+* Changes `Item` to `SecretItem`
+* Pollers and pagers are structs instead of interfaces
+* Prefixed all `DeletionRecoveryLevel` constants with "DeletionRecoveryLevel"
+* Changed pager APIs for `ListSecretVersionsPager`, `ListDeletedSecretsPager`, and `ListSecretsPager`
+ * Use the `More()` method to determine if there are more pages to fetch
+ * Use the `NextPage(context.Context)` to fetch the next page of results
+* Removed all `RawResponse *http.Response` fields from response structs.
+
+## 0.5.0 (2022-02-08)
+
+### Breaking Changes
+* Fixes a bug where `UpdateSecretProperties` will delete properties that are not explicitly set each time. This is only a breaking change at runtime, where the request body will change.
+
+## 0.4.0 (2022-01-11)
+
+### Other Changes
+* Bumps `azcore` dependency from `v0.20.0` to `v0.21.0`
+
+## 0.3.0 (2021-11-09)
+
+### Features Added
+* Clients can now connect to Key Vaults in any cloud
+
+## 0.2.0 (2021-11-02)
+
+### Other Changes
+* Bumps `azcore` dependency to `v0.20.0` and `azidentity` to `v0.12.0`
+
+## 0.1.1 (2021-10-06)
+* Adds the MIT License for redistribution
+
+## 0.1.0 (2021-10-05)
+* This is the initial release of the `azsecrets` library
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/LICENSE.txt b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/LICENSE.txt
new file mode 100644
index 0000000000..d1ca00f20a
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/LICENSE.txt
@@ -0,0 +1,21 @@
+ MIT License
+
+ Copyright (c) Microsoft Corporation. All rights reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE
\ No newline at end of file
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/README.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/README.md
new file mode 100644
index 0000000000..06a23c841c
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/README.md
@@ -0,0 +1,144 @@
+# Azure Key Vault Secrets client module for Go
+> Deprecated: use github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azsecrets instead
+
+Azure Key Vault helps solve the following problems:
+* Secrets management (this module) - securely store and control access to tokens, passwords, certificates, API keys, and other secrets
+* Cryptographic key management ([azkeys](https://azsdk/go/keyvault-keys/docs)) - create, store, and control access to the keys used to encrypt your data
+* Certificate management ([azcertificates](https://aka.ms/azsdk/go/keyvault-certificates/docs)) - create, manage, and deploy public and private SSL/TLS certificates
+
+[Source code][module_source] | [Package (pkg.go.dev)][reference_docs] | [Product documentation][keyvault_docs] | [Samples][secrets_samples]
+
+## Getting started
+
+### Install packages
+
+Install `azsecrets` and `azidentity` with `go get`:
+```
+go get github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets
+go get github.com/Azure/azure-sdk-for-go/sdk/azidentity
+```
+[azidentity][azure_identity] is used for Azure Active Directory authentication as demonstrated below.
+
+
+### Prerequisites
+
+* An [Azure subscription][azure_sub]
+* A supported Go version (the Azure SDK supports the two most recent Go releases)
+* A key vault. If you need to create one, see the Key Vault documentation for instructions on doing so in the [Azure Portal][azure_keyvault_portal] or with the [Azure CLI][azure_keyvault_cli].
+
+### Authentication
+
+This document demonstrates using [azidentity.NewDefaultAzureCredential][default_cred_ref] to authenticate. This credential type works in both local development and production environments. We recommend using a [managed identity][managed_identity] in production.
+
+[Client][client_docs] accepts any [azidentity][azure_identity] credential. See the [azidentity][azure_identity] documentation for more information about other credential types.
+
+#### Create a client
+
+Constructing the client also requires your vault's URL, which you can get from the Azure CLI or the Azure Portal.
+
+```golang
+import (
+ "github.com/Azure/azure-sdk-for-go/sdk/azidentity"
+ "github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets"
+)
+
+func main() {
+ cred, err := azidentity.NewDefaultAzureCredential(nil)
+ if err != nil {
+ // TODO: handle error
+ }
+
+ client := azsecrets.NewClient("https://.vault.azure.net", cred, nil)
+}
+```
+
+## Key concepts
+
+### Secret
+
+A secret consists of a secret value and its associated metadata and management information. This library handles secret values as strings, but Azure Key Vault doesn't store them as such. For more information about secrets and how Key Vault stores and manages them, see the [Key Vault documentation](https://docs.microsoft.com/azure/key-vault/general/about-keys-secrets-certificates).
+
+`azseecrets.Client` can set secret values in the vault, update secret metadata, and delete secrets, as shown in the examples below.
+
+## Examples
+
+Get started with our [examples](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets#pkg-examples).
+
+## Troubleshooting
+
+### Error Handling
+
+All methods which send HTTP requests return `*azcore.ResponseError` when these requests fail. `ResponseError` has error details and the raw response from Key Vault.
+
+```go
+import "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+
+resp, err := client.GetSecret(context.Background(), "secretName", nil)
+if err != nil {
+ var httpErr *azcore.ResponseError
+ if errors.As(err, &httpErr) {
+ // TODO: investigate httpErr
+ } else {
+ // TODO: not an HTTP error
+ }
+}
+```
+
+### Logging
+
+This module uses the logging implementation in `azcore`. To turn on logging for all Azure SDK modules, set `AZURE_SDK_GO_LOGGING` to `all`. By default the logger writes to stderr. Use the `azcore/log` package to control log output. For example, logging only HTTP request and response events, and printing them to stdout:
+
+```go
+import azlog "github.com/Azure/azure-sdk-for-go/sdk/azcore/log"
+
+// Print log events to stdout
+azlog.SetListener(func(cls azlog.Event, msg string) {
+ fmt.Println(msg)
+})
+
+// Includes only requests and responses in credential logs
+azlog.SetEvents(azlog.EventRequest, azlog.EventResponse)
+```
+
+### Accessing `http.Response`
+
+You can access the raw `*http.Response` returned by Key Vault using the `runtime.WithCaptureResponse` method and a context passed to any client method.
+
+```go
+import "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+
+var response *http.Response
+ctx := runtime.WithCaptureResponse(context.TODO(), &response)
+_, err = client.GetSecret(ctx, "secretName", nil)
+if err != nil {
+ // TODO: handle error
+}
+// TODO: do something with response
+```
+
+### Additional Documentation
+
+See the [API reference documentation][reference_docs] for complete documentation of this module.
+
+## Contributing
+
+This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.
+
+When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
+
+This project has adopted the [Microsoft Open Source Code of Conduct][code_of_conduct]. For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact opencode@microsoft.com with any additional questions or comments.
+
+[azure_identity]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity
+[azure_keyvault_cli]: https://docs.microsoft.com/azure/key-vault/general/quick-create-cli
+[azure_keyvault_portal]: https://docs.microsoft.com/azure/key-vault/general/quick-create-portal
+[azure_sub]: https://azure.microsoft.com/free/
+[code_of_conduct]: https://opensource.microsoft.com/codeofconduct/
+[default_cred_ref]: https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/azidentity#defaultazurecredential
+[keyvault_docs]: https://docs.microsoft.com/azure/key-vault/
+[managed_identity]: https://docs.microsoft.com/azure/active-directory/managed-identities-azure-resources/overview
+[reference_docs]: https://aka.ms/azsdk/go/keyvault-secrets/docs
+[client_docs]: https://aka.ms/azsdk/go/keyvault-secrets/docs#Client
+[module_source]: https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/keyvault/azsecrets
+[secrets_samples]: https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/keyvault/azsecrets/example_test.go
+
+![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-go%2Fsdk%2Fkeyvault%2Fazsecrets%2FREADME.png)
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/TROUBLESHOOTING.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/TROUBLESHOOTING.md
new file mode 100644
index 0000000000..72269c7a0e
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/TROUBLESHOOTING.md
@@ -0,0 +1,4 @@
+# Troubleshoot Azure Key Vault Secrets Client Module Issues
+
+See our [Azure Key Vault SDK Troubleshooting Guide](https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/keyvault/TROUBLESHOOTING.md)
+to troubleshoot issues common to Azure Key Vault client modules.
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/autorest.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/autorest.md
new file mode 100644
index 0000000000..e6cfb9f8c6
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/autorest.md
@@ -0,0 +1,96 @@
+## Go
+
+These settings apply only when `--go` is specified on the command line.
+
+```yaml
+clear-output-folder: false
+export-clients: true
+go: true
+input-file: https://github.com/Azure/azure-rest-api-specs/blob/551275acb80e1f8b39036b79dfc35a8f63b601a7/specification/keyvault/data-plane/Microsoft.KeyVault/stable/7.4/secrets.json
+license-header: MICROSOFT_MIT_NO_VERSION
+module: github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets
+openapi-type: "data-plane"
+output-folder: ../azsecrets
+override-client-name: Client
+security: "AADToken"
+security-scopes: "https://vault.azure.net/.default"
+use: "@autorest/go@4.0.0-preview.46"
+version: "^3.0.0"
+
+directive:
+ # delete unused model
+ - remove-model: SecretProperties
+
+ # make vault URL a parameter of the client constructor
+ - from: swagger-document
+ where: $["x-ms-parameterized-host"]
+ transform: $.parameters[0]["x-ms-parameter-location"] = "client"
+
+ # rename parameter models to match their methods
+ - rename-model:
+ from: SecretRestoreParameters
+ to: RestoreSecretParameters
+ - rename-model:
+ from: SecretSetParameters
+ to: SetSecretParameters
+ - rename-model:
+ from: SecretUpdateParameters
+ to: UpdateSecretParameters
+
+ # rename paged operations from Get* to List*
+ - rename-operation:
+ from: GetDeletedSecrets
+ to: ListDeletedSecrets
+ - rename-operation:
+ from: GetSecrets
+ to: ListSecrets
+ - rename-operation:
+ from: GetSecretVersions
+ to: ListSecretVersions
+
+ # delete unused error models
+ - from: models.go
+ where: $
+ transform: return $.replace(/(?:\/\/.*\s)+type (?:Error|KeyVaultError).+\{(?:\s.+\s)+\}\s/g, "");
+ - from: models_serde.go
+ where: $
+ transform: return $.replace(/(?:\/\/.*\s)+func \(\w \*?(?:Error|KeyVaultError)\).*\{\s(?:.+\s)+\}\s/g, "");
+
+ # delete the Attributes model defined in common.json (it's used only with allOf)
+ - from: models.go
+ where: $
+ transform: return $.replace(/(?:\/\/.*\s)+type Attributes.+\{(?:\s.+\s)+\}\s/g, "");
+ - from: models_serde.go
+ where: $
+ transform: return $.replace(/(?:\/\/.*\s)+func \(a \*?Attributes\).*\{\s(?:.+\s)+\}\s/g, "");
+
+ # delete the version path param check (version == "" is legal for Key Vault but indescribable by OpenAPI)
+ - from: client.go
+ where: $
+ transform: return $.replace(/\sif secretVersion == "" \{\s+.+secretVersion cannot be empty"\)\s+\}\s/g, "");
+
+ # delete client name prefix from method options and response types
+ - from:
+ - client.go
+ - models.go
+ - response_types.go
+ where: $
+ transform: return $.replace(/Client(\w+)((?:Options|Response))/g, "$1$2");
+
+ # make secret IDs a convenience type so we can add parsing methods
+ - from: models.go
+ where: $
+ transform: return $.replace(/(\sID \*)string(\s+.*)/g, "$1ID$2")
+
+ # Maxresults -> MaxResults
+ - from:
+ - client.go
+ - models.go
+ where: $
+ transform: return $.replace(/Maxresults/g, "MaxResults")
+
+ # secretName, secretVersion -> name, version
+ - from: client.go
+ - where: $
+ - transform: return $.replace(/secretName/g, "name").replace(/secretVersion/g, "version")
+```
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/build.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/build.go
new file mode 100644
index 0000000000..d6e487f2c3
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/build.go
@@ -0,0 +1,10 @@
+//go:build go1.18
+// +build go1.18
+
+//go:generate autorest ./autorest.md
+//go:generate gofmt -w .
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+
+package azsecrets
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/ci.yml b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/ci.yml
new file mode 100644
index 0000000000..3e196e0c80
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/ci.yml
@@ -0,0 +1,29 @@
+
+# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
+trigger:
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/keyvault/azsecrets
+
+pr:
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/keyvault/azsecrets
+
+stages:
+- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
+ parameters:
+ ServiceDirectory: 'keyvault/azsecrets'
+ RunLiveTests: true
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/client.go
new file mode 100644
index 0000000000..fdfbabf96e
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/client.go
@@ -0,0 +1,650 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+// DO NOT EDIT.
+
+package azsecrets
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strconv"
+ "strings"
+)
+
+// Client contains the methods for the Client group.
+// Don't use this type directly, use a constructor function instead.
+type Client struct {
+ internal *azcore.Client
+ endpoint string
+}
+
+// BackupSecret - Requests that a backup of the specified secret be downloaded to the client. All versions of the secret will
+// be downloaded. This operation requires the secrets/backup permission.
+// If the operation fails it returns an *azcore.ResponseError type.
+//
+// Generated from API version 7.4
+// - name - The name of the secret.
+// - options - BackupSecretOptions contains the optional parameters for the Client.BackupSecret method.
+func (client *Client) BackupSecret(ctx context.Context, name string, options *BackupSecretOptions) (BackupSecretResponse, error) {
+ req, err := client.backupSecretCreateRequest(ctx, name, options)
+ if err != nil {
+ return BackupSecretResponse{}, err
+ }
+ resp, err := client.internal.Pipeline().Do(req)
+ if err != nil {
+ return BackupSecretResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return BackupSecretResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.backupSecretHandleResponse(resp)
+}
+
+// backupSecretCreateRequest creates the BackupSecret request.
+func (client *Client) backupSecretCreateRequest(ctx context.Context, name string, options *BackupSecretOptions) (*policy.Request, error) {
+ urlPath := "/secrets/{secret-name}/backup"
+ if name == "" {
+ return nil, errors.New("parameter name cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{secret-name}", url.PathEscape(name))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.endpoint, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "7.4")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// backupSecretHandleResponse handles the BackupSecret response.
+func (client *Client) backupSecretHandleResponse(resp *http.Response) (BackupSecretResponse, error) {
+ result := BackupSecretResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.BackupSecretResult); err != nil {
+ return BackupSecretResponse{}, err
+ }
+ return result, nil
+}
+
+// DeleteSecret - The DELETE operation applies to any secret stored in Azure Key Vault. DELETE cannot be applied to an individual
+// version of a secret. This operation requires the secrets/delete permission.
+// If the operation fails it returns an *azcore.ResponseError type.
+//
+// Generated from API version 7.4
+// - name - The name of the secret.
+// - options - DeleteSecretOptions contains the optional parameters for the Client.DeleteSecret method.
+func (client *Client) DeleteSecret(ctx context.Context, name string, options *DeleteSecretOptions) (DeleteSecretResponse, error) {
+ req, err := client.deleteSecretCreateRequest(ctx, name, options)
+ if err != nil {
+ return DeleteSecretResponse{}, err
+ }
+ resp, err := client.internal.Pipeline().Do(req)
+ if err != nil {
+ return DeleteSecretResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return DeleteSecretResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.deleteSecretHandleResponse(resp)
+}
+
+// deleteSecretCreateRequest creates the DeleteSecret request.
+func (client *Client) deleteSecretCreateRequest(ctx context.Context, name string, options *DeleteSecretOptions) (*policy.Request, error) {
+ urlPath := "/secrets/{secret-name}"
+ if name == "" {
+ return nil, errors.New("parameter name cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{secret-name}", url.PathEscape(name))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.endpoint, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "7.4")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// deleteSecretHandleResponse handles the DeleteSecret response.
+func (client *Client) deleteSecretHandleResponse(resp *http.Response) (DeleteSecretResponse, error) {
+ result := DeleteSecretResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.DeletedSecretBundle); err != nil {
+ return DeleteSecretResponse{}, err
+ }
+ return result, nil
+}
+
+// GetDeletedSecret - The Get Deleted Secret operation returns the specified deleted secret along with its attributes. This
+// operation requires the secrets/get permission.
+// If the operation fails it returns an *azcore.ResponseError type.
+//
+// Generated from API version 7.4
+// - name - The name of the secret.
+// - options - GetDeletedSecretOptions contains the optional parameters for the Client.GetDeletedSecret method.
+func (client *Client) GetDeletedSecret(ctx context.Context, name string, options *GetDeletedSecretOptions) (GetDeletedSecretResponse, error) {
+ req, err := client.getDeletedSecretCreateRequest(ctx, name, options)
+ if err != nil {
+ return GetDeletedSecretResponse{}, err
+ }
+ resp, err := client.internal.Pipeline().Do(req)
+ if err != nil {
+ return GetDeletedSecretResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return GetDeletedSecretResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getDeletedSecretHandleResponse(resp)
+}
+
+// getDeletedSecretCreateRequest creates the GetDeletedSecret request.
+func (client *Client) getDeletedSecretCreateRequest(ctx context.Context, name string, options *GetDeletedSecretOptions) (*policy.Request, error) {
+ urlPath := "/deletedsecrets/{secret-name}"
+ if name == "" {
+ return nil, errors.New("parameter name cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{secret-name}", url.PathEscape(name))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.endpoint, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "7.4")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getDeletedSecretHandleResponse handles the GetDeletedSecret response.
+func (client *Client) getDeletedSecretHandleResponse(resp *http.Response) (GetDeletedSecretResponse, error) {
+ result := GetDeletedSecretResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.DeletedSecretBundle); err != nil {
+ return GetDeletedSecretResponse{}, err
+ }
+ return result, nil
+}
+
+// GetSecret - The GET operation is applicable to any secret stored in Azure Key Vault. This operation requires the secrets/get
+// permission.
+// If the operation fails it returns an *azcore.ResponseError type.
+//
+// Generated from API version 7.4
+// - name - The name of the secret.
+// - version - The version of the secret. This URI fragment is optional. If not specified, the latest version of the secret
+// is returned.
+// - options - GetSecretOptions contains the optional parameters for the Client.GetSecret method.
+func (client *Client) GetSecret(ctx context.Context, name string, version string, options *GetSecretOptions) (GetSecretResponse, error) {
+ req, err := client.getSecretCreateRequest(ctx, name, version, options)
+ if err != nil {
+ return GetSecretResponse{}, err
+ }
+ resp, err := client.internal.Pipeline().Do(req)
+ if err != nil {
+ return GetSecretResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return GetSecretResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.getSecretHandleResponse(resp)
+}
+
+// getSecretCreateRequest creates the GetSecret request.
+func (client *Client) getSecretCreateRequest(ctx context.Context, name string, version string, options *GetSecretOptions) (*policy.Request, error) {
+ urlPath := "/secrets/{secret-name}/{secret-version}"
+ if name == "" {
+ return nil, errors.New("parameter name cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{secret-name}", url.PathEscape(name))
+ urlPath = strings.ReplaceAll(urlPath, "{secret-version}", url.PathEscape(version))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.endpoint, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "7.4")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getSecretHandleResponse handles the GetSecret response.
+func (client *Client) getSecretHandleResponse(resp *http.Response) (GetSecretResponse, error) {
+ result := GetSecretResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.SecretBundle); err != nil {
+ return GetSecretResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListDeletedSecretsPager - The Get Deleted Secrets operation returns the secrets that have been deleted for a vault enabled
+// for soft-delete. This operation requires the secrets/list permission.
+//
+// Generated from API version 7.4
+// - options - ListDeletedSecretsOptions contains the optional parameters for the Client.NewListDeletedSecretsPager method.
+func (client *Client) NewListDeletedSecretsPager(options *ListDeletedSecretsOptions) *runtime.Pager[ListDeletedSecretsResponse] {
+ return runtime.NewPager(runtime.PagingHandler[ListDeletedSecretsResponse]{
+ More: func(page ListDeletedSecretsResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *ListDeletedSecretsResponse) (ListDeletedSecretsResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listDeletedSecretsCreateRequest(ctx, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return ListDeletedSecretsResponse{}, err
+ }
+ resp, err := client.internal.Pipeline().Do(req)
+ if err != nil {
+ return ListDeletedSecretsResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return ListDeletedSecretsResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listDeletedSecretsHandleResponse(resp)
+ },
+ })
+}
+
+// listDeletedSecretsCreateRequest creates the ListDeletedSecrets request.
+func (client *Client) listDeletedSecretsCreateRequest(ctx context.Context, options *ListDeletedSecretsOptions) (*policy.Request, error) {
+ urlPath := "/deletedsecrets"
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.endpoint, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.MaxResults != nil {
+ reqQP.Set("maxresults", strconv.FormatInt(int64(*options.MaxResults), 10))
+ }
+ reqQP.Set("api-version", "7.4")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listDeletedSecretsHandleResponse handles the ListDeletedSecrets response.
+func (client *Client) listDeletedSecretsHandleResponse(resp *http.Response) (ListDeletedSecretsResponse, error) {
+ result := ListDeletedSecretsResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.DeletedSecretListResult); err != nil {
+ return ListDeletedSecretsResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListSecretVersionsPager - The full secret identifier and attributes are provided in the response. No values are returned
+// for the secrets. This operations requires the secrets/list permission.
+//
+// Generated from API version 7.4
+// - name - The name of the secret.
+// - options - ListSecretVersionsOptions contains the optional parameters for the Client.NewListSecretVersionsPager method.
+func (client *Client) NewListSecretVersionsPager(name string, options *ListSecretVersionsOptions) *runtime.Pager[ListSecretVersionsResponse] {
+ return runtime.NewPager(runtime.PagingHandler[ListSecretVersionsResponse]{
+ More: func(page ListSecretVersionsResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *ListSecretVersionsResponse) (ListSecretVersionsResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listSecretVersionsCreateRequest(ctx, name, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return ListSecretVersionsResponse{}, err
+ }
+ resp, err := client.internal.Pipeline().Do(req)
+ if err != nil {
+ return ListSecretVersionsResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return ListSecretVersionsResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listSecretVersionsHandleResponse(resp)
+ },
+ })
+}
+
+// listSecretVersionsCreateRequest creates the ListSecretVersions request.
+func (client *Client) listSecretVersionsCreateRequest(ctx context.Context, name string, options *ListSecretVersionsOptions) (*policy.Request, error) {
+ urlPath := "/secrets/{secret-name}/versions"
+ if name == "" {
+ return nil, errors.New("parameter name cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{secret-name}", url.PathEscape(name))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.endpoint, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.MaxResults != nil {
+ reqQP.Set("maxresults", strconv.FormatInt(int64(*options.MaxResults), 10))
+ }
+ reqQP.Set("api-version", "7.4")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listSecretVersionsHandleResponse handles the ListSecretVersions response.
+func (client *Client) listSecretVersionsHandleResponse(resp *http.Response) (ListSecretVersionsResponse, error) {
+ result := ListSecretVersionsResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.SecretListResult); err != nil {
+ return ListSecretVersionsResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListSecretsPager - The Get Secrets operation is applicable to the entire vault. However, only the base secret identifier
+// and its attributes are provided in the response. Individual secret versions are not listed in the
+// response. This operation requires the secrets/list permission.
+//
+// Generated from API version 7.4
+// - options - ListSecretsOptions contains the optional parameters for the Client.NewListSecretsPager method.
+func (client *Client) NewListSecretsPager(options *ListSecretsOptions) *runtime.Pager[ListSecretsResponse] {
+ return runtime.NewPager(runtime.PagingHandler[ListSecretsResponse]{
+ More: func(page ListSecretsResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *ListSecretsResponse) (ListSecretsResponse, error) {
+ var req *policy.Request
+ var err error
+ if page == nil {
+ req, err = client.listSecretsCreateRequest(ctx, options)
+ } else {
+ req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink)
+ }
+ if err != nil {
+ return ListSecretsResponse{}, err
+ }
+ resp, err := client.internal.Pipeline().Do(req)
+ if err != nil {
+ return ListSecretsResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return ListSecretsResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listSecretsHandleResponse(resp)
+ },
+ })
+}
+
+// listSecretsCreateRequest creates the ListSecrets request.
+func (client *Client) listSecretsCreateRequest(ctx context.Context, options *ListSecretsOptions) (*policy.Request, error) {
+ urlPath := "/secrets"
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.endpoint, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.MaxResults != nil {
+ reqQP.Set("maxresults", strconv.FormatInt(int64(*options.MaxResults), 10))
+ }
+ reqQP.Set("api-version", "7.4")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listSecretsHandleResponse handles the ListSecrets response.
+func (client *Client) listSecretsHandleResponse(resp *http.Response) (ListSecretsResponse, error) {
+ result := ListSecretsResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.SecretListResult); err != nil {
+ return ListSecretsResponse{}, err
+ }
+ return result, nil
+}
+
+// PurgeDeletedSecret - The purge deleted secret operation removes the secret permanently, without the possibility of recovery.
+// This operation can only be enabled on a soft-delete enabled vault. This operation requires the
+// secrets/purge permission.
+// If the operation fails it returns an *azcore.ResponseError type.
+//
+// Generated from API version 7.4
+// - name - The name of the secret.
+// - options - PurgeDeletedSecretOptions contains the optional parameters for the Client.PurgeDeletedSecret method.
+func (client *Client) PurgeDeletedSecret(ctx context.Context, name string, options *PurgeDeletedSecretOptions) (PurgeDeletedSecretResponse, error) {
+ req, err := client.purgeDeletedSecretCreateRequest(ctx, name, options)
+ if err != nil {
+ return PurgeDeletedSecretResponse{}, err
+ }
+ resp, err := client.internal.Pipeline().Do(req)
+ if err != nil {
+ return PurgeDeletedSecretResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusNoContent) {
+ return PurgeDeletedSecretResponse{}, runtime.NewResponseError(resp)
+ }
+ return PurgeDeletedSecretResponse{}, nil
+}
+
+// purgeDeletedSecretCreateRequest creates the PurgeDeletedSecret request.
+func (client *Client) purgeDeletedSecretCreateRequest(ctx context.Context, name string, options *PurgeDeletedSecretOptions) (*policy.Request, error) {
+ urlPath := "/deletedsecrets/{secret-name}"
+ if name == "" {
+ return nil, errors.New("parameter name cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{secret-name}", url.PathEscape(name))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.endpoint, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "7.4")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// RecoverDeletedSecret - Recovers the deleted secret in the specified vault. This operation can only be performed on a soft-delete
+// enabled vault. This operation requires the secrets/recover permission.
+// If the operation fails it returns an *azcore.ResponseError type.
+//
+// Generated from API version 7.4
+// - name - The name of the deleted secret.
+// - options - RecoverDeletedSecretOptions contains the optional parameters for the Client.RecoverDeletedSecret method.
+func (client *Client) RecoverDeletedSecret(ctx context.Context, name string, options *RecoverDeletedSecretOptions) (RecoverDeletedSecretResponse, error) {
+ req, err := client.recoverDeletedSecretCreateRequest(ctx, name, options)
+ if err != nil {
+ return RecoverDeletedSecretResponse{}, err
+ }
+ resp, err := client.internal.Pipeline().Do(req)
+ if err != nil {
+ return RecoverDeletedSecretResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return RecoverDeletedSecretResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.recoverDeletedSecretHandleResponse(resp)
+}
+
+// recoverDeletedSecretCreateRequest creates the RecoverDeletedSecret request.
+func (client *Client) recoverDeletedSecretCreateRequest(ctx context.Context, name string, options *RecoverDeletedSecretOptions) (*policy.Request, error) {
+ urlPath := "/deletedsecrets/{secret-name}/recover"
+ if name == "" {
+ return nil, errors.New("parameter name cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{secret-name}", url.PathEscape(name))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.endpoint, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "7.4")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// recoverDeletedSecretHandleResponse handles the RecoverDeletedSecret response.
+func (client *Client) recoverDeletedSecretHandleResponse(resp *http.Response) (RecoverDeletedSecretResponse, error) {
+ result := RecoverDeletedSecretResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.SecretBundle); err != nil {
+ return RecoverDeletedSecretResponse{}, err
+ }
+ return result, nil
+}
+
+// RestoreSecret - Restores a backed up secret, and all its versions, to a vault. This operation requires the secrets/restore
+// permission.
+// If the operation fails it returns an *azcore.ResponseError type.
+//
+// Generated from API version 7.4
+// - parameters - The parameters to restore the secret.
+// - options - RestoreSecretOptions contains the optional parameters for the Client.RestoreSecret method.
+func (client *Client) RestoreSecret(ctx context.Context, parameters RestoreSecretParameters, options *RestoreSecretOptions) (RestoreSecretResponse, error) {
+ req, err := client.restoreSecretCreateRequest(ctx, parameters, options)
+ if err != nil {
+ return RestoreSecretResponse{}, err
+ }
+ resp, err := client.internal.Pipeline().Do(req)
+ if err != nil {
+ return RestoreSecretResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return RestoreSecretResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.restoreSecretHandleResponse(resp)
+}
+
+// restoreSecretCreateRequest creates the RestoreSecret request.
+func (client *Client) restoreSecretCreateRequest(ctx context.Context, parameters RestoreSecretParameters, options *RestoreSecretOptions) (*policy.Request, error) {
+ urlPath := "/secrets/restore"
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.endpoint, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "7.4")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
+
+// restoreSecretHandleResponse handles the RestoreSecret response.
+func (client *Client) restoreSecretHandleResponse(resp *http.Response) (RestoreSecretResponse, error) {
+ result := RestoreSecretResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.SecretBundle); err != nil {
+ return RestoreSecretResponse{}, err
+ }
+ return result, nil
+}
+
+// SetSecret - The SET operation adds a secret to the Azure Key Vault. If the named secret already exists, Azure Key Vault
+// creates a new version of that secret. This operation requires the secrets/set permission.
+// If the operation fails it returns an *azcore.ResponseError type.
+//
+// Generated from API version 7.4
+// - name - The name of the secret. The value you provide may be copied globally for the purpose of running the service.
+// The value provided should not include personally identifiable or sensitive information.
+// - parameters - The parameters for setting the secret.
+// - options - SetSecretOptions contains the optional parameters for the Client.SetSecret method.
+func (client *Client) SetSecret(ctx context.Context, name string, parameters SetSecretParameters, options *SetSecretOptions) (SetSecretResponse, error) {
+ req, err := client.setSecretCreateRequest(ctx, name, parameters, options)
+ if err != nil {
+ return SetSecretResponse{}, err
+ }
+ resp, err := client.internal.Pipeline().Do(req)
+ if err != nil {
+ return SetSecretResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return SetSecretResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.setSecretHandleResponse(resp)
+}
+
+// setSecretCreateRequest creates the SetSecret request.
+func (client *Client) setSecretCreateRequest(ctx context.Context, name string, parameters SetSecretParameters, options *SetSecretOptions) (*policy.Request, error) {
+ urlPath := "/secrets/{secret-name}"
+ if name == "" {
+ return nil, errors.New("parameter name cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{secret-name}", url.PathEscape(name))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.endpoint, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "7.4")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
+
+// setSecretHandleResponse handles the SetSecret response.
+func (client *Client) setSecretHandleResponse(resp *http.Response) (SetSecretResponse, error) {
+ result := SetSecretResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.SecretBundle); err != nil {
+ return SetSecretResponse{}, err
+ }
+ return result, nil
+}
+
+// UpdateSecret - The UPDATE operation changes specified attributes of an existing stored secret. Attributes that are not
+// specified in the request are left unchanged. The value of a secret itself cannot be changed.
+// This operation requires the secrets/set permission.
+// If the operation fails it returns an *azcore.ResponseError type.
+//
+// Generated from API version 7.4
+// - name - The name of the secret.
+// - version - The version of the secret.
+// - parameters - The parameters for update secret operation.
+// - options - UpdateSecretOptions contains the optional parameters for the Client.UpdateSecret method.
+func (client *Client) UpdateSecret(ctx context.Context, name string, version string, parameters UpdateSecretParameters, options *UpdateSecretOptions) (UpdateSecretResponse, error) {
+ req, err := client.updateSecretCreateRequest(ctx, name, version, parameters, options)
+ if err != nil {
+ return UpdateSecretResponse{}, err
+ }
+ resp, err := client.internal.Pipeline().Do(req)
+ if err != nil {
+ return UpdateSecretResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return UpdateSecretResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.updateSecretHandleResponse(resp)
+}
+
+// updateSecretCreateRequest creates the UpdateSecret request.
+func (client *Client) updateSecretCreateRequest(ctx context.Context, name string, version string, parameters UpdateSecretParameters, options *UpdateSecretOptions) (*policy.Request, error) {
+ urlPath := "/secrets/{secret-name}/{secret-version}"
+ if name == "" {
+ return nil, errors.New("parameter name cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{secret-name}", url.PathEscape(name))
+ urlPath = strings.ReplaceAll(urlPath, "{secret-version}", url.PathEscape(version))
+ req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.endpoint, urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "7.4")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, runtime.MarshalAsJSON(req, parameters)
+}
+
+// updateSecretHandleResponse handles the UpdateSecret response.
+func (client *Client) updateSecretHandleResponse(resp *http.Response) (UpdateSecretResponse, error) {
+ result := UpdateSecretResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.SecretBundle); err != nil {
+ return UpdateSecretResponse{}, err
+ }
+ return result, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/constants.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/constants.go
new file mode 100644
index 0000000000..d897d67a12
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/constants.go
@@ -0,0 +1,63 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+// DO NOT EDIT.
+
+package azsecrets
+
+// DeletionRecoveryLevel - Reflects the deletion recovery level currently in effect for secrets in the current vault. If it
+// contains 'Purgeable', the secret can be permanently deleted by a privileged user; otherwise, only the
+// system can purge the secret, at the end of the retention interval.
+type DeletionRecoveryLevel string
+
+const (
+ // DeletionRecoveryLevelCustomizedRecoverable - Denotes a vault state in which deletion is recoverable without the possibility
+ // for immediate and permanent deletion (i.e. purge when 7<= SoftDeleteRetentionInDays < 90).This level guarantees the recoverability
+ // of the deleted entity during the retention interval and while the subscription is still available.
+ DeletionRecoveryLevelCustomizedRecoverable DeletionRecoveryLevel = "CustomizedRecoverable"
+ // DeletionRecoveryLevelCustomizedRecoverableProtectedSubscription - Denotes a vault and subscription state in which deletion
+ // is recoverable, immediate and permanent deletion (i.e. purge) is not permitted, and in which the subscription itself cannot
+ // be permanently canceled when 7<= SoftDeleteRetentionInDays < 90. This level guarantees the recoverability of the deleted
+ // entity during the retention interval, and also reflects the fact that the subscription itself cannot be cancelled.
+ DeletionRecoveryLevelCustomizedRecoverableProtectedSubscription DeletionRecoveryLevel = "CustomizedRecoverable+ProtectedSubscription"
+ // DeletionRecoveryLevelCustomizedRecoverablePurgeable - Denotes a vault state in which deletion is recoverable, and which
+ // also permits immediate and permanent deletion (i.e. purge when 7<= SoftDeleteRetentionInDays < 90). This level guarantees
+ // the recoverability of the deleted entity during the retention interval, unless a Purge operation is requested, or the subscription
+ // is cancelled.
+ DeletionRecoveryLevelCustomizedRecoverablePurgeable DeletionRecoveryLevel = "CustomizedRecoverable+Purgeable"
+ // DeletionRecoveryLevelPurgeable - Denotes a vault state in which deletion is an irreversible operation, without the possibility
+ // for recovery. This level corresponds to no protection being available against a Delete operation; the data is irretrievably
+ // lost upon accepting a Delete operation at the entity level or higher (vault, resource group, subscription etc.)
+ DeletionRecoveryLevelPurgeable DeletionRecoveryLevel = "Purgeable"
+ // DeletionRecoveryLevelRecoverable - Denotes a vault state in which deletion is recoverable without the possibility for immediate
+ // and permanent deletion (i.e. purge). This level guarantees the recoverability of the deleted entity during the retention
+ // interval(90 days) and while the subscription is still available. System wil permanently delete it after 90 days, if not
+ // recovered
+ DeletionRecoveryLevelRecoverable DeletionRecoveryLevel = "Recoverable"
+ // DeletionRecoveryLevelRecoverableProtectedSubscription - Denotes a vault and subscription state in which deletion is recoverable
+ // within retention interval (90 days), immediate and permanent deletion (i.e. purge) is not permitted, and in which the subscription
+ // itself cannot be permanently canceled. System wil permanently delete it after 90 days, if not recovered
+ DeletionRecoveryLevelRecoverableProtectedSubscription DeletionRecoveryLevel = "Recoverable+ProtectedSubscription"
+ // DeletionRecoveryLevelRecoverablePurgeable - Denotes a vault state in which deletion is recoverable, and which also permits
+ // immediate and permanent deletion (i.e. purge). This level guarantees the recoverability of the deleted entity during the
+ // retention interval (90 days), unless a Purge operation is requested, or the subscription is cancelled. System wil permanently
+ // delete it after 90 days, if not recovered
+ DeletionRecoveryLevelRecoverablePurgeable DeletionRecoveryLevel = "Recoverable+Purgeable"
+)
+
+// PossibleDeletionRecoveryLevelValues returns the possible values for the DeletionRecoveryLevel const type.
+func PossibleDeletionRecoveryLevelValues() []DeletionRecoveryLevel {
+ return []DeletionRecoveryLevel{
+ DeletionRecoveryLevelCustomizedRecoverable,
+ DeletionRecoveryLevelCustomizedRecoverableProtectedSubscription,
+ DeletionRecoveryLevelCustomizedRecoverablePurgeable,
+ DeletionRecoveryLevelPurgeable,
+ DeletionRecoveryLevelRecoverable,
+ DeletionRecoveryLevelRecoverableProtectedSubscription,
+ DeletionRecoveryLevelRecoverablePurgeable,
+ }
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/custom_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/custom_client.go
new file mode 100644
index 0000000000..04500bd080
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/custom_client.go
@@ -0,0 +1,63 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+
+package azsecrets
+
+// this file contains handwritten additions to the generated code
+
+import (
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal"
+)
+
+// ClientOptions contains optional settings for Client.
+type ClientOptions struct {
+ azcore.ClientOptions
+
+ // DisableChallengeResourceVerification controls whether the policy requires the
+ // authentication challenge resource to match the Key Vault or Managed HSM domain.
+ // See https://aka.ms/azsdk/blog/vault-uri for more information.
+ DisableChallengeResourceVerification bool
+}
+
+// NewClient creates a client that accesses a Key Vault's secrets. You should validate that
+// vaultURL references a valid Key Vault. See https://aka.ms/azsdk/blog/vault-uri for details.
+func NewClient(vaultURL string, credential azcore.TokenCredential, options *ClientOptions) (*Client, error) {
+ if options == nil {
+ options = &ClientOptions{}
+ }
+ authPolicy := internal.NewKeyVaultChallengePolicy(
+ credential,
+ &internal.KeyVaultChallengePolicyOptions{
+ DisableChallengeResourceVerification: options.DisableChallengeResourceVerification,
+ },
+ )
+ azcoreClient, err := azcore.NewClient("azsecrets.Client", version, runtime.PipelineOptions{PerRetry: []policy.Policy{authPolicy}}, &options.ClientOptions)
+ if err != nil {
+ return nil, err
+ }
+ return &Client{endpoint: vaultURL, internal: azcoreClient}, nil
+}
+
+// ID is a secret's unique ID, containing its name and version.
+type ID string
+
+// Name of the secret.
+func (i *ID) Name() string {
+ _, name, _ := internal.ParseID((*string)(i))
+ return *name
+}
+
+// Version of the secret. This returns an empty string when the ID contains no version.
+func (i *ID) Version() string {
+ _, _, version := internal.ParseID((*string)(i))
+ if version == nil {
+ return ""
+ }
+ return *version
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/models.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/models.go
new file mode 100644
index 0000000000..87be9ab52c
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/models.go
@@ -0,0 +1,268 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+// DO NOT EDIT.
+
+package azsecrets
+
+import "time"
+
+// BackupSecretResult - The backup secret result, containing the backup blob.
+type BackupSecretResult struct {
+ // READ-ONLY; The backup blob containing the backed up secret.
+ Value []byte `json:"value,omitempty" azure:"ro"`
+}
+
+// BackupSecretOptions contains the optional parameters for the Client.BackupSecret method.
+type BackupSecretOptions struct {
+ // placeholder for future optional parameters
+}
+
+// DeleteSecretOptions contains the optional parameters for the Client.DeleteSecret method.
+type DeleteSecretOptions struct {
+ // placeholder for future optional parameters
+}
+
+// GetDeletedSecretOptions contains the optional parameters for the Client.GetDeletedSecret method.
+type GetDeletedSecretOptions struct {
+ // placeholder for future optional parameters
+}
+
+// GetSecretOptions contains the optional parameters for the Client.GetSecret method.
+type GetSecretOptions struct {
+ // placeholder for future optional parameters
+}
+
+// ListDeletedSecretsOptions contains the optional parameters for the Client.NewListDeletedSecretsPager method.
+type ListDeletedSecretsOptions struct {
+ // Maximum number of results to return in a page. If not specified the service will return up to 25 results.
+ MaxResults *int32
+}
+
+// ListSecretVersionsOptions contains the optional parameters for the Client.NewListSecretVersionsPager method.
+type ListSecretVersionsOptions struct {
+ // Maximum number of results to return in a page. If not specified, the service will return up to 25 results.
+ MaxResults *int32
+}
+
+// ListSecretsOptions contains the optional parameters for the Client.NewListSecretsPager method.
+type ListSecretsOptions struct {
+ // Maximum number of results to return in a page. If not specified, the service will return up to 25 results.
+ MaxResults *int32
+}
+
+// PurgeDeletedSecretOptions contains the optional parameters for the Client.PurgeDeletedSecret method.
+type PurgeDeletedSecretOptions struct {
+ // placeholder for future optional parameters
+}
+
+// RecoverDeletedSecretOptions contains the optional parameters for the Client.RecoverDeletedSecret method.
+type RecoverDeletedSecretOptions struct {
+ // placeholder for future optional parameters
+}
+
+// RestoreSecretOptions contains the optional parameters for the Client.RestoreSecret method.
+type RestoreSecretOptions struct {
+ // placeholder for future optional parameters
+}
+
+// SetSecretOptions contains the optional parameters for the Client.SetSecret method.
+type SetSecretOptions struct {
+ // placeholder for future optional parameters
+}
+
+// UpdateSecretOptions contains the optional parameters for the Client.UpdateSecret method.
+type UpdateSecretOptions struct {
+ // placeholder for future optional parameters
+}
+
+// DeletedSecretBundle - A Deleted Secret consisting of its previous id, attributes and its tags, as well as information on
+// when it will be purged.
+type DeletedSecretBundle struct {
+ // The secret management attributes.
+ Attributes *SecretAttributes `json:"attributes,omitempty"`
+
+ // The content type of the secret.
+ ContentType *string `json:"contentType,omitempty"`
+
+ // The secret id.
+ ID *ID `json:"id,omitempty"`
+
+ // The url of the recovery object, used to identify and recover the deleted secret.
+ RecoveryID *string `json:"recoveryId,omitempty"`
+
+ // Application specific metadata in the form of key-value pairs.
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // The secret value.
+ Value *string `json:"value,omitempty"`
+
+ // READ-ONLY; The time when the secret was deleted, in UTC
+ DeletedDate *time.Time `json:"deletedDate,omitempty" azure:"ro"`
+
+ // READ-ONLY; If this is a secret backing a KV certificate, then this field specifies the corresponding key backing the KV
+ // certificate.
+ Kid *string `json:"kid,omitempty" azure:"ro"`
+
+ // READ-ONLY; True if the secret's lifetime is managed by key vault. If this is a secret backing a certificate, then managed
+ // will be true.
+ Managed *bool `json:"managed,omitempty" azure:"ro"`
+
+ // READ-ONLY; The time when the secret is scheduled to be purged, in UTC
+ ScheduledPurgeDate *time.Time `json:"scheduledPurgeDate,omitempty" azure:"ro"`
+}
+
+// DeletedSecretItem - The deleted secret item containing metadata about the deleted secret.
+type DeletedSecretItem struct {
+ // The secret management attributes.
+ Attributes *SecretAttributes `json:"attributes,omitempty"`
+
+ // Type of the secret value such as a password.
+ ContentType *string `json:"contentType,omitempty"`
+
+ // Secret identifier.
+ ID *ID `json:"id,omitempty"`
+
+ // The url of the recovery object, used to identify and recover the deleted secret.
+ RecoveryID *string `json:"recoveryId,omitempty"`
+
+ // Application specific metadata in the form of key-value pairs.
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // READ-ONLY; The time when the secret was deleted, in UTC
+ DeletedDate *time.Time `json:"deletedDate,omitempty" azure:"ro"`
+
+ // READ-ONLY; True if the secret's lifetime is managed by key vault. If this is a key backing a certificate, then managed
+ // will be true.
+ Managed *bool `json:"managed,omitempty" azure:"ro"`
+
+ // READ-ONLY; The time when the secret is scheduled to be purged, in UTC
+ ScheduledPurgeDate *time.Time `json:"scheduledPurgeDate,omitempty" azure:"ro"`
+}
+
+// DeletedSecretListResult - The deleted secret list result
+type DeletedSecretListResult struct {
+ // READ-ONLY; The URL to get the next set of deleted secrets.
+ NextLink *string `json:"nextLink,omitempty" azure:"ro"`
+
+ // READ-ONLY; A response message containing a list of the deleted secrets in the vault along with a link to the next page
+ // of deleted secrets
+ Value []*DeletedSecretItem `json:"value,omitempty" azure:"ro"`
+}
+
+// RestoreSecretParameters - The secret restore parameters.
+type RestoreSecretParameters struct {
+ // REQUIRED; The backup blob associated with a secret bundle.
+ SecretBundleBackup []byte `json:"value,omitempty"`
+}
+
+// SecretAttributes - The secret management attributes.
+type SecretAttributes struct {
+ // Determines whether the object is enabled.
+ Enabled *bool `json:"enabled,omitempty"`
+
+ // Expiry date in UTC.
+ Expires *time.Time `json:"exp,omitempty"`
+
+ // Not before date in UTC.
+ NotBefore *time.Time `json:"nbf,omitempty"`
+
+ // READ-ONLY; Creation time in UTC.
+ Created *time.Time `json:"created,omitempty" azure:"ro"`
+
+ // READ-ONLY; softDelete data retention days. Value should be >=7 and <=90 when softDelete enabled, otherwise 0.
+ RecoverableDays *int32 `json:"recoverableDays,omitempty" azure:"ro"`
+
+ // READ-ONLY; Reflects the deletion recovery level currently in effect for secrets in the current vault. If it contains 'Purgeable',
+ // the secret can be permanently deleted by a privileged user; otherwise, only the
+ // system can purge the secret, at the end of the retention interval.
+ RecoveryLevel *DeletionRecoveryLevel `json:"recoveryLevel,omitempty" azure:"ro"`
+
+ // READ-ONLY; Last updated time in UTC.
+ Updated *time.Time `json:"updated,omitempty" azure:"ro"`
+}
+
+// SecretBundle - A secret consisting of a value, id and its attributes.
+type SecretBundle struct {
+ // The secret management attributes.
+ Attributes *SecretAttributes `json:"attributes,omitempty"`
+
+ // The content type of the secret.
+ ContentType *string `json:"contentType,omitempty"`
+
+ // The secret id.
+ ID *ID `json:"id,omitempty"`
+
+ // Application specific metadata in the form of key-value pairs.
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // The secret value.
+ Value *string `json:"value,omitempty"`
+
+ // READ-ONLY; If this is a secret backing a KV certificate, then this field specifies the corresponding key backing the KV
+ // certificate.
+ Kid *string `json:"kid,omitempty" azure:"ro"`
+
+ // READ-ONLY; True if the secret's lifetime is managed by key vault. If this is a secret backing a certificate, then managed
+ // will be true.
+ Managed *bool `json:"managed,omitempty" azure:"ro"`
+}
+
+// SecretItem - The secret item containing secret metadata.
+type SecretItem struct {
+ // The secret management attributes.
+ Attributes *SecretAttributes `json:"attributes,omitempty"`
+
+ // Type of the secret value such as a password.
+ ContentType *string `json:"contentType,omitempty"`
+
+ // Secret identifier.
+ ID *ID `json:"id,omitempty"`
+
+ // Application specific metadata in the form of key-value pairs.
+ Tags map[string]*string `json:"tags,omitempty"`
+
+ // READ-ONLY; True if the secret's lifetime is managed by key vault. If this is a key backing a certificate, then managed
+ // will be true.
+ Managed *bool `json:"managed,omitempty" azure:"ro"`
+}
+
+// SecretListResult - The secret list result.
+type SecretListResult struct {
+ // READ-ONLY; The URL to get the next set of secrets.
+ NextLink *string `json:"nextLink,omitempty" azure:"ro"`
+
+ // READ-ONLY; A response message containing a list of secrets in the key vault along with a link to the next page of secrets.
+ Value []*SecretItem `json:"value,omitempty" azure:"ro"`
+}
+
+// SetSecretParameters - The secret set parameters.
+type SetSecretParameters struct {
+ // REQUIRED; The value of the secret.
+ Value *string `json:"value,omitempty"`
+
+ // Type of the secret value such as a password.
+ ContentType *string `json:"contentType,omitempty"`
+
+ // The secret management attributes.
+ SecretAttributes *SecretAttributes `json:"attributes,omitempty"`
+
+ // Application specific metadata in the form of key-value pairs.
+ Tags map[string]*string `json:"tags,omitempty"`
+}
+
+// UpdateSecretParameters - The secret update parameters.
+type UpdateSecretParameters struct {
+ // Type of the secret value such as a password.
+ ContentType *string `json:"contentType,omitempty"`
+
+ // The secret management attributes.
+ SecretAttributes *SecretAttributes `json:"attributes,omitempty"`
+
+ // Application specific metadata in the form of key-value pairs.
+ Tags map[string]*string `json:"tags,omitempty"`
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/models_serde.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/models_serde.go
new file mode 100644
index 0000000000..72d5541271
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/models_serde.go
@@ -0,0 +1,501 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+// DO NOT EDIT.
+
+package azsecrets
+
+import (
+ "encoding/json"
+ "fmt"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "reflect"
+)
+
+// MarshalJSON implements the json.Marshaller interface for type BackupSecretResult.
+func (b BackupSecretResult) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populateByteArray(objectMap, "value", b.Value, runtime.Base64URLFormat)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type BackupSecretResult.
+func (b *BackupSecretResult) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", b, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "value":
+ err = runtime.DecodeByteArray(string(val), &b.Value, runtime.Base64URLFormat)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", b, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type DeletedSecretBundle.
+func (d DeletedSecretBundle) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "attributes", d.Attributes)
+ populate(objectMap, "contentType", d.ContentType)
+ populateTimeUnix(objectMap, "deletedDate", d.DeletedDate)
+ populate(objectMap, "id", d.ID)
+ populate(objectMap, "kid", d.Kid)
+ populate(objectMap, "managed", d.Managed)
+ populate(objectMap, "recoveryId", d.RecoveryID)
+ populateTimeUnix(objectMap, "scheduledPurgeDate", d.ScheduledPurgeDate)
+ populate(objectMap, "tags", d.Tags)
+ populate(objectMap, "value", d.Value)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type DeletedSecretBundle.
+func (d *DeletedSecretBundle) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", d, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "attributes":
+ err = unpopulate(val, "Attributes", &d.Attributes)
+ delete(rawMsg, key)
+ case "contentType":
+ err = unpopulate(val, "ContentType", &d.ContentType)
+ delete(rawMsg, key)
+ case "deletedDate":
+ err = unpopulateTimeUnix(val, "DeletedDate", &d.DeletedDate)
+ delete(rawMsg, key)
+ case "id":
+ err = unpopulate(val, "ID", &d.ID)
+ delete(rawMsg, key)
+ case "kid":
+ err = unpopulate(val, "Kid", &d.Kid)
+ delete(rawMsg, key)
+ case "managed":
+ err = unpopulate(val, "Managed", &d.Managed)
+ delete(rawMsg, key)
+ case "recoveryId":
+ err = unpopulate(val, "RecoveryID", &d.RecoveryID)
+ delete(rawMsg, key)
+ case "scheduledPurgeDate":
+ err = unpopulateTimeUnix(val, "ScheduledPurgeDate", &d.ScheduledPurgeDate)
+ delete(rawMsg, key)
+ case "tags":
+ err = unpopulate(val, "Tags", &d.Tags)
+ delete(rawMsg, key)
+ case "value":
+ err = unpopulate(val, "Value", &d.Value)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", d, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type DeletedSecretItem.
+func (d DeletedSecretItem) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "attributes", d.Attributes)
+ populate(objectMap, "contentType", d.ContentType)
+ populateTimeUnix(objectMap, "deletedDate", d.DeletedDate)
+ populate(objectMap, "id", d.ID)
+ populate(objectMap, "managed", d.Managed)
+ populate(objectMap, "recoveryId", d.RecoveryID)
+ populateTimeUnix(objectMap, "scheduledPurgeDate", d.ScheduledPurgeDate)
+ populate(objectMap, "tags", d.Tags)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type DeletedSecretItem.
+func (d *DeletedSecretItem) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", d, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "attributes":
+ err = unpopulate(val, "Attributes", &d.Attributes)
+ delete(rawMsg, key)
+ case "contentType":
+ err = unpopulate(val, "ContentType", &d.ContentType)
+ delete(rawMsg, key)
+ case "deletedDate":
+ err = unpopulateTimeUnix(val, "DeletedDate", &d.DeletedDate)
+ delete(rawMsg, key)
+ case "id":
+ err = unpopulate(val, "ID", &d.ID)
+ delete(rawMsg, key)
+ case "managed":
+ err = unpopulate(val, "Managed", &d.Managed)
+ delete(rawMsg, key)
+ case "recoveryId":
+ err = unpopulate(val, "RecoveryID", &d.RecoveryID)
+ delete(rawMsg, key)
+ case "scheduledPurgeDate":
+ err = unpopulateTimeUnix(val, "ScheduledPurgeDate", &d.ScheduledPurgeDate)
+ delete(rawMsg, key)
+ case "tags":
+ err = unpopulate(val, "Tags", &d.Tags)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", d, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type DeletedSecretListResult.
+func (d DeletedSecretListResult) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "nextLink", d.NextLink)
+ populate(objectMap, "value", d.Value)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type DeletedSecretListResult.
+func (d *DeletedSecretListResult) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", d, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "nextLink":
+ err = unpopulate(val, "NextLink", &d.NextLink)
+ delete(rawMsg, key)
+ case "value":
+ err = unpopulate(val, "Value", &d.Value)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", d, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type RestoreSecretParameters.
+func (r RestoreSecretParameters) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populateByteArray(objectMap, "value", r.SecretBundleBackup, runtime.Base64URLFormat)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type RestoreSecretParameters.
+func (r *RestoreSecretParameters) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "value":
+ err = runtime.DecodeByteArray(string(val), &r.SecretBundleBackup, runtime.Base64URLFormat)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type SecretAttributes.
+func (s SecretAttributes) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populateTimeUnix(objectMap, "created", s.Created)
+ populate(objectMap, "enabled", s.Enabled)
+ populateTimeUnix(objectMap, "exp", s.Expires)
+ populateTimeUnix(objectMap, "nbf", s.NotBefore)
+ populate(objectMap, "recoverableDays", s.RecoverableDays)
+ populate(objectMap, "recoveryLevel", s.RecoveryLevel)
+ populateTimeUnix(objectMap, "updated", s.Updated)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type SecretAttributes.
+func (s *SecretAttributes) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "created":
+ err = unpopulateTimeUnix(val, "Created", &s.Created)
+ delete(rawMsg, key)
+ case "enabled":
+ err = unpopulate(val, "Enabled", &s.Enabled)
+ delete(rawMsg, key)
+ case "exp":
+ err = unpopulateTimeUnix(val, "Expires", &s.Expires)
+ delete(rawMsg, key)
+ case "nbf":
+ err = unpopulateTimeUnix(val, "NotBefore", &s.NotBefore)
+ delete(rawMsg, key)
+ case "recoverableDays":
+ err = unpopulate(val, "RecoverableDays", &s.RecoverableDays)
+ delete(rawMsg, key)
+ case "recoveryLevel":
+ err = unpopulate(val, "RecoveryLevel", &s.RecoveryLevel)
+ delete(rawMsg, key)
+ case "updated":
+ err = unpopulateTimeUnix(val, "Updated", &s.Updated)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type SecretBundle.
+func (s SecretBundle) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "attributes", s.Attributes)
+ populate(objectMap, "contentType", s.ContentType)
+ populate(objectMap, "id", s.ID)
+ populate(objectMap, "kid", s.Kid)
+ populate(objectMap, "managed", s.Managed)
+ populate(objectMap, "tags", s.Tags)
+ populate(objectMap, "value", s.Value)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type SecretBundle.
+func (s *SecretBundle) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "attributes":
+ err = unpopulate(val, "Attributes", &s.Attributes)
+ delete(rawMsg, key)
+ case "contentType":
+ err = unpopulate(val, "ContentType", &s.ContentType)
+ delete(rawMsg, key)
+ case "id":
+ err = unpopulate(val, "ID", &s.ID)
+ delete(rawMsg, key)
+ case "kid":
+ err = unpopulate(val, "Kid", &s.Kid)
+ delete(rawMsg, key)
+ case "managed":
+ err = unpopulate(val, "Managed", &s.Managed)
+ delete(rawMsg, key)
+ case "tags":
+ err = unpopulate(val, "Tags", &s.Tags)
+ delete(rawMsg, key)
+ case "value":
+ err = unpopulate(val, "Value", &s.Value)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type SecretItem.
+func (s SecretItem) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "attributes", s.Attributes)
+ populate(objectMap, "contentType", s.ContentType)
+ populate(objectMap, "id", s.ID)
+ populate(objectMap, "managed", s.Managed)
+ populate(objectMap, "tags", s.Tags)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type SecretItem.
+func (s *SecretItem) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "attributes":
+ err = unpopulate(val, "Attributes", &s.Attributes)
+ delete(rawMsg, key)
+ case "contentType":
+ err = unpopulate(val, "ContentType", &s.ContentType)
+ delete(rawMsg, key)
+ case "id":
+ err = unpopulate(val, "ID", &s.ID)
+ delete(rawMsg, key)
+ case "managed":
+ err = unpopulate(val, "Managed", &s.Managed)
+ delete(rawMsg, key)
+ case "tags":
+ err = unpopulate(val, "Tags", &s.Tags)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type SecretListResult.
+func (s SecretListResult) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "nextLink", s.NextLink)
+ populate(objectMap, "value", s.Value)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type SecretListResult.
+func (s *SecretListResult) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "nextLink":
+ err = unpopulate(val, "NextLink", &s.NextLink)
+ delete(rawMsg, key)
+ case "value":
+ err = unpopulate(val, "Value", &s.Value)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type SetSecretParameters.
+func (s SetSecretParameters) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "contentType", s.ContentType)
+ populate(objectMap, "attributes", s.SecretAttributes)
+ populate(objectMap, "tags", s.Tags)
+ populate(objectMap, "value", s.Value)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type SetSecretParameters.
+func (s *SetSecretParameters) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "contentType":
+ err = unpopulate(val, "ContentType", &s.ContentType)
+ delete(rawMsg, key)
+ case "attributes":
+ err = unpopulate(val, "SecretAttributes", &s.SecretAttributes)
+ delete(rawMsg, key)
+ case "tags":
+ err = unpopulate(val, "Tags", &s.Tags)
+ delete(rawMsg, key)
+ case "value":
+ err = unpopulate(val, "Value", &s.Value)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type UpdateSecretParameters.
+func (u UpdateSecretParameters) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "contentType", u.ContentType)
+ populate(objectMap, "attributes", u.SecretAttributes)
+ populate(objectMap, "tags", u.Tags)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type UpdateSecretParameters.
+func (u *UpdateSecretParameters) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", u, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "contentType":
+ err = unpopulate(val, "ContentType", &u.ContentType)
+ delete(rawMsg, key)
+ case "attributes":
+ err = unpopulate(val, "SecretAttributes", &u.SecretAttributes)
+ delete(rawMsg, key)
+ case "tags":
+ err = unpopulate(val, "Tags", &u.Tags)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", u, err)
+ }
+ }
+ return nil
+}
+
+func populate(m map[string]any, k string, v any) {
+ if v == nil {
+ return
+ } else if azcore.IsNullValue(v) {
+ m[k] = nil
+ } else if !reflect.ValueOf(v).IsNil() {
+ m[k] = v
+ }
+}
+
+func populateByteArray(m map[string]any, k string, b []byte, f runtime.Base64Encoding) {
+ if azcore.IsNullValue(b) {
+ m[k] = nil
+ } else if len(b) == 0 {
+ return
+ } else {
+ m[k] = runtime.EncodeByteArray(b, f)
+ }
+}
+
+func unpopulate(data json.RawMessage, fn string, v any) error {
+ if data == nil {
+ return nil
+ }
+ if err := json.Unmarshal(data, v); err != nil {
+ return fmt.Errorf("struct field %s: %v", fn, err)
+ }
+ return nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/response_types.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/response_types.go
new file mode 100644
index 0000000000..517acaabb9
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/response_types.go
@@ -0,0 +1,70 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+// DO NOT EDIT.
+
+package azsecrets
+
+// BackupSecretResponse contains the response from method Client.BackupSecret.
+type BackupSecretResponse struct {
+ BackupSecretResult
+}
+
+// DeleteSecretResponse contains the response from method Client.DeleteSecret.
+type DeleteSecretResponse struct {
+ DeletedSecretBundle
+}
+
+// GetDeletedSecretResponse contains the response from method Client.GetDeletedSecret.
+type GetDeletedSecretResponse struct {
+ DeletedSecretBundle
+}
+
+// GetSecretResponse contains the response from method Client.GetSecret.
+type GetSecretResponse struct {
+ SecretBundle
+}
+
+// ListDeletedSecretsResponse contains the response from method Client.NewListDeletedSecretsPager.
+type ListDeletedSecretsResponse struct {
+ DeletedSecretListResult
+}
+
+// ListSecretVersionsResponse contains the response from method Client.NewListSecretVersionsPager.
+type ListSecretVersionsResponse struct {
+ SecretListResult
+}
+
+// ListSecretsResponse contains the response from method Client.NewListSecretsPager.
+type ListSecretsResponse struct {
+ SecretListResult
+}
+
+// PurgeDeletedSecretResponse contains the response from method Client.PurgeDeletedSecret.
+type PurgeDeletedSecretResponse struct {
+ // placeholder for future response values
+}
+
+// RecoverDeletedSecretResponse contains the response from method Client.RecoverDeletedSecret.
+type RecoverDeletedSecretResponse struct {
+ SecretBundle
+}
+
+// RestoreSecretResponse contains the response from method Client.RestoreSecret.
+type RestoreSecretResponse struct {
+ SecretBundle
+}
+
+// SetSecretResponse contains the response from method Client.SetSecret.
+type SetSecretResponse struct {
+ SecretBundle
+}
+
+// UpdateSecretResponse contains the response from method Client.UpdateSecret.
+type UpdateSecretResponse struct {
+ SecretBundle
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/test-resources.json b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/test-resources.json
new file mode 100644
index 0000000000..20f726f332
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/test-resources.json
@@ -0,0 +1,331 @@
+{
+ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
+ "contentVersion": "1.0.0.0",
+ "parameters": {
+ "baseName": {
+ "type": "string",
+ "defaultValue": "[resourceGroup().name]",
+ "metadata": {
+ "description": "The base resource name."
+ }
+ },
+ "tenantId": {
+ "type": "string",
+ "defaultValue": "72f988bf-86f1-41af-91ab-2d7cd011db47",
+ "metadata": {
+ "description": "The tenant ID to which the application and resources belong."
+ }
+ },
+ "testApplicationOid": {
+ "type": "string",
+ "metadata": {
+ "description": "The client OID to grant access to test resources."
+ }
+ },
+ "provisionerApplicationOid": {
+ "type": "string",
+ "metadata": {
+ "description": "The provisioner OID to grant access to test resources."
+ }
+ },
+ "location": {
+ "type": "string",
+ "defaultValue": "[resourceGroup().location]",
+ "metadata": {
+ "description": "The location of the resource. By default, this is the same as the resource group."
+ }
+ },
+ "hsmLocation": {
+ "type": "string",
+ "defaultValue": "southcentralus",
+ "allowedValues": [
+ "australiacentral",
+ "canadacentral",
+ "centralus",
+ "eastasia",
+ "eastus2",
+ "koreacentral",
+ "northeurope",
+ "southafricanorth",
+ "southcentralus",
+ "southeastasia",
+ "switzerlandnorth",
+ "uksouth",
+ "westeurope",
+ "westus"
+ ],
+ "metadata": {
+ "description": "The location of the Managed HSM. By default, this is 'southcentralus'."
+ }
+ },
+ "enableHsm": {
+ "type": "bool",
+ "defaultValue": false,
+ "metadata": {
+ "description": "Whether to enable deployment of Managed HSM. The default is false."
+ }
+ },
+ "keyVaultSku": {
+ "type": "string",
+ "defaultValue": "premium",
+ "metadata": {
+ "description": "Key Vault SKU to deploy. The default is 'premium'"
+ }
+ },
+ "attestationImage": {
+ "type": "string",
+ "defaultValue": "keyvault-mock-attestation:latest",
+ "metadata": {
+ "description": "The container image name and tag to use for the attestation mock service."
+ }
+ }
+ },
+ "variables": {
+ "attestationFarm": "[concat(parameters('baseName'), 'farm')]",
+ "attestationSite": "[concat(parameters('baseName'), 'site')]",
+ "attestationUri": "[concat('DOCKER|azsdkengsys.azurecr.io/', parameters('attestationImage'))]",
+ "kvApiVersion": "2019-09-01",
+ "kvName": "[parameters('baseName')]",
+ "hsmApiVersion": "2021-04-01-preview",
+ "hsmName": "[concat(parameters('baseName'), 'hsm')]",
+ "mgmtApiVersion": "2019-04-01",
+ "blobContainerName": "backup",
+ "primaryAccountName": "[concat(parameters('baseName'), 'prim')]",
+ "encryption": {
+ "services": {
+ "blob": {
+ "enabled": true
+ }
+ },
+ "keySource": "Microsoft.Storage"
+ },
+ "networkAcls": {
+ "bypass": "AzureServices",
+ "virtualNetworkRules": [],
+ "ipRules": [],
+ "defaultAction": "Allow"
+ }
+ },
+ "resources": [
+ {
+ "type": "Microsoft.KeyVault/vaults",
+ "apiVersion": "[variables('kvApiVersion')]",
+ "name": "[variables('kvName')]",
+ "location": "[parameters('location')]",
+ "properties": {
+ "sku": {
+ "family": "A",
+ "name": "[parameters('keyVaultSku')]"
+ },
+ "tenantId": "[parameters('tenantId')]",
+ "accessPolicies": [
+ {
+ "tenantId": "[parameters('tenantId')]",
+ "objectId": "[parameters('testApplicationOid')]",
+ "permissions": {
+ "keys": [
+ "backup",
+ "create",
+ "decrypt",
+ "delete",
+ "encrypt",
+ "get",
+ "import",
+ "list",
+ "purge",
+ "recover",
+ "release",
+ "restore",
+ "rotate",
+ "sign",
+ "unwrapKey",
+ "update",
+ "verify",
+ "wrapKey"
+ ],
+ "secrets": [
+ "backup",
+ "delete",
+ "get",
+ "list",
+ "purge",
+ "recover",
+ "restore",
+ "set"
+ ],
+ "certificates": [
+ "backup",
+ "create",
+ "delete",
+ "deleteissuers",
+ "get",
+ "getissuers",
+ "import",
+ "list",
+ "listissuers",
+ "managecontacts",
+ "manageissuers",
+ "purge",
+ "recover",
+ "restore",
+ "setissuers",
+ "update"
+ ]
+ }
+ }
+ ],
+ "enabledForDeployment": false,
+ "enabledForDiskEncryption": false,
+ "enabledForTemplateDeployment": false,
+ "enableSoftDelete": true,
+ "softDeleteRetentionInDays": 7
+ }
+ },
+ {
+ "type": "Microsoft.KeyVault/managedHSMs",
+ "apiVersion": "[variables('hsmApiVersion')]",
+ "name": "[variables('hsmName')]",
+ "condition": "[parameters('enableHsm')]",
+ "location": "[parameters('hsmLocation')]",
+ "sku": {
+ "family": "B",
+ "name": "Standard_B1"
+ },
+ "properties": {
+ "tenantId": "[parameters('tenantId')]",
+ "initialAdminObjectIds": "[union(array(parameters('testApplicationOid')), array(parameters('provisionerApplicationOid')))]",
+ "enablePurgeProtection": false,
+ "enableSoftDelete": true,
+ "softDeleteRetentionInDays": 7,
+ "publicNetworkAccess": "Enabled",
+ "networkAcls": "[variables('networkAcls')]"
+ }
+ },
+ {
+ "type": "Microsoft.Storage/storageAccounts",
+ "apiVersion": "[variables('mgmtApiVersion')]",
+ "name": "[variables('primaryAccountName')]",
+ "location": "[parameters('location')]",
+ "sku": {
+ "name": "Standard_RAGRS",
+ "tier": "Standard"
+ },
+ "kind": "StorageV2",
+ "properties": {
+ "networkAcls": "[variables('networkAcls')]",
+ "supportsHttpsTrafficOnly": true,
+ "encryption": "[variables('encryption')]",
+ "accessTier": "Hot"
+ }
+ },
+ {
+ "type": "Microsoft.Storage/storageAccounts/blobServices",
+ "apiVersion": "2019-06-01",
+ "name": "[concat(variables('primaryAccountName'), '/default')]",
+ "dependsOn": [
+ "[resourceId('Microsoft.Storage/storageAccounts', variables('primaryAccountName'))]"
+ ],
+ "sku": {
+ "name": "Standard_RAGRS",
+ "tier": "Standard"
+ },
+ "properties": {
+ "cors": {
+ "corsRules": []
+ },
+ "deleteRetentionPolicy": {
+ "enabled": false
+ }
+ }
+ },
+ {
+ "type": "Microsoft.Storage/storageAccounts/blobServices/containers",
+ "apiVersion": "2019-06-01",
+ "name": "[concat(variables('primaryAccountName'), '/default/', variables('blobContainerName'))]",
+ "dependsOn": [
+ "[resourceId('Microsoft.Storage/storageAccounts/blobServices', variables('primaryAccountName'), 'default')]",
+ "[resourceId('Microsoft.Storage/storageAccounts', variables('primaryAccountName'))]"
+ ],
+ "properties": {
+ "publicAccess": "None"
+ }
+ },
+ {
+
+ "type": "Microsoft.Web/serverfarms",
+ "apiVersion": "2020-12-01",
+ "name": "[variables('attestationFarm')]",
+ "condition": "[parameters('enableHsm')]",
+ "location": "[parameters('location')]",
+ "kind": "linux",
+ "sku": {
+ "name": "B1"
+ },
+ "properties": {
+ "reserved": true
+ }
+ },
+ {
+
+ "type": "Microsoft.Web/sites",
+ "apiVersion": "2020-12-01",
+ "name": "[variables('attestationSite')]",
+ "condition": "[parameters('enableHsm')]",
+ "dependsOn": [
+ "[resourceId('Microsoft.Web/serverfarms', variables('attestationFarm'))]"
+ ],
+ "location": "[parameters('location')]",
+ "properties": {
+ "httpsOnly": true,
+ "serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('attestationFarm'))]",
+ "siteConfig": {
+ "name": "[variables('attestationSite')]",
+ "alwaysOn": true,
+ "linuxFxVersion": "[variables('attestationUri')]",
+ "appSettings": [
+ {
+ "name": "WEBSITES_ENABLE_APP_SERVICE_STORAGE",
+ "value": "false"
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "outputs": {
+ "AZURE_KEYVAULT_URL": {
+ "type": "string",
+ "value": "[reference(variables('kvName')).vaultUri]"
+ },
+ "AZURE_MANAGEDHSM_URL": {
+ "type": "string",
+ "condition": "[parameters('enableHsm')]",
+ "value": "[reference(variables('hsmName')).hsmUri]"
+ },
+ "KEYVAULT_SKU": {
+ "type": "string",
+ "value": "[reference(parameters('baseName')).sku.name]"
+ },
+ "CLIENT_OBJECTID": {
+ "type": "string",
+ "value": "[parameters('testApplicationOid')]"
+ },
+ "BLOB_STORAGE_ACCOUNT_NAME": {
+ "type": "string",
+ "value": "[variables('primaryAccountName')]"
+ },
+ "BLOB_PRIMARY_STORAGE_ACCOUNT_KEY": {
+ "type": "string",
+ "value": "[listKeys(variables('primaryAccountName'), variables('mgmtApiVersion')).keys[0].value]"
+ },
+ "BLOB_CONTAINER_NAME" : {
+ "type": "string",
+ "value": "[variables('blobContainerName')]"
+ },
+ "AZURE_KEYVAULT_ATTESTATION_URL": {
+ "type": "string",
+ "condition": "[parameters('enableHsm')]",
+ "value": "[format('https://{0}/', reference(variables('attestationSite')).defaultHostName)]"
+ }
+ }
+}
\ No newline at end of file
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/time_unix.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/time_unix.go
new file mode 100644
index 0000000000..ed8ce0f9dd
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/time_unix.go
@@ -0,0 +1,62 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+// DO NOT EDIT.
+
+package azsecrets
+
+import (
+ "encoding/json"
+ "fmt"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "reflect"
+ "strings"
+ "time"
+)
+
+type timeUnix time.Time
+
+func (t timeUnix) MarshalJSON() ([]byte, error) {
+ return json.Marshal(time.Time(t).Unix())
+}
+
+func (t *timeUnix) UnmarshalJSON(data []byte) error {
+ var seconds int64
+ if err := json.Unmarshal(data, &seconds); err != nil {
+ return err
+ }
+ *t = timeUnix(time.Unix(seconds, 0))
+ return nil
+}
+
+func (t timeUnix) String() string {
+ return fmt.Sprintf("%d", time.Time(t).Unix())
+}
+
+func populateTimeUnix(m map[string]any, k string, t *time.Time) {
+ if t == nil {
+ return
+ } else if azcore.IsNullValue(t) {
+ m[k] = nil
+ return
+ } else if reflect.ValueOf(t).IsNil() {
+ return
+ }
+ m[k] = (*timeUnix)(t)
+}
+
+func unpopulateTimeUnix(data json.RawMessage, fn string, t **time.Time) error {
+ if data == nil || strings.EqualFold(string(data), "null") {
+ return nil
+ }
+ var aux timeUnix
+ if err := json.Unmarshal(data, &aux); err != nil {
+ return fmt.Errorf("struct field %s: %v", fn, err)
+ }
+ *t = (*time.Time)(&aux)
+ return nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/version.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/version.go
new file mode 100644
index 0000000000..885158bcbe
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets/version.go
@@ -0,0 +1,12 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+package azsecrets
+
+const (
+ moduleName = "azsecrets"
+ version = "v0.12.0"
+)
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal/CHANGELOG.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal/CHANGELOG.md
new file mode 100644
index 0000000000..95d77dc952
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal/CHANGELOG.md
@@ -0,0 +1,54 @@
+# Release History
+
+## 0.7.1 (2022-11-14)
+
+### Bugs Fixed
+* `KeyVaultChallengePolicy` uses incorrect authentication scope when challenge verification is disabled
+
+## 0.7.0 (2022-09-20)
+
+### Breaking Changes
+* Added `*KeyVaultChallengePolicyOptions` parameter to `NewKeyVaultChallengePolicy`
+
+## 0.6.0 (2022-09-12)
+
+### Breaking Changes
+* Verify the challenge resource matches the vault domain. See https://aka.ms/azsdk/blog/vault-uri for more information.
+* `ParseID()` no longer appends a trailing slash to vault URLs
+
+## 0.5.0 (2022-05-12)
+
+### Breaking Changes
+* Removed `ExpiringResource` and its dependencies in favor of shared implementation from `internal/temporal`.
+
+### Other Changes
+* Updated to latest versions of `azcore` and `internal`.
+
+## 0.4.0 (2022-04-22)
+
+### Breaking Changes
+* Updated `ExpiringResource` and its dependent types to use generics.
+
+### Other Changes
+* Remove reference to `TokenRequestOptions.TenantID` as it's been removed and wasn't working anyways.
+
+## 0.3.0 (2022-04-04)
+
+### Features Added
+* Adds the `ParseKeyvaultID` function to parse an ID into the Key Vault URL, item name, and item version
+
+### Breaking Changes
+* Updates to azcore v0.23.0
+
+## 0.2.1 (2022-01-31)
+
+### Bugs Fixed
+* Avoid retries on terminal failures (#16932)
+
+## 0.2.0 (2022-01-12)
+
+### Bugs Fixed
+* Fixes a bug with Managed HSMs that prevented correctly authorizing requests.
+
+## 0.1.0 (2021-11-09)
+* This is the initial release of the `internal` library for KeyVault
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal/LICENSE.txt b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal/LICENSE.txt
new file mode 100644
index 0000000000..d1ca00f20a
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal/LICENSE.txt
@@ -0,0 +1,21 @@
+ MIT License
+
+ Copyright (c) Microsoft Corporation. All rights reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE
\ No newline at end of file
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal/README.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal/README.md
new file mode 100644
index 0000000000..bd4826705d
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal/README.md
@@ -0,0 +1,23 @@
+# Key Vault Internal Module for Go
+
+[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal)
+
+This module contains shared code for all the Key Vault SDKs, mainly the challenge authentication policy.
+
+## Contributing
+This project welcomes contributions and suggestions. Most contributions require
+you to agree to a Contributor License Agreement (CLA) declaring that you have
+the right to, and actually do, grant us the rights to use your contribution.
+For details, visit [https://cla.microsoft.com](https://cla.microsoft.com).
+
+When you submit a pull request, a CLA-bot will automatically determine whether
+you need to provide a CLA and decorate the PR appropriately (e.g., label,
+comment). Simply follow the instructions provided by the bot. You will only
+need to do this once across all repos using our CLA.
+
+This project has adopted the
+[Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
+For more information, see the
+[Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
+or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any
+additional questions or comments.
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal/challenge_policy.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal/challenge_policy.go
new file mode 100644
index 0000000000..4cc1e429a6
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal/challenge_policy.go
@@ -0,0 +1,255 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+
+package internal
+
+import (
+ "bytes"
+ "errors"
+ "fmt"
+ "net/http"
+ "net/url"
+ "strings"
+ "time"
+
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/streaming"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
+ "github.com/Azure/azure-sdk-for-go/sdk/internal/errorinfo"
+ "github.com/Azure/azure-sdk-for-go/sdk/internal/temporal"
+)
+
+const (
+ headerAuthorization = "Authorization"
+ challengeMatchError = `challenge resource "%s" doesn't match the requested domain. Set DisableChallengeResourceVerification to true in your client options to disable. See https://aka.ms/azsdk/blog/vault-uri for more information`
+ bearerHeader = "Bearer "
+)
+
+type KeyVaultChallengePolicyOptions struct {
+ // DisableChallengeResourceVerification controls whether the policy requires the
+ // authentication challenge resource to match the Key Vault or Managed HSM domain
+ DisableChallengeResourceVerification bool
+}
+
+type KeyVaultChallengePolicy struct {
+ // mainResource is the resource to be retrieved using the tenant specified in the credential
+ mainResource *temporal.Resource[azcore.AccessToken, acquiringResourceState]
+ cred azcore.TokenCredential
+ scope *string
+ tenantID *string
+ verifyChallengeResource bool
+}
+
+func NewKeyVaultChallengePolicy(cred azcore.TokenCredential, opts *KeyVaultChallengePolicyOptions) *KeyVaultChallengePolicy {
+ if opts == nil {
+ opts = &KeyVaultChallengePolicyOptions{}
+ }
+ return &KeyVaultChallengePolicy{
+ cred: cred,
+ mainResource: temporal.NewResource(acquire),
+ verifyChallengeResource: !opts.DisableChallengeResourceVerification,
+ }
+}
+
+func (k *KeyVaultChallengePolicy) Do(req *policy.Request) (*http.Response, error) {
+ as := acquiringResourceState{
+ p: k,
+ req: req,
+ }
+
+ if k.scope == nil || k.tenantID == nil {
+ // First request, get both to get the token
+ challengeReq, err := k.getChallengeRequest(*req)
+ if err != nil {
+ return nil, err
+ }
+
+ resp, err := challengeReq.Next()
+ if err != nil {
+ return nil, err
+ }
+
+ if resp.StatusCode > 399 && resp.StatusCode != http.StatusUnauthorized {
+ // the request failed for some other reason, don't try any further
+ return resp, nil
+ }
+ err = k.findScopeAndTenant(resp, req.Raw())
+ if err != nil {
+ return nil, err
+ }
+ }
+
+ tk, err := k.mainResource.Get(as)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Raw().Header.Set(
+ headerAuthorization,
+ fmt.Sprintf("%s%s", bearerHeader, tk.Token),
+ )
+
+ // send a copy of the request
+ cloneReq := req.Clone(req.Raw().Context())
+ resp, cloneReqErr := cloneReq.Next()
+ if cloneReqErr != nil {
+ return nil, cloneReqErr
+ }
+
+ // If it fails and has a 401, try it with a new token
+ if resp.StatusCode == 401 {
+ // Force a new token
+ k.mainResource.Expire()
+
+ // Find the scope and tenant again in case they have changed
+ err := k.findScopeAndTenant(resp, req.Raw())
+ if err != nil {
+ // Error parsing challenge, doomed to fail. Return
+ return resp, cloneReqErr
+ }
+
+ tk, err := k.mainResource.Get(as)
+ if err != nil {
+ return resp, err
+ }
+
+ req.Raw().Header.Set(
+ headerAuthorization,
+ bearerHeader+tk.Token,
+ )
+
+ // send the original request now
+ return req.Next()
+ }
+
+ return resp, err
+}
+
+// parses Tenant ID from auth challenge
+// https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000
+func parseTenant(url string) *string {
+ if url == "" {
+ return to.Ptr("")
+ }
+ parts := strings.Split(url, "/")
+ tenant := parts[3]
+ tenant = strings.ReplaceAll(tenant, ",", "")
+ return &tenant
+}
+
+type challengePolicyError struct {
+ err error
+}
+
+func (c *challengePolicyError) Error() string {
+ return c.err.Error()
+}
+
+func (*challengePolicyError) NonRetriable() {
+ // marker method
+}
+
+func (c *challengePolicyError) Unwrap() error {
+ return c.err
+}
+
+var _ errorinfo.NonRetriable = (*challengePolicyError)(nil)
+
+// sets the k.scope and k.tenantID from the WWW-Authenticate header
+func (k *KeyVaultChallengePolicy) findScopeAndTenant(resp *http.Response, req *http.Request) error {
+ authHeader := resp.Header.Get("WWW-Authenticate")
+ if authHeader == "" {
+ return &challengePolicyError{err: errors.New("response has no WWW-Authenticate header for challenge authentication")}
+ }
+
+ // Strip down to auth and resource
+ // Format is "Bearer authorization=\"\" resource=\"\"" OR
+ // "Bearer authorization=\"\" scope=\"\" resource=\"\""
+ authHeader = strings.ReplaceAll(authHeader, "Bearer ", "")
+
+ parts := strings.Split(authHeader, " ")
+
+ vals := map[string]string{}
+ for _, part := range parts {
+ subParts := strings.Split(part, "=")
+ if len(subParts) == 2 {
+ stripped := strings.ReplaceAll(subParts[1], "\"", "")
+ stripped = strings.TrimSuffix(stripped, ",")
+ vals[subParts[0]] = stripped
+ }
+ }
+
+ k.tenantID = parseTenant(vals["authorization"])
+ scope := ""
+ if v, ok := vals["scope"]; ok {
+ scope = v
+ } else if v, ok := vals["resource"]; ok {
+ scope = v
+ }
+ if scope == "" {
+ return &challengePolicyError{err: errors.New("could not find a valid resource in the WWW-Authenticate header")}
+ }
+ if k.verifyChallengeResource {
+ // the challenge resource's host must match the requested vault's host
+ parsed, err := url.Parse(scope)
+ if err != nil {
+ return &challengePolicyError{err: fmt.Errorf(`invalid challenge resource "%s": %v`, scope, err)}
+ }
+ if !strings.HasSuffix(req.URL.Host, "."+parsed.Host) {
+ return &challengePolicyError{err: fmt.Errorf(challengeMatchError, scope)}
+ }
+ }
+ if !strings.HasSuffix(scope, "/.default") {
+ scope += "/.default"
+ }
+ k.scope = &scope
+ return nil
+}
+
+func (k KeyVaultChallengePolicy) getChallengeRequest(orig policy.Request) (*policy.Request, error) {
+ req, err := runtime.NewRequest(orig.Raw().Context(), orig.Raw().Method, orig.Raw().URL.String())
+ if err != nil {
+ return nil, &challengePolicyError{err: err}
+ }
+
+ req.Raw().Header = orig.Raw().Header
+ req.Raw().Header.Set("Content-Length", "0")
+ req.Raw().ContentLength = 0
+
+ copied := orig.Clone(orig.Raw().Context())
+ copied.Raw().Body = req.Body()
+ copied.Raw().ContentLength = 0
+ copied.Raw().Header.Set("Content-Length", "0")
+ err = copied.SetBody(streaming.NopCloser(bytes.NewReader([]byte{})), "application/json")
+ if err != nil {
+ return nil, &challengePolicyError{err: err}
+ }
+ copied.Raw().Header.Del("Content-Type")
+
+ return copied, err
+}
+
+type acquiringResourceState struct {
+ req *policy.Request
+ p *KeyVaultChallengePolicy
+}
+
+// acquire acquires or updates the resource; only one
+// thread/goroutine at a time ever calls this function
+func acquire(state acquiringResourceState) (newResource azcore.AccessToken, newExpiration time.Time, err error) {
+ tk, err := state.p.cred.GetToken(
+ state.req.Raw().Context(),
+ policy.TokenRequestOptions{
+ Scopes: []string{*state.p.scope},
+ },
+ )
+ if err != nil {
+ return azcore.AccessToken{}, time.Time{}, err
+ }
+ return tk, tk.ExpiresOn, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal/ci.keyvault.yml b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal/ci.keyvault.yml
new file mode 100644
index 0000000000..d72c650135
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal/ci.keyvault.yml
@@ -0,0 +1,28 @@
+# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
+trigger:
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/keyvault/internal
+
+pr:
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/keyvault/internal
+
+stages:
+- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
+ parameters:
+ ServiceDirectory: 'keyvault/internal'
+ RunLiveTests: false
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal/constants.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal/constants.go
new file mode 100644
index 0000000000..cd94eb0d83
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal/constants.go
@@ -0,0 +1,11 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+
+package internal
+
+const (
+ version = "v0.7.1" //nolint
+)
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal/doc.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal/doc.go
new file mode 100644
index 0000000000..d8f93492f5
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal/doc.go
@@ -0,0 +1,7 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+
+package internal
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal/parse.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal/parse.go
new file mode 100644
index 0000000000..8511832d27
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal/parse.go
@@ -0,0 +1,37 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+package internal
+
+import (
+ "fmt"
+ "net/url"
+ "strings"
+
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
+)
+
+// ParseID parses "https://myvaultname.vault.azure.net/keys/key1053998307/b86c2e6ad9054f4abf69cc185b99aa60"
+// into "https://myvaultname.managedhsm.azure.net/", "key1053998307", and "b86c2e6ad9054f4abf69cc185b99aa60"
+func ParseID(id *string) (*string, *string, *string) {
+ if id == nil {
+ return nil, nil, nil
+ }
+ parsed, err := url.Parse(*id)
+ if err != nil {
+ return nil, nil, nil
+ }
+
+ url := fmt.Sprintf("%s://%s", parsed.Scheme, parsed.Host)
+ split := strings.Split(strings.TrimPrefix(parsed.Path, "/"), "/")
+ if len(split) < 3 {
+ if len(split) == 2 {
+ return &url, to.Ptr(split[1]), nil
+ }
+ return &url, nil, nil
+ }
+
+ return &url, to.Ptr(split[1]), to.Ptr(split[2])
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/CHANGELOG.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/CHANGELOG.md
index 9aeb8a37e9..b363a53ef6 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/CHANGELOG.md
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/CHANGELOG.md
@@ -1,5 +1,26 @@
# Release History
+## 5.7.0 (2024-04-26)
+### Features Added
+
+- New value `DiffDiskPlacementNvmeDisk` added to enum type `DiffDiskPlacement`
+- New value `DiskCreateOptionTypesCopy`, `DiskCreateOptionTypesRestore` added to enum type `DiskCreateOptionTypes`
+- New enum type `ResourceIDOptionsForGetCapacityReservationGroups` with values `ResourceIDOptionsForGetCapacityReservationGroupsAll`, `ResourceIDOptionsForGetCapacityReservationGroupsCreatedInSubscription`, `ResourceIDOptionsForGetCapacityReservationGroupsSharedWithSubscription`
+- New struct `EventGridAndResourceGraph`
+- New struct `ScheduledEventsAdditionalPublishingTargets`
+- New struct `ScheduledEventsPolicy`
+- New struct `UserInitiatedReboot`
+- New struct `UserInitiatedRedeploy`
+- New field `ResourceIDsOnly` in struct `CapacityReservationGroupsClientListBySubscriptionOptions`
+- New field `SourceResource` in struct `DataDisk`
+- New field `Caching`, `DeleteOption`, `DiskEncryptionSet`, `WriteAcceleratorEnabled` in struct `DataDisksToAttach`
+- New field `ScheduledEventsPolicy` in struct `VirtualMachineProperties`
+- New field `ScheduledEventsPolicy` in struct `VirtualMachineScaleSetProperties`
+- New field `ForceUpdateOSDiskForEphemeral` in struct `VirtualMachineScaleSetReimageParameters`
+- New field `DiffDiskSettings` in struct `VirtualMachineScaleSetUpdateOSDisk`
+- New field `ForceUpdateOSDiskForEphemeral` in struct `VirtualMachineScaleSetVMReimageParameters`
+
+
## 5.6.0 (2024-03-22)
### Features Added
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/assets.json b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/assets.json
index 9a0140774f..db9b10d43d 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/assets.json
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/assets.json
@@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "go",
"TagPrefix": "go/resourcemanager/compute/armcompute",
- "Tag": "go/resourcemanager/compute/armcompute_79d4095593"
+ "Tag": "go/resourcemanager/compute/armcompute_6e7bd6d107"
}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/autorest.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/autorest.md
index 71b871d524..5f836a6585 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/autorest.md
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/autorest.md
@@ -5,9 +5,9 @@
``` yaml
azure-arm: true
require:
-- https://github.com/Azure/azure-rest-api-specs/blob/e4009d2f8d3bf0271757e522c7d1c1997e193d44/specification/compute/resource-manager/readme.md
-- https://github.com/Azure/azure-rest-api-specs/blob/e4009d2f8d3bf0271757e522c7d1c1997e193d44/specification/compute/resource-manager/readme.go.md
+- https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/compute/resource-manager/readme.md
+- https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/compute/resource-manager/readme.go.md
license-header: MICROSOFT_MIT_NO_VERSION
-module-version: 5.6.0
-tag: package-2023-07-03
+module-version: 5.7.0
+tag: package-2024-03-01
```
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/availabilitysets_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/availabilitysets_client.go
index 55572022a9..b9b8536f86 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/availabilitysets_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/availabilitysets_client.go
@@ -47,7 +47,7 @@ func NewAvailabilitySetsClient(subscriptionID string, credential azcore.TokenCre
// CreateOrUpdate - Create or update an availability set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - availabilitySetName - The name of the availability set.
// - parameters - Parameters supplied to the Create Availability Set operation.
@@ -95,7 +95,7 @@ func (client *AvailabilitySetsClient) createOrUpdateCreateRequest(ctx context.Co
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@@ -116,7 +116,7 @@ func (client *AvailabilitySetsClient) createOrUpdateHandleResponse(resp *http.Re
// Delete - Delete an availability set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - availabilitySetName - The name of the availability set.
// - options - AvailabilitySetsClientDeleteOptions contains the optional parameters for the AvailabilitySetsClient.Delete method.
@@ -161,7 +161,7 @@ func (client *AvailabilitySetsClient) deleteCreateRequest(ctx context.Context, r
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -170,7 +170,7 @@ func (client *AvailabilitySetsClient) deleteCreateRequest(ctx context.Context, r
// Get - Retrieves information about an availability set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - availabilitySetName - The name of the availability set.
// - options - AvailabilitySetsClientGetOptions contains the optional parameters for the AvailabilitySetsClient.Get method.
@@ -216,7 +216,7 @@ func (client *AvailabilitySetsClient) getCreateRequest(ctx context.Context, reso
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -233,7 +233,7 @@ func (client *AvailabilitySetsClient) getHandleResponse(resp *http.Response) (Av
// NewListPager - Lists all availability sets in a resource group.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - options - AvailabilitySetsClientListOptions contains the optional parameters for the AvailabilitySetsClient.NewListPager
// method.
@@ -276,7 +276,7 @@ func (client *AvailabilitySetsClient) listCreateRequest(ctx context.Context, res
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -294,7 +294,7 @@ func (client *AvailabilitySetsClient) listHandleResponse(resp *http.Response) (A
// NewListAvailableSizesPager - Lists all available virtual machine sizes that can be used to create a new virtual machine
// in an existing availability set.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - availabilitySetName - The name of the availability set.
// - options - AvailabilitySetsClientListAvailableSizesOptions contains the optional parameters for the AvailabilitySetsClient.NewListAvailableSizesPager
@@ -343,7 +343,7 @@ func (client *AvailabilitySetsClient) listAvailableSizesCreateRequest(ctx contex
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -360,7 +360,7 @@ func (client *AvailabilitySetsClient) listAvailableSizesHandleResponse(resp *htt
// NewListBySubscriptionPager - Lists all availability sets in a subscription.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - options - AvailabilitySetsClientListBySubscriptionOptions contains the optional parameters for the AvailabilitySetsClient.NewListBySubscriptionPager
// method.
func (client *AvailabilitySetsClient) NewListBySubscriptionPager(options *AvailabilitySetsClientListBySubscriptionOptions) *runtime.Pager[AvailabilitySetsClientListBySubscriptionResponse] {
@@ -401,7 +401,7 @@ func (client *AvailabilitySetsClient) listBySubscriptionCreateRequest(ctx contex
if options != nil && options.Expand != nil {
reqQP.Set("$expand", *options.Expand)
}
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -419,7 +419,7 @@ func (client *AvailabilitySetsClient) listBySubscriptionHandleResponse(resp *htt
// Update - Update an availability set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - availabilitySetName - The name of the availability set.
// - parameters - Parameters supplied to the Update Availability Set operation.
@@ -466,7 +466,7 @@ func (client *AvailabilitySetsClient) updateCreateRequest(ctx context.Context, r
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/capacityreservationgroups_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/capacityreservationgroups_client.go
index cc26cd0d44..51a4106584 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/capacityreservationgroups_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/capacityreservationgroups_client.go
@@ -49,7 +49,7 @@ func NewCapacityReservationGroupsClient(subscriptionID string, credential azcore
// https://aka.ms/CapacityReservation for more details.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - capacityReservationGroupName - The name of the capacity reservation group.
// - parameters - Parameters supplied to the Create capacity reservation Group.
@@ -97,7 +97,7 @@ func (client *CapacityReservationGroupsClient) createOrUpdateCreateRequest(ctx c
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@@ -120,7 +120,7 @@ func (client *CapacityReservationGroupsClient) createOrUpdateHandleResponse(resp
// the reservation group have also been deleted. Please refer to https://aka.ms/CapacityReservation for more details.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - capacityReservationGroupName - The name of the capacity reservation group.
// - options - CapacityReservationGroupsClientDeleteOptions contains the optional parameters for the CapacityReservationGroupsClient.Delete
@@ -166,7 +166,7 @@ func (client *CapacityReservationGroupsClient) deleteCreateRequest(ctx context.C
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -175,7 +175,7 @@ func (client *CapacityReservationGroupsClient) deleteCreateRequest(ctx context.C
// Get - The operation that retrieves information about a capacity reservation group.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - capacityReservationGroupName - The name of the capacity reservation group.
// - options - CapacityReservationGroupsClientGetOptions contains the optional parameters for the CapacityReservationGroupsClient.Get
@@ -225,7 +225,7 @@ func (client *CapacityReservationGroupsClient) getCreateRequest(ctx context.Cont
if options != nil && options.Expand != nil {
reqQP.Set("$expand", string(*options.Expand))
}
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -243,7 +243,7 @@ func (client *CapacityReservationGroupsClient) getHandleResponse(resp *http.Resp
// NewListByResourceGroupPager - Lists all of the capacity reservation groups in the specified resource group. Use the nextLink
// property in the response to get the next page of capacity reservation groups.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - options - CapacityReservationGroupsClientListByResourceGroupOptions contains the optional parameters for the CapacityReservationGroupsClient.NewListByResourceGroupPager
// method.
@@ -289,7 +289,7 @@ func (client *CapacityReservationGroupsClient) listByResourceGroupCreateRequest(
if options != nil && options.Expand != nil {
reqQP.Set("$expand", string(*options.Expand))
}
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -307,7 +307,7 @@ func (client *CapacityReservationGroupsClient) listByResourceGroupHandleResponse
// NewListBySubscriptionPager - Lists all of the capacity reservation groups in the subscription. Use the nextLink property
// in the response to get the next page of capacity reservation groups.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - options - CapacityReservationGroupsClientListBySubscriptionOptions contains the optional parameters for the CapacityReservationGroupsClient.NewListBySubscriptionPager
// method.
func (client *CapacityReservationGroupsClient) NewListBySubscriptionPager(options *CapacityReservationGroupsClientListBySubscriptionOptions) *runtime.Pager[CapacityReservationGroupsClientListBySubscriptionResponse] {
@@ -348,7 +348,10 @@ func (client *CapacityReservationGroupsClient) listBySubscriptionCreateRequest(c
if options != nil && options.Expand != nil {
reqQP.Set("$expand", string(*options.Expand))
}
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
+ if options != nil && options.ResourceIDsOnly != nil {
+ reqQP.Set("resourceIdsOnly", string(*options.ResourceIDsOnly))
+ }
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -367,7 +370,7 @@ func (client *CapacityReservationGroupsClient) listBySubscriptionHandleResponse(
// sharing profile may be modified.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - capacityReservationGroupName - The name of the capacity reservation group.
// - parameters - Parameters supplied to the Update capacity reservation Group operation.
@@ -415,7 +418,7 @@ func (client *CapacityReservationGroupsClient) updateCreateRequest(ctx context.C
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/capacityreservations_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/capacityreservations_client.go
index 951b0ac91c..aaf86c3a26 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/capacityreservations_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/capacityreservations_client.go
@@ -49,7 +49,7 @@ func NewCapacityReservationsClient(subscriptionID string, credential azcore.Toke
// details.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - capacityReservationGroupName - The name of the capacity reservation group.
// - capacityReservationName - The name of the capacity reservation.
@@ -78,7 +78,7 @@ func (client *CapacityReservationsClient) BeginCreateOrUpdate(ctx context.Contex
// details.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *CapacityReservationsClient) createOrUpdate(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, capacityReservationName string, parameters CapacityReservation, options *CapacityReservationsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
var err error
const operationName = "CapacityReservationsClient.BeginCreateOrUpdate"
@@ -124,7 +124,7 @@ func (client *CapacityReservationsClient) createOrUpdateCreateRequest(ctx contex
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@@ -138,7 +138,7 @@ func (client *CapacityReservationsClient) createOrUpdateCreateRequest(ctx contex
// https://aka.ms/CapacityReservation for more details.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - capacityReservationGroupName - The name of the capacity reservation group.
// - capacityReservationName - The name of the capacity reservation.
@@ -166,7 +166,7 @@ func (client *CapacityReservationsClient) BeginDelete(ctx context.Context, resou
// https://aka.ms/CapacityReservation for more details.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *CapacityReservationsClient) deleteOperation(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, capacityReservationName string, options *CapacityReservationsClientBeginDeleteOptions) (*http.Response, error) {
var err error
const operationName = "CapacityReservationsClient.BeginDelete"
@@ -212,7 +212,7 @@ func (client *CapacityReservationsClient) deleteCreateRequest(ctx context.Contex
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -221,7 +221,7 @@ func (client *CapacityReservationsClient) deleteCreateRequest(ctx context.Contex
// Get - The operation that retrieves information about the capacity reservation.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - capacityReservationGroupName - The name of the capacity reservation group.
// - capacityReservationName - The name of the capacity reservation.
@@ -276,7 +276,7 @@ func (client *CapacityReservationsClient) getCreateRequest(ctx context.Context,
if options != nil && options.Expand != nil {
reqQP.Set("$expand", string(*options.Expand))
}
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -294,7 +294,7 @@ func (client *CapacityReservationsClient) getHandleResponse(resp *http.Response)
// NewListByCapacityReservationGroupPager - Lists all of the capacity reservations in the specified capacity reservation group.
// Use the nextLink property in the response to get the next page of capacity reservations.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - capacityReservationGroupName - The name of the capacity reservation group.
// - options - CapacityReservationsClientListByCapacityReservationGroupOptions contains the optional parameters for the CapacityReservationsClient.NewListByCapacityReservationGroupPager
@@ -342,7 +342,7 @@ func (client *CapacityReservationsClient) listByCapacityReservationGroupCreateRe
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -360,7 +360,7 @@ func (client *CapacityReservationsClient) listByCapacityReservationGroupHandleRe
// BeginUpdate - The operation to update a capacity reservation.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - capacityReservationGroupName - The name of the capacity reservation group.
// - capacityReservationName - The name of the capacity reservation.
@@ -387,7 +387,7 @@ func (client *CapacityReservationsClient) BeginUpdate(ctx context.Context, resou
// Update - The operation to update a capacity reservation.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *CapacityReservationsClient) update(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, capacityReservationName string, parameters CapacityReservationUpdate, options *CapacityReservationsClientBeginUpdateOptions) (*http.Response, error) {
var err error
const operationName = "CapacityReservationsClient.BeginUpdate"
@@ -433,7 +433,7 @@ func (client *CapacityReservationsClient) updateCreateRequest(ctx context.Contex
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/constants.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/constants.go
index 73f3548e45..ab719dfdf0 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/constants.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/constants.go
@@ -10,7 +10,7 @@ package armcompute
const (
moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute"
- moduleVersion = "v5.6.0"
+ moduleVersion = "v5.7.0"
)
type AccessLevel string
@@ -333,15 +333,17 @@ func PossibleDiffDiskOptionsValues() []DiffDiskOptions {
}
// DiffDiskPlacement - Specifies the ephemeral disk placement for operating system disk. This property can be used by user
-// in the request to choose the location i.e, cache disk or resource disk space for Ephemeral OS disk
-// provisioning. For more information on Ephemeral OS disk size requirements, please refer Ephemeral OS disk size requirements
-// for Windows VM at
+// in the request to choose the location i.e, cache disk, resource disk or nvme disk space for
+// Ephemeral OS disk provisioning. For more information on Ephemeral OS disk size requirements, please refer Ephemeral OS
+// disk size requirements for Windows VM at
// https://docs.microsoft.com/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VM at
-// https://docs.microsoft.com/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements
+// https://docs.microsoft.com/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements. Minimum api-version for NvmeDisk:
+// 2024-03-01.
type DiffDiskPlacement string
const (
DiffDiskPlacementCacheDisk DiffDiskPlacement = "CacheDisk"
+ DiffDiskPlacementNvmeDisk DiffDiskPlacement = "NvmeDisk"
DiffDiskPlacementResourceDisk DiffDiskPlacement = "ResourceDisk"
)
@@ -349,6 +351,7 @@ const (
func PossibleDiffDiskPlacementValues() []DiffDiskPlacement {
return []DiffDiskPlacement{
DiffDiskPlacementCacheDisk,
+ DiffDiskPlacementNvmeDisk,
DiffDiskPlacementResourceDisk,
}
}
@@ -425,25 +428,31 @@ func PossibleDiskCreateOptionValues() []DiskCreateOption {
}
}
-// DiskCreateOptionTypes - Specifies how the virtual machine should be created. Possible values are: Attach. This value is
-// used when you are using a specialized disk to create the virtual machine. FromImage. This value is used
-// when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference
-// element described above. If you are using a marketplace image, you also
-// use the plan element previously described.
+// DiskCreateOptionTypes - Specifies how the virtual machine disk should be created. Possible values are Attach: This value
+// is used when you are using a specialized disk to create the virtual machine. FromImage: This value is
+// used when you are using an image to create the virtual machine. If you are using a platform image, you should also use
+// the imageReference element described above. If you are using a marketplace image,
+// you should also use the plan element previously described. Empty: This value is used when creating an empty data disk.
+// Copy: This value is used to create a data disk from a snapshot or another disk.
+// Restore: This value is used to create a data disk from a disk restore point.
type DiskCreateOptionTypes string
const (
DiskCreateOptionTypesAttach DiskCreateOptionTypes = "Attach"
+ DiskCreateOptionTypesCopy DiskCreateOptionTypes = "Copy"
DiskCreateOptionTypesEmpty DiskCreateOptionTypes = "Empty"
DiskCreateOptionTypesFromImage DiskCreateOptionTypes = "FromImage"
+ DiskCreateOptionTypesRestore DiskCreateOptionTypes = "Restore"
)
// PossibleDiskCreateOptionTypesValues returns the possible values for the DiskCreateOptionTypes const type.
func PossibleDiskCreateOptionTypesValues() []DiskCreateOptionTypes {
return []DiskCreateOptionTypes{
DiskCreateOptionTypesAttach,
+ DiskCreateOptionTypesCopy,
DiskCreateOptionTypesEmpty,
DiskCreateOptionTypesFromImage,
+ DiskCreateOptionTypesRestore,
}
}
@@ -1678,6 +1687,23 @@ func PossibleReplicationStatusTypesValues() []ReplicationStatusTypes {
}
}
+type ResourceIDOptionsForGetCapacityReservationGroups string
+
+const (
+ ResourceIDOptionsForGetCapacityReservationGroupsAll ResourceIDOptionsForGetCapacityReservationGroups = "All"
+ ResourceIDOptionsForGetCapacityReservationGroupsCreatedInSubscription ResourceIDOptionsForGetCapacityReservationGroups = "CreatedInSubscription"
+ ResourceIDOptionsForGetCapacityReservationGroupsSharedWithSubscription ResourceIDOptionsForGetCapacityReservationGroups = "SharedWithSubscription"
+)
+
+// PossibleResourceIDOptionsForGetCapacityReservationGroupsValues returns the possible values for the ResourceIDOptionsForGetCapacityReservationGroups const type.
+func PossibleResourceIDOptionsForGetCapacityReservationGroupsValues() []ResourceIDOptionsForGetCapacityReservationGroups {
+ return []ResourceIDOptionsForGetCapacityReservationGroups{
+ ResourceIDOptionsForGetCapacityReservationGroupsAll,
+ ResourceIDOptionsForGetCapacityReservationGroupsCreatedInSubscription,
+ ResourceIDOptionsForGetCapacityReservationGroupsSharedWithSubscription,
+ }
+}
+
// ResourceIdentityType - The type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned'
// includes both an implicitly created identity and a set of user assigned identities. The type 'None'
// will remove any identities from the virtual machine scale set.
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/dedicatedhostgroups_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/dedicatedhostgroups_client.go
index 99434bfabb..ae2c4f3667 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/dedicatedhostgroups_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/dedicatedhostgroups_client.go
@@ -48,7 +48,7 @@ func NewDedicatedHostGroupsClient(subscriptionID string, credential azcore.Token
// see Dedicated Host Documentation [https://go.microsoft.com/fwlink/?linkid=2082596]
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - hostGroupName - The name of the dedicated host group.
// - parameters - Parameters supplied to the Create Dedicated Host Group.
@@ -96,7 +96,7 @@ func (client *DedicatedHostGroupsClient) createOrUpdateCreateRequest(ctx context
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@@ -117,7 +117,7 @@ func (client *DedicatedHostGroupsClient) createOrUpdateHandleResponse(resp *http
// Delete - Delete a dedicated host group.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - hostGroupName - The name of the dedicated host group.
// - options - DedicatedHostGroupsClientDeleteOptions contains the optional parameters for the DedicatedHostGroupsClient.Delete
@@ -163,7 +163,7 @@ func (client *DedicatedHostGroupsClient) deleteCreateRequest(ctx context.Context
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -172,7 +172,7 @@ func (client *DedicatedHostGroupsClient) deleteCreateRequest(ctx context.Context
// Get - Retrieves information about a dedicated host group.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - hostGroupName - The name of the dedicated host group.
// - options - DedicatedHostGroupsClientGetOptions contains the optional parameters for the DedicatedHostGroupsClient.Get method.
@@ -221,7 +221,7 @@ func (client *DedicatedHostGroupsClient) getCreateRequest(ctx context.Context, r
if options != nil && options.Expand != nil {
reqQP.Set("$expand", string(*options.Expand))
}
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -239,7 +239,7 @@ func (client *DedicatedHostGroupsClient) getHandleResponse(resp *http.Response)
// NewListByResourceGroupPager - Lists all of the dedicated host groups in the specified resource group. Use the nextLink
// property in the response to get the next page of dedicated host groups.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - options - DedicatedHostGroupsClientListByResourceGroupOptions contains the optional parameters for the DedicatedHostGroupsClient.NewListByResourceGroupPager
// method.
@@ -282,7 +282,7 @@ func (client *DedicatedHostGroupsClient) listByResourceGroupCreateRequest(ctx co
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -300,7 +300,7 @@ func (client *DedicatedHostGroupsClient) listByResourceGroupHandleResponse(resp
// NewListBySubscriptionPager - Lists all of the dedicated host groups in the subscription. Use the nextLink property in the
// response to get the next page of dedicated host groups.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - options - DedicatedHostGroupsClientListBySubscriptionOptions contains the optional parameters for the DedicatedHostGroupsClient.NewListBySubscriptionPager
// method.
func (client *DedicatedHostGroupsClient) NewListBySubscriptionPager(options *DedicatedHostGroupsClientListBySubscriptionOptions) *runtime.Pager[DedicatedHostGroupsClientListBySubscriptionResponse] {
@@ -338,7 +338,7 @@ func (client *DedicatedHostGroupsClient) listBySubscriptionCreateRequest(ctx con
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -356,7 +356,7 @@ func (client *DedicatedHostGroupsClient) listBySubscriptionHandleResponse(resp *
// Update - Update an dedicated host group.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - hostGroupName - The name of the dedicated host group.
// - parameters - Parameters supplied to the Update Dedicated Host Group operation.
@@ -404,7 +404,7 @@ func (client *DedicatedHostGroupsClient) updateCreateRequest(ctx context.Context
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/dedicatedhosts_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/dedicatedhosts_client.go
index b50a3ec65b..66ae1f99bf 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/dedicatedhosts_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/dedicatedhosts_client.go
@@ -47,7 +47,7 @@ func NewDedicatedHostsClient(subscriptionID string, credential azcore.TokenCrede
// BeginCreateOrUpdate - Create or update a dedicated host .
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - hostGroupName - The name of the dedicated host group.
// - hostName - The name of the dedicated host .
@@ -74,7 +74,7 @@ func (client *DedicatedHostsClient) BeginCreateOrUpdate(ctx context.Context, res
// CreateOrUpdate - Create or update a dedicated host .
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *DedicatedHostsClient) createOrUpdate(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, parameters DedicatedHost, options *DedicatedHostsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
var err error
const operationName = "DedicatedHostsClient.BeginCreateOrUpdate"
@@ -120,7 +120,7 @@ func (client *DedicatedHostsClient) createOrUpdateCreateRequest(ctx context.Cont
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@@ -132,7 +132,7 @@ func (client *DedicatedHostsClient) createOrUpdateCreateRequest(ctx context.Cont
// BeginDelete - Delete a dedicated host.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - hostGroupName - The name of the dedicated host group.
// - hostName - The name of the dedicated host.
@@ -158,7 +158,7 @@ func (client *DedicatedHostsClient) BeginDelete(ctx context.Context, resourceGro
// Delete - Delete a dedicated host.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *DedicatedHostsClient) deleteOperation(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, options *DedicatedHostsClientBeginDeleteOptions) (*http.Response, error) {
var err error
const operationName = "DedicatedHostsClient.BeginDelete"
@@ -204,7 +204,7 @@ func (client *DedicatedHostsClient) deleteCreateRequest(ctx context.Context, res
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -213,7 +213,7 @@ func (client *DedicatedHostsClient) deleteCreateRequest(ctx context.Context, res
// Get - Retrieves information about a dedicated host.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - hostGroupName - The name of the dedicated host group.
// - hostName - The name of the dedicated host.
@@ -267,7 +267,7 @@ func (client *DedicatedHostsClient) getCreateRequest(ctx context.Context, resour
if options != nil && options.Expand != nil {
reqQP.Set("$expand", string(*options.Expand))
}
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -285,7 +285,7 @@ func (client *DedicatedHostsClient) getHandleResponse(resp *http.Response) (Dedi
// NewListAvailableSizesPager - Lists all available dedicated host sizes to which the specified dedicated host can be resized.
// NOTE: The dedicated host sizes provided can be used to only scale up the existing dedicated host.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - hostGroupName - The name of the dedicated host group.
// - hostName - The name of the dedicated host.
@@ -339,7 +339,7 @@ func (client *DedicatedHostsClient) listAvailableSizesCreateRequest(ctx context.
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -357,7 +357,7 @@ func (client *DedicatedHostsClient) listAvailableSizesHandleResponse(resp *http.
// NewListByHostGroupPager - Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property
// in the response to get the next page of dedicated hosts.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - hostGroupName - The name of the dedicated host group.
// - options - DedicatedHostsClientListByHostGroupOptions contains the optional parameters for the DedicatedHostsClient.NewListByHostGroupPager
@@ -405,7 +405,7 @@ func (client *DedicatedHostsClient) listByHostGroupCreateRequest(ctx context.Con
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -426,7 +426,7 @@ func (client *DedicatedHostsClient) listByHostGroupHandleResponse(resp *http.Res
// for more details.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - hostGroupName - The name of the dedicated host group.
// - hostName - The name of the dedicated host.
@@ -455,7 +455,7 @@ func (client *DedicatedHostsClient) BeginRedeploy(ctx context.Context, resourceG
// for more details.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *DedicatedHostsClient) redeploy(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, options *DedicatedHostsClientBeginRedeployOptions) (*http.Response, error) {
var err error
const operationName = "DedicatedHostsClient.BeginRedeploy"
@@ -501,7 +501,7 @@ func (client *DedicatedHostsClient) redeployCreateRequest(ctx context.Context, r
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -513,7 +513,7 @@ func (client *DedicatedHostsClient) redeployCreateRequest(ctx context.Context, r
// for more details.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - hostGroupName - The name of the dedicated host group.
// - hostName - The name of the dedicated host.
@@ -542,7 +542,7 @@ func (client *DedicatedHostsClient) BeginRestart(ctx context.Context, resourceGr
// for more details.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *DedicatedHostsClient) restart(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, options *DedicatedHostsClientBeginRestartOptions) (*http.Response, error) {
var err error
const operationName = "DedicatedHostsClient.BeginRestart"
@@ -588,7 +588,7 @@ func (client *DedicatedHostsClient) restartCreateRequest(ctx context.Context, re
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -597,7 +597,7 @@ func (client *DedicatedHostsClient) restartCreateRequest(ctx context.Context, re
// BeginUpdate - Update a dedicated host .
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - hostGroupName - The name of the dedicated host group.
// - hostName - The name of the dedicated host .
@@ -624,7 +624,7 @@ func (client *DedicatedHostsClient) BeginUpdate(ctx context.Context, resourceGro
// Update - Update a dedicated host .
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *DedicatedHostsClient) update(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, parameters DedicatedHostUpdate, options *DedicatedHostsClientBeginUpdateOptions) (*http.Response, error) {
var err error
const operationName = "DedicatedHostsClient.BeginUpdate"
@@ -670,7 +670,7 @@ func (client *DedicatedHostsClient) updateCreateRequest(ctx context.Context, res
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/images_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/images_client.go
index 5c5ab8a936..5fecdbf1d7 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/images_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/images_client.go
@@ -47,7 +47,7 @@ func NewImagesClient(subscriptionID string, credential azcore.TokenCredential, o
// BeginCreateOrUpdate - Create or update an image.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - imageName - The name of the image.
// - parameters - Parameters supplied to the Create Image operation.
@@ -73,7 +73,7 @@ func (client *ImagesClient) BeginCreateOrUpdate(ctx context.Context, resourceGro
// CreateOrUpdate - Create or update an image.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *ImagesClient) createOrUpdate(ctx context.Context, resourceGroupName string, imageName string, parameters Image, options *ImagesClientBeginCreateOrUpdateOptions) (*http.Response, error) {
var err error
const operationName = "ImagesClient.BeginCreateOrUpdate"
@@ -115,7 +115,7 @@ func (client *ImagesClient) createOrUpdateCreateRequest(ctx context.Context, res
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@@ -127,7 +127,7 @@ func (client *ImagesClient) createOrUpdateCreateRequest(ctx context.Context, res
// BeginDelete - Deletes an Image.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - imageName - The name of the image.
// - options - ImagesClientBeginDeleteOptions contains the optional parameters for the ImagesClient.BeginDelete method.
@@ -151,7 +151,7 @@ func (client *ImagesClient) BeginDelete(ctx context.Context, resourceGroupName s
// Delete - Deletes an Image.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *ImagesClient) deleteOperation(ctx context.Context, resourceGroupName string, imageName string, options *ImagesClientBeginDeleteOptions) (*http.Response, error) {
var err error
const operationName = "ImagesClient.BeginDelete"
@@ -193,7 +193,7 @@ func (client *ImagesClient) deleteCreateRequest(ctx context.Context, resourceGro
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -202,7 +202,7 @@ func (client *ImagesClient) deleteCreateRequest(ctx context.Context, resourceGro
// Get - Gets an image.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - imageName - The name of the image.
// - options - ImagesClientGetOptions contains the optional parameters for the ImagesClient.Get method.
@@ -251,7 +251,7 @@ func (client *ImagesClient) getCreateRequest(ctx context.Context, resourceGroupN
if options != nil && options.Expand != nil {
reqQP.Set("$expand", *options.Expand)
}
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -269,7 +269,7 @@ func (client *ImagesClient) getHandleResponse(resp *http.Response) (ImagesClient
// NewListPager - Gets the list of Images in the subscription. Use nextLink property in the response to get the next page
// of Images. Do this till nextLink is null to fetch all the Images.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - options - ImagesClientListOptions contains the optional parameters for the ImagesClient.NewListPager method.
func (client *ImagesClient) NewListPager(options *ImagesClientListOptions) *runtime.Pager[ImagesClientListResponse] {
return runtime.NewPager(runtime.PagingHandler[ImagesClientListResponse]{
@@ -306,7 +306,7 @@ func (client *ImagesClient) listCreateRequest(ctx context.Context, options *Imag
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -324,7 +324,7 @@ func (client *ImagesClient) listHandleResponse(resp *http.Response) (ImagesClien
// NewListByResourceGroupPager - Gets the list of images under a resource group. Use nextLink property in the response to
// get the next page of Images. Do this till nextLink is null to fetch all the Images.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - options - ImagesClientListByResourceGroupOptions contains the optional parameters for the ImagesClient.NewListByResourceGroupPager
// method.
@@ -367,7 +367,7 @@ func (client *ImagesClient) listByResourceGroupCreateRequest(ctx context.Context
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -385,7 +385,7 @@ func (client *ImagesClient) listByResourceGroupHandleResponse(resp *http.Respons
// BeginUpdate - Update an image.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - imageName - The name of the image.
// - parameters - Parameters supplied to the Update Image operation.
@@ -410,7 +410,7 @@ func (client *ImagesClient) BeginUpdate(ctx context.Context, resourceGroupName s
// Update - Update an image.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *ImagesClient) update(ctx context.Context, resourceGroupName string, imageName string, parameters ImageUpdate, options *ImagesClientBeginUpdateOptions) (*http.Response, error) {
var err error
const operationName = "ImagesClient.BeginUpdate"
@@ -452,7 +452,7 @@ func (client *ImagesClient) updateCreateRequest(ctx context.Context, resourceGro
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/loganalytics_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/loganalytics_client.go
index a48766ffd1..a3b77f8283 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/loganalytics_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/loganalytics_client.go
@@ -48,7 +48,7 @@ func NewLogAnalyticsClient(subscriptionID string, credential azcore.TokenCredent
// to show throttling activities.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - location - The location upon which virtual-machine-sizes is queried.
// - parameters - Parameters supplied to the LogAnalytics getRequestRateByInterval Api.
// - options - LogAnalyticsClientBeginExportRequestRateByIntervalOptions contains the optional parameters for the LogAnalyticsClient.BeginExportRequestRateByInterval
@@ -75,7 +75,7 @@ func (client *LogAnalyticsClient) BeginExportRequestRateByInterval(ctx context.C
// show throttling activities.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *LogAnalyticsClient) exportRequestRateByInterval(ctx context.Context, location string, parameters RequestRateByIntervalInput, options *LogAnalyticsClientBeginExportRequestRateByIntervalOptions) (*http.Response, error) {
var err error
const operationName = "LogAnalyticsClient.BeginExportRequestRateByInterval"
@@ -113,7 +113,7 @@ func (client *LogAnalyticsClient) exportRequestRateByIntervalCreateRequest(ctx c
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@@ -126,7 +126,7 @@ func (client *LogAnalyticsClient) exportRequestRateByIntervalCreateRequest(ctx c
// window.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - location - The location upon which virtual-machine-sizes is queried.
// - parameters - Parameters supplied to the LogAnalytics getThrottledRequests Api.
// - options - LogAnalyticsClientBeginExportThrottledRequestsOptions contains the optional parameters for the LogAnalyticsClient.BeginExportThrottledRequests
@@ -152,7 +152,7 @@ func (client *LogAnalyticsClient) BeginExportThrottledRequests(ctx context.Conte
// ExportThrottledRequests - Export logs that show total throttled Api requests for this subscription in the given time window.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *LogAnalyticsClient) exportThrottledRequests(ctx context.Context, location string, parameters ThrottledRequestsInput, options *LogAnalyticsClientBeginExportThrottledRequestsOptions) (*http.Response, error) {
var err error
const operationName = "LogAnalyticsClient.BeginExportThrottledRequests"
@@ -190,7 +190,7 @@ func (client *LogAnalyticsClient) exportThrottledRequestsCreateRequest(ctx conte
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/models.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/models.go
index 6f755a27ee..1fad0acd2a 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/models.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/models.go
@@ -368,7 +368,7 @@ type CapacityReservationGroupInstanceView struct {
// READ-ONLY; List of instance view of the capacity reservations under the capacity reservation group.
CapacityReservations []*CapacityReservationInstanceViewWithName
- // READ-ONLY; List of the subscriptions that the capacity reservation group is shared with. Note: Minimum api-version: 2023-09-01.
+ // READ-ONLY; List of the subscriptions that the capacity reservation group is shared with. Note: Minimum api-version: 2024-03-01.
// Please refer to https://aka.ms/computereservationsharing for more details.
SharedSubscriptionIDs []*SubResourceReadOnly
}
@@ -388,7 +388,7 @@ type CapacityReservationGroupProperties struct {
// Specifies the settings to enable sharing across subscriptions for the capacity reservation group resource. Pls. keep in
// mind the capacity reservation group resource generally can be shared across
// subscriptions belonging to a single azure AAD tenant or cross AAD tenant if there is a trust relationship established between
- // the AAD tenants. Note: Minimum api-version: 2023-09-01. Please refer to
+ // the AAD tenants. Note: Minimum api-version: 2024-03-01. Please refer to
// https://aka.ms/computereservationsharing for more details.
SharingProfile *ResourceSharingProfile
@@ -1064,11 +1064,13 @@ type CreationData struct {
// DataDisk - Describes a data disk.
type DataDisk struct {
- // REQUIRED; Specifies how the virtual machine should be created. Possible values are: Attach. This value is used when you
- // are using a specialized disk to create the virtual machine. FromImage. This value is used
- // when you are using an image to create the virtual machine. If you are using a platform image, you should also use the imageReference
- // element described above. If you are using a marketplace image, you
- // should also use the plan element previously described.
+ // REQUIRED; Specifies how the virtual machine disk should be created. Possible values are Attach: This value is used when
+ // you are using a specialized disk to create the virtual machine. FromImage: This value is
+ // used when you are using an image to create the virtual machine data disk. If you are using a platform image, you should
+ // also use the imageReference element described above. If you are using a
+ // marketplace image, you should also use the plan element previously described. Empty: This value is used when creating an
+ // empty data disk. Copy: This value is used to create a data disk from a snapshot
+ // or another disk. Restore: This value is used to create a data disk from a disk restore point.
CreateOption *DiskCreateOptionTypes
// REQUIRED; Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and
@@ -1110,6 +1112,9 @@ type DataDisk struct {
// The disk name.
Name *string
+ // The source resource identifier. It can be a snapshot, or disk restore point from which to create a disk.
+ SourceResource *APIEntityReference
+
// Specifies whether the data disk is in process of detachment from the VirtualMachine/VirtualMachineScaleset
ToBeDetached *bool
@@ -1153,10 +1158,25 @@ type DataDisksToAttach struct {
// REQUIRED; ID of the managed data disk.
DiskID *string
+ // Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The defaulting behavior is: None for
+ // Standard storage. ReadOnly for Premium storage.
+ Caching *CachingTypes
+
+ // Specifies whether data disk should be deleted or detached upon VM deletion. Possible values are: Delete. If this value
+ // is used, the data disk is deleted when VM is deleted. Detach. If this value is
+ // used, the data disk is retained after VM is deleted. The default value is set to Detach.
+ DeleteOption *DiskDeleteOptionTypes
+
+ // Specifies the customer managed disk encryption set resource id for the managed disk.
+ DiskEncryptionSet *DiskEncryptionSetParameters
+
// The logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be
// unique for each data disk attached to a VM. If not specified, lun would be auto
// assigned.
Lun *int32
+
+ // Specifies whether writeAccelerator should be enabled or disabled on the disk.
+ WriteAcceleratorEnabled *bool
}
// DataDisksToDetach - Describes the data disk to be detached.
@@ -1408,11 +1428,12 @@ type DiffDiskSettings struct {
// Specifies the ephemeral disk settings for operating system disk.
Option *DiffDiskOptions
- // Specifies the ephemeral disk placement for operating system disk. Possible values are: CacheDisk, ResourceDisk. The defaulting
- // behavior is: CacheDisk if one is configured for the VM size otherwise
- // ResourceDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes
+ // Specifies the ephemeral disk placement for operating system disk. Possible values are: CacheDisk, ResourceDisk, NvmeDisk.
+ // The defaulting behavior is: CacheDisk if one is configured for the VM size
+ // otherwise ResourceDisk or NvmeDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes
// and Linux VM at
- // https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk.
+ // https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Minimum api-version
+ // for NvmeDisk: 2024-03-01.
Placement *DiffDiskPlacement
}
@@ -2075,6 +2096,12 @@ type EncryptionSettingsElement struct {
KeyEncryptionKey *KeyVaultAndKeyReference
}
+// EventGridAndResourceGraph - Specifies eventGridAndResourceGraph related Scheduled Event related configurations.
+type EventGridAndResourceGraph struct {
+ // Specifies if event grid and resource graph is enabled for Scheduled event related configurations.
+ Enable *bool
+}
+
// ExtendedLocation - The complex type of the extended location.
type ExtendedLocation struct {
// The name of the extended location.
@@ -3449,11 +3476,11 @@ type NetworkProfile struct {
// disks, see About disks and VHDs for Azure virtual machines
// [https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview].
type OSDisk struct {
- // REQUIRED; Specifies how the virtual machine should be created. Possible values are: Attach. This value is used when you
- // are using a specialized disk to create the virtual machine. FromImage. This value is used
- // when you are using an image to create the virtual machine. If you are using a platform image, you should also use the imageReference
- // element described above. If you are using a marketplace image, you
- // should also use the plan element previously described.
+ // REQUIRED; Specifies how the virtual machine disk should be created. Possible values are Attach: This value is used when
+ // you are using a specialized disk to create the virtual machine. FromImage: This value is
+ // used when you are using an image to create the virtual machine. If you are using a platform image, you should also use
+ // the imageReference element described above. If you are using a marketplace image,
+ // you should also use the plan element previously described.
CreateOption *DiskCreateOptionTypes
// Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The defaulting behavior is: None for
@@ -4074,7 +4101,7 @@ type ProximityPlacementGroupUpdate struct {
Tags map[string]*string
}
-// ProxyAgentSettings - Specifies ProxyAgent settings while creating the virtual machine. Minimum api-version: 2023-09-01.
+// ProxyAgentSettings - Specifies ProxyAgent settings while creating the virtual machine. Minimum api-version: 2024-03-01.
type ProxyAgentSettings struct {
// Specifies whether ProxyAgent feature should be enabled on the virtual machine or virtual machine scale set.
Enabled *bool
@@ -4431,7 +4458,7 @@ type ResourceSKUsResult struct {
type ResourceSharingProfile struct {
// Specifies an array of subscription resource IDs that capacity reservation group is shared with. Note: Minimum api-version:
- // 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more
+ // 2024-03-01. Please refer to https://aka.ms/computereservationsharing for more
// details.
SubscriptionIDs []*SubResource
}
@@ -5121,6 +5148,24 @@ type ScaleInPolicy struct {
Rules []*VirtualMachineScaleSetScaleInRules
}
+type ScheduledEventsAdditionalPublishingTargets struct {
+ // The configuration parameters used while creating eventGridAndResourceGraph Scheduled Event setting.
+ EventGridAndResourceGraph *EventGridAndResourceGraph
+}
+
+// ScheduledEventsPolicy - Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related
+// configurations.
+type ScheduledEventsPolicy struct {
+ // The configuration parameters used while publishing scheduledEventsAdditionalPublishingTargets.
+ ScheduledEventsAdditionalPublishingTargets *ScheduledEventsAdditionalPublishingTargets
+
+ // The configuration parameters used while creating userInitiatedReboot scheduled event setting creation.
+ UserInitiatedReboot *UserInitiatedReboot
+
+ // The configuration parameters used while creating userInitiatedRedeploy scheduled event setting creation.
+ UserInitiatedRedeploy *UserInitiatedRedeploy
+}
+
type ScheduledEventsProfile struct {
// Specifies OS Image Scheduled Event related configurations.
OSImageNotificationProfile *OSImageNotificationProfile
@@ -5150,7 +5195,7 @@ type SecurityProfile struct {
// Specifies the Managed Identity used by ADE to get access token for keyvault operations.
EncryptionIdentity *EncryptionIdentity
- // Specifies ProxyAgent settings while creating the virtual machine. Minimum api-version: 2023-09-01.
+ // Specifies ProxyAgent settings while creating the virtual machine. Minimum api-version: 2024-03-01.
ProxyAgentSettings *ProxyAgentSettings
// Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings. The
@@ -5942,6 +5987,18 @@ type UserAssignedIdentitiesValue struct {
PrincipalID *string
}
+// UserInitiatedReboot - Specifies Reboot related Scheduled Event related configurations.
+type UserInitiatedReboot struct {
+ // Specifies Reboot Scheduled Event related configurations.
+ AutomaticallyApprove *bool
+}
+
+// UserInitiatedRedeploy - Specifies Redeploy related Scheduled Event related configurations.
+type UserInitiatedRedeploy struct {
+ // Specifies Redeploy Scheduled Event related configurations.
+ AutomaticallyApprove *bool
+}
+
// VMDiskSecurityProfile - Specifies the security profile settings for the managed disk. Note: It can only be set for Confidential
// VMs.
type VMDiskSecurityProfile struct {
@@ -6786,6 +6843,10 @@ type VirtualMachineProperties struct {
// 2018-04-01.
ProximityPlacementGroup *SubResource
+ // Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the
+ // virtual machine.
+ ScheduledEventsPolicy *ScheduledEventsPolicy
+
// Specifies Scheduled Event related configurations.
ScheduledEventsProfile *ScheduledEventsProfile
@@ -7596,6 +7657,9 @@ type VirtualMachineScaleSetProperties struct {
// Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set.
ScaleInPolicy *ScaleInPolicy
+ // The ScheduledEventsPolicy.
+ ScheduledEventsPolicy *ScheduledEventsPolicy
+
// When true this limits the scale set to a single placement group, of max size 100 virtual machines. NOTE: If singlePlacementGroup
// is true, it may be modified to false. However, if singlePlacementGroup
// is false, it may not be modified to true.
@@ -7680,6 +7744,9 @@ type VirtualMachineScaleSetReimageParameters struct {
// is reimaged to the existing version of OS Disk.
ExactVersion *string
+ // Parameter to force update ephemeral OS disk for a virtual machine scale set VM
+ ForceUpdateOSDiskForEphemeral *bool
+
// The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation
// being performed on all virtual machines in the virtual machine scale set.
InstanceIDs []*string
@@ -7873,6 +7940,9 @@ type VirtualMachineScaleSetUpdateOSDisk struct {
// delete option for Ephemeral OS Disk.
DeleteOption *DiskDeleteOptionTypes
+ // Specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set.
+ DiffDiskSettings *DiffDiskSettings
+
// Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a
// virtual machine image.
// diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023
@@ -8281,8 +8351,8 @@ type VirtualMachineScaleSetVMProfile struct {
UserData *string
// READ-ONLY; Specifies the time in which this VM profile for the Virtual Machine Scale Set was created. Minimum API version
- // for this property is 2023-09-01. This value will be added to VMSS Flex VM tags when
- // creating/updating the VMSS VM Profile with minimum api-version 2023-09-01.
+ // for this property is 2024-03-01. This value will be added to VMSS Flex VM tags when
+ // creating/updating the VMSS VM Profile with minimum api-version 2024-03-01.
TimeCreated *time.Time
}
@@ -8379,6 +8449,9 @@ type VirtualMachineScaleSetVMReimageParameters struct {
// is reimaged to the existing version of OS Disk.
ExactVersion *string
+ // Parameter to force update ephemeral OS disk for a virtual machine scale set VM
+ ForceUpdateOSDiskForEphemeral *bool
+
// Specifies information required for reimaging the non-ephemeral OS disk.
OSProfile *OSProfileProvisioningData
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/models_serde.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/models_serde.go
index 16bc25e59c..1bdfcb4422 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/models_serde.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/models_serde.go
@@ -2484,6 +2484,7 @@ func (d DataDisk) MarshalJSON() ([]byte, error) {
populate(objectMap, "lun", d.Lun)
populate(objectMap, "managedDisk", d.ManagedDisk)
populate(objectMap, "name", d.Name)
+ populate(objectMap, "sourceResource", d.SourceResource)
populate(objectMap, "toBeDetached", d.ToBeDetached)
populate(objectMap, "vhd", d.Vhd)
populate(objectMap, "writeAcceleratorEnabled", d.WriteAcceleratorEnabled)
@@ -2532,6 +2533,9 @@ func (d *DataDisk) UnmarshalJSON(data []byte) error {
case "name":
err = unpopulate(val, "Name", &d.Name)
delete(rawMsg, key)
+ case "sourceResource":
+ err = unpopulate(val, "SourceResource", &d.SourceResource)
+ delete(rawMsg, key)
case "toBeDetached":
err = unpopulate(val, "ToBeDetached", &d.ToBeDetached)
delete(rawMsg, key)
@@ -2610,8 +2614,12 @@ func (d *DataDiskImageEncryption) UnmarshalJSON(data []byte) error {
// MarshalJSON implements the json.Marshaller interface for type DataDisksToAttach.
func (d DataDisksToAttach) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
+ populate(objectMap, "caching", d.Caching)
+ populate(objectMap, "deleteOption", d.DeleteOption)
+ populate(objectMap, "diskEncryptionSet", d.DiskEncryptionSet)
populate(objectMap, "diskId", d.DiskID)
populate(objectMap, "lun", d.Lun)
+ populate(objectMap, "writeAcceleratorEnabled", d.WriteAcceleratorEnabled)
return json.Marshal(objectMap)
}
@@ -2624,12 +2632,24 @@ func (d *DataDisksToAttach) UnmarshalJSON(data []byte) error {
for key, val := range rawMsg {
var err error
switch key {
+ case "caching":
+ err = unpopulate(val, "Caching", &d.Caching)
+ delete(rawMsg, key)
+ case "deleteOption":
+ err = unpopulate(val, "DeleteOption", &d.DeleteOption)
+ delete(rawMsg, key)
+ case "diskEncryptionSet":
+ err = unpopulate(val, "DiskEncryptionSet", &d.DiskEncryptionSet)
+ delete(rawMsg, key)
case "diskId":
err = unpopulate(val, "DiskID", &d.DiskID)
delete(rawMsg, key)
case "lun":
err = unpopulate(val, "Lun", &d.Lun)
delete(rawMsg, key)
+ case "writeAcceleratorEnabled":
+ err = unpopulate(val, "WriteAcceleratorEnabled", &d.WriteAcceleratorEnabled)
+ delete(rawMsg, key)
}
if err != nil {
return fmt.Errorf("unmarshalling type %T: %v", d, err)
@@ -4749,6 +4769,33 @@ func (e *EncryptionSettingsElement) UnmarshalJSON(data []byte) error {
return nil
}
+// MarshalJSON implements the json.Marshaller interface for type EventGridAndResourceGraph.
+func (e EventGridAndResourceGraph) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "enable", e.Enable)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type EventGridAndResourceGraph.
+func (e *EventGridAndResourceGraph) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", e, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "enable":
+ err = unpopulate(val, "Enable", &e.Enable)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", e, err)
+ }
+ }
+ return nil
+}
+
// MarshalJSON implements the json.Marshaller interface for type ExtendedLocation.
func (e ExtendedLocation) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
@@ -12311,6 +12358,68 @@ func (s *ScaleInPolicy) UnmarshalJSON(data []byte) error {
return nil
}
+// MarshalJSON implements the json.Marshaller interface for type ScheduledEventsAdditionalPublishingTargets.
+func (s ScheduledEventsAdditionalPublishingTargets) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "eventGridAndResourceGraph", s.EventGridAndResourceGraph)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type ScheduledEventsAdditionalPublishingTargets.
+func (s *ScheduledEventsAdditionalPublishingTargets) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "eventGridAndResourceGraph":
+ err = unpopulate(val, "EventGridAndResourceGraph", &s.EventGridAndResourceGraph)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type ScheduledEventsPolicy.
+func (s ScheduledEventsPolicy) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "scheduledEventsAdditionalPublishingTargets", s.ScheduledEventsAdditionalPublishingTargets)
+ populate(objectMap, "userInitiatedReboot", s.UserInitiatedReboot)
+ populate(objectMap, "userInitiatedRedeploy", s.UserInitiatedRedeploy)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type ScheduledEventsPolicy.
+func (s *ScheduledEventsPolicy) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "scheduledEventsAdditionalPublishingTargets":
+ err = unpopulate(val, "ScheduledEventsAdditionalPublishingTargets", &s.ScheduledEventsAdditionalPublishingTargets)
+ delete(rawMsg, key)
+ case "userInitiatedReboot":
+ err = unpopulate(val, "UserInitiatedReboot", &s.UserInitiatedReboot)
+ delete(rawMsg, key)
+ case "userInitiatedRedeploy":
+ err = unpopulate(val, "UserInitiatedRedeploy", &s.UserInitiatedRedeploy)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ }
+ return nil
+}
+
// MarshalJSON implements the json.Marshaller interface for type ScheduledEventsProfile.
func (s ScheduledEventsProfile) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
@@ -14456,6 +14565,60 @@ func (u *UserAssignedIdentitiesValue) UnmarshalJSON(data []byte) error {
return nil
}
+// MarshalJSON implements the json.Marshaller interface for type UserInitiatedReboot.
+func (u UserInitiatedReboot) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "automaticallyApprove", u.AutomaticallyApprove)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type UserInitiatedReboot.
+func (u *UserInitiatedReboot) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", u, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "automaticallyApprove":
+ err = unpopulate(val, "AutomaticallyApprove", &u.AutomaticallyApprove)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", u, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type UserInitiatedRedeploy.
+func (u UserInitiatedRedeploy) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "automaticallyApprove", u.AutomaticallyApprove)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type UserInitiatedRedeploy.
+func (u *UserInitiatedRedeploy) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", u, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "automaticallyApprove":
+ err = unpopulate(val, "AutomaticallyApprove", &u.AutomaticallyApprove)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", u, err)
+ }
+ }
+ return nil
+}
+
// MarshalJSON implements the json.Marshaller interface for type VMDiskSecurityProfile.
func (v VMDiskSecurityProfile) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
@@ -16143,6 +16306,7 @@ func (v VirtualMachineProperties) MarshalJSON() ([]byte, error) {
populate(objectMap, "priority", v.Priority)
populate(objectMap, "provisioningState", v.ProvisioningState)
populate(objectMap, "proximityPlacementGroup", v.ProximityPlacementGroup)
+ populate(objectMap, "scheduledEventsPolicy", v.ScheduledEventsPolicy)
populate(objectMap, "scheduledEventsProfile", v.ScheduledEventsProfile)
populate(objectMap, "securityProfile", v.SecurityProfile)
populate(objectMap, "storageProfile", v.StorageProfile)
@@ -16219,6 +16383,9 @@ func (v *VirtualMachineProperties) UnmarshalJSON(data []byte) error {
case "proximityPlacementGroup":
err = unpopulate(val, "ProximityPlacementGroup", &v.ProximityPlacementGroup)
delete(rawMsg, key)
+ case "scheduledEventsPolicy":
+ err = unpopulate(val, "ScheduledEventsPolicy", &v.ScheduledEventsPolicy)
+ delete(rawMsg, key)
case "scheduledEventsProfile":
err = unpopulate(val, "ScheduledEventsProfile", &v.ScheduledEventsProfile)
delete(rawMsg, key)
@@ -17737,6 +17904,7 @@ func (v VirtualMachineScaleSetProperties) MarshalJSON() ([]byte, error) {
populate(objectMap, "proximityPlacementGroup", v.ProximityPlacementGroup)
populate(objectMap, "resiliencyPolicy", v.ResiliencyPolicy)
populate(objectMap, "scaleInPolicy", v.ScaleInPolicy)
+ populate(objectMap, "scheduledEventsPolicy", v.ScheduledEventsPolicy)
populate(objectMap, "singlePlacementGroup", v.SinglePlacementGroup)
populate(objectMap, "spotRestorePolicy", v.SpotRestorePolicy)
populateDateTimeRFC3339(objectMap, "timeCreated", v.TimeCreated)
@@ -17795,6 +17963,9 @@ func (v *VirtualMachineScaleSetProperties) UnmarshalJSON(data []byte) error {
case "scaleInPolicy":
err = unpopulate(val, "ScaleInPolicy", &v.ScaleInPolicy)
delete(rawMsg, key)
+ case "scheduledEventsPolicy":
+ err = unpopulate(val, "ScheduledEventsPolicy", &v.ScheduledEventsPolicy)
+ delete(rawMsg, key)
case "singlePlacementGroup":
err = unpopulate(val, "SinglePlacementGroup", &v.SinglePlacementGroup)
delete(rawMsg, key)
@@ -17941,6 +18112,7 @@ func (v *VirtualMachineScaleSetPublicIPAddressConfigurationProperties) Unmarshal
func (v VirtualMachineScaleSetReimageParameters) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "exactVersion", v.ExactVersion)
+ populate(objectMap, "forceUpdateOSDiskForEphemeral", v.ForceUpdateOSDiskForEphemeral)
populate(objectMap, "instanceIds", v.InstanceIDs)
populate(objectMap, "osProfile", v.OSProfile)
populate(objectMap, "tempDisk", v.TempDisk)
@@ -17959,6 +18131,9 @@ func (v *VirtualMachineScaleSetReimageParameters) UnmarshalJSON(data []byte) err
case "exactVersion":
err = unpopulate(val, "ExactVersion", &v.ExactVersion)
delete(rawMsg, key)
+ case "forceUpdateOSDiskForEphemeral":
+ err = unpopulate(val, "ForceUpdateOSDiskForEphemeral", &v.ForceUpdateOSDiskForEphemeral)
+ delete(rawMsg, key)
case "instanceIds":
err = unpopulate(val, "InstanceIDs", &v.InstanceIDs)
delete(rawMsg, key)
@@ -18356,6 +18531,7 @@ func (v VirtualMachineScaleSetUpdateOSDisk) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "caching", v.Caching)
populate(objectMap, "deleteOption", v.DeleteOption)
+ populate(objectMap, "diffDiskSettings", v.DiffDiskSettings)
populate(objectMap, "diskSizeGB", v.DiskSizeGB)
populate(objectMap, "image", v.Image)
populate(objectMap, "managedDisk", v.ManagedDisk)
@@ -18379,6 +18555,9 @@ func (v *VirtualMachineScaleSetUpdateOSDisk) UnmarshalJSON(data []byte) error {
case "deleteOption":
err = unpopulate(val, "DeleteOption", &v.DeleteOption)
delete(rawMsg, key)
+ case "diffDiskSettings":
+ err = unpopulate(val, "DiffDiskSettings", &v.DiffDiskSettings)
+ delete(rawMsg, key)
case "diskSizeGB":
err = unpopulate(val, "DiskSizeGB", &v.DiskSizeGB)
delete(rawMsg, key)
@@ -19327,6 +19506,7 @@ func (v *VirtualMachineScaleSetVMProtectionPolicy) UnmarshalJSON(data []byte) er
func (v VirtualMachineScaleSetVMReimageParameters) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "exactVersion", v.ExactVersion)
+ populate(objectMap, "forceUpdateOSDiskForEphemeral", v.ForceUpdateOSDiskForEphemeral)
populate(objectMap, "osProfile", v.OSProfile)
populate(objectMap, "tempDisk", v.TempDisk)
return json.Marshal(objectMap)
@@ -19344,6 +19524,9 @@ func (v *VirtualMachineScaleSetVMReimageParameters) UnmarshalJSON(data []byte) e
case "exactVersion":
err = unpopulate(val, "ExactVersion", &v.ExactVersion)
delete(rawMsg, key)
+ case "forceUpdateOSDiskForEphemeral":
+ err = unpopulate(val, "ForceUpdateOSDiskForEphemeral", &v.ForceUpdateOSDiskForEphemeral)
+ delete(rawMsg, key)
case "osProfile":
err = unpopulate(val, "OSProfile", &v.OSProfile)
delete(rawMsg, key)
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/operations_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/operations_client.go
index f7fded74ad..7c438a5615 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/operations_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/operations_client.go
@@ -39,7 +39,7 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO
// NewListPager - Gets a list of compute operations.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] {
return runtime.NewPager(runtime.PagingHandler[OperationsClientListResponse]{
@@ -73,7 +73,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options *
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/options.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/options.go
index 0c363663aa..5ea3446d06 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/options.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/options.go
@@ -84,6 +84,13 @@ type CapacityReservationGroupsClientListBySubscriptionOptions struct {
// VM Instance or both resource Ids which are associated to capacity
// reservation group in the response.
Expand *ExpandTypesForGetCapacityReservationGroups
+
+ // The query option to fetch Capacity Reservation Group Resource Ids.
+ // 'CreatedInSubscription' enables fetching Resource Ids for all capacity reservation group resources created in the subscription.
+ // 'SharedWithSubscription' enables fetching Resource Ids for all capacity reservation group resources shared with the subscription.
+ // 'All' enables fetching Resource Ids for all capacity reservation group resources shared with the subscription and created
+ // in the subscription.
+ ResourceIDsOnly *ResourceIDOptionsForGetCapacityReservationGroups
}
// CapacityReservationGroupsClientUpdateOptions contains the optional parameters for the CapacityReservationGroupsClient.Update
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/proximityplacementgroups_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/proximityplacementgroups_client.go
index c35ed6b0ca..c186592038 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/proximityplacementgroups_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/proximityplacementgroups_client.go
@@ -47,7 +47,7 @@ func NewProximityPlacementGroupsClient(subscriptionID string, credential azcore.
// CreateOrUpdate - Create or update a proximity placement group.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - proximityPlacementGroupName - The name of the proximity placement group.
// - parameters - Parameters supplied to the Create Proximity Placement Group operation.
@@ -95,7 +95,7 @@ func (client *ProximityPlacementGroupsClient) createOrUpdateCreateRequest(ctx co
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@@ -116,7 +116,7 @@ func (client *ProximityPlacementGroupsClient) createOrUpdateHandleResponse(resp
// Delete - Delete a proximity placement group.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - proximityPlacementGroupName - The name of the proximity placement group.
// - options - ProximityPlacementGroupsClientDeleteOptions contains the optional parameters for the ProximityPlacementGroupsClient.Delete
@@ -162,7 +162,7 @@ func (client *ProximityPlacementGroupsClient) deleteCreateRequest(ctx context.Co
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -171,7 +171,7 @@ func (client *ProximityPlacementGroupsClient) deleteCreateRequest(ctx context.Co
// Get - Retrieves information about a proximity placement group .
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - proximityPlacementGroupName - The name of the proximity placement group.
// - options - ProximityPlacementGroupsClientGetOptions contains the optional parameters for the ProximityPlacementGroupsClient.Get
@@ -218,7 +218,7 @@ func (client *ProximityPlacementGroupsClient) getCreateRequest(ctx context.Conte
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
if options != nil && options.IncludeColocationStatus != nil {
reqQP.Set("includeColocationStatus", *options.IncludeColocationStatus)
}
@@ -238,7 +238,7 @@ func (client *ProximityPlacementGroupsClient) getHandleResponse(resp *http.Respo
// NewListByResourceGroupPager - Lists all proximity placement groups in a resource group.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - options - ProximityPlacementGroupsClientListByResourceGroupOptions contains the optional parameters for the ProximityPlacementGroupsClient.NewListByResourceGroupPager
// method.
@@ -281,7 +281,7 @@ func (client *ProximityPlacementGroupsClient) listByResourceGroupCreateRequest(c
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -298,7 +298,7 @@ func (client *ProximityPlacementGroupsClient) listByResourceGroupHandleResponse(
// NewListBySubscriptionPager - Lists all proximity placement groups in a subscription.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - options - ProximityPlacementGroupsClientListBySubscriptionOptions contains the optional parameters for the ProximityPlacementGroupsClient.NewListBySubscriptionPager
// method.
func (client *ProximityPlacementGroupsClient) NewListBySubscriptionPager(options *ProximityPlacementGroupsClientListBySubscriptionOptions) *runtime.Pager[ProximityPlacementGroupsClientListBySubscriptionResponse] {
@@ -336,7 +336,7 @@ func (client *ProximityPlacementGroupsClient) listBySubscriptionCreateRequest(ct
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -354,7 +354,7 @@ func (client *ProximityPlacementGroupsClient) listBySubscriptionHandleResponse(r
// Update - Update a proximity placement group.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - proximityPlacementGroupName - The name of the proximity placement group.
// - parameters - Parameters supplied to the Update Proximity Placement Group operation.
@@ -402,7 +402,7 @@ func (client *ProximityPlacementGroupsClient) updateCreateRequest(ctx context.Co
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/restorepointcollections_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/restorepointcollections_client.go
index b07477e6da..f53e3a7d40 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/restorepointcollections_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/restorepointcollections_client.go
@@ -48,7 +48,7 @@ func NewRestorePointCollectionsClient(subscriptionID string, credential azcore.T
// for more details. When updating a restore point collection, only tags may be modified.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - restorePointCollectionName - The name of the restore point collection.
// - parameters - Parameters supplied to the Create or Update restore point collection operation.
@@ -96,7 +96,7 @@ func (client *RestorePointCollectionsClient) createOrUpdateCreateRequest(ctx con
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@@ -118,7 +118,7 @@ func (client *RestorePointCollectionsClient) createOrUpdateHandleResponse(resp *
// points.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - restorePointCollectionName - The name of the Restore Point Collection.
// - options - RestorePointCollectionsClientBeginDeleteOptions contains the optional parameters for the RestorePointCollectionsClient.BeginDelete
@@ -144,7 +144,7 @@ func (client *RestorePointCollectionsClient) BeginDelete(ctx context.Context, re
// points.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *RestorePointCollectionsClient) deleteOperation(ctx context.Context, resourceGroupName string, restorePointCollectionName string, options *RestorePointCollectionsClientBeginDeleteOptions) (*http.Response, error) {
var err error
const operationName = "RestorePointCollectionsClient.BeginDelete"
@@ -186,7 +186,7 @@ func (client *RestorePointCollectionsClient) deleteCreateRequest(ctx context.Con
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -195,7 +195,7 @@ func (client *RestorePointCollectionsClient) deleteCreateRequest(ctx context.Con
// Get - The operation to get the restore point collection.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - restorePointCollectionName - The name of the restore point collection.
// - options - RestorePointCollectionsClientGetOptions contains the optional parameters for the RestorePointCollectionsClient.Get
@@ -245,7 +245,7 @@ func (client *RestorePointCollectionsClient) getCreateRequest(ctx context.Contex
if options != nil && options.Expand != nil {
reqQP.Set("$expand", string(*options.Expand))
}
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -262,7 +262,7 @@ func (client *RestorePointCollectionsClient) getHandleResponse(resp *http.Respon
// NewListPager - Gets the list of restore point collections in a resource group.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - options - RestorePointCollectionsClientListOptions contains the optional parameters for the RestorePointCollectionsClient.NewListPager
// method.
@@ -305,7 +305,7 @@ func (client *RestorePointCollectionsClient) listCreateRequest(ctx context.Conte
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -324,7 +324,7 @@ func (client *RestorePointCollectionsClient) listHandleResponse(resp *http.Respo
// to get the next page of restore point collections. Do this till nextLink is not null to fetch all
// the restore point collections.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - options - RestorePointCollectionsClientListAllOptions contains the optional parameters for the RestorePointCollectionsClient.NewListAllPager
// method.
func (client *RestorePointCollectionsClient) NewListAllPager(options *RestorePointCollectionsClientListAllOptions) *runtime.Pager[RestorePointCollectionsClientListAllResponse] {
@@ -362,7 +362,7 @@ func (client *RestorePointCollectionsClient) listAllCreateRequest(ctx context.Co
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -380,7 +380,7 @@ func (client *RestorePointCollectionsClient) listAllHandleResponse(resp *http.Re
// Update - The operation to update the restore point collection.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - restorePointCollectionName - The name of the restore point collection.
// - parameters - Parameters supplied to the Update restore point collection operation.
@@ -428,7 +428,7 @@ func (client *RestorePointCollectionsClient) updateCreateRequest(ctx context.Con
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/restorepoints_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/restorepoints_client.go
index 7b6364f929..dffafe2da3 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/restorepoints_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/restorepoints_client.go
@@ -47,7 +47,7 @@ func NewRestorePointsClient(subscriptionID string, credential azcore.TokenCreden
// BeginCreate - The operation to create the restore point. Updating properties of an existing restore point is not allowed
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - restorePointCollectionName - The name of the restore point collection.
// - restorePointName - The name of the restore point.
@@ -74,7 +74,7 @@ func (client *RestorePointsClient) BeginCreate(ctx context.Context, resourceGrou
// Create - The operation to create the restore point. Updating properties of an existing restore point is not allowed
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *RestorePointsClient) create(ctx context.Context, resourceGroupName string, restorePointCollectionName string, restorePointName string, parameters RestorePoint, options *RestorePointsClientBeginCreateOptions) (*http.Response, error) {
var err error
const operationName = "RestorePointsClient.BeginCreate"
@@ -120,7 +120,7 @@ func (client *RestorePointsClient) createCreateRequest(ctx context.Context, reso
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@@ -132,7 +132,7 @@ func (client *RestorePointsClient) createCreateRequest(ctx context.Context, reso
// BeginDelete - The operation to delete the restore point.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - restorePointCollectionName - The name of the Restore Point Collection.
// - restorePointName - The name of the restore point.
@@ -158,7 +158,7 @@ func (client *RestorePointsClient) BeginDelete(ctx context.Context, resourceGrou
// Delete - The operation to delete the restore point.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *RestorePointsClient) deleteOperation(ctx context.Context, resourceGroupName string, restorePointCollectionName string, restorePointName string, options *RestorePointsClientBeginDeleteOptions) (*http.Response, error) {
var err error
const operationName = "RestorePointsClient.BeginDelete"
@@ -204,7 +204,7 @@ func (client *RestorePointsClient) deleteCreateRequest(ctx context.Context, reso
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -213,7 +213,7 @@ func (client *RestorePointsClient) deleteCreateRequest(ctx context.Context, reso
// Get - The operation to get the restore point.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - restorePointCollectionName - The name of the restore point collection.
// - restorePointName - The name of the restore point.
@@ -267,7 +267,7 @@ func (client *RestorePointsClient) getCreateRequest(ctx context.Context, resourc
if options != nil && options.Expand != nil {
reqQP.Set("$expand", string(*options.Expand))
}
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/sshpublickeys_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/sshpublickeys_client.go
index a577d55d21..58d8d18ba9 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/sshpublickeys_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/sshpublickeys_client.go
@@ -47,7 +47,7 @@ func NewSSHPublicKeysClient(subscriptionID string, credential azcore.TokenCreden
// Create - Creates a new SSH public key resource.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - sshPublicKeyName - The name of the SSH public key.
// - parameters - Parameters supplied to create the SSH public key.
@@ -94,7 +94,7 @@ func (client *SSHPublicKeysClient) createCreateRequest(ctx context.Context, reso
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@@ -115,7 +115,7 @@ func (client *SSHPublicKeysClient) createHandleResponse(resp *http.Response) (SS
// Delete - Delete an SSH public key.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - sshPublicKeyName - The name of the SSH public key.
// - options - SSHPublicKeysClientDeleteOptions contains the optional parameters for the SSHPublicKeysClient.Delete method.
@@ -160,7 +160,7 @@ func (client *SSHPublicKeysClient) deleteCreateRequest(ctx context.Context, reso
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -171,7 +171,7 @@ func (client *SSHPublicKeysClient) deleteCreateRequest(ctx context.Context, reso
// SSH public key resource.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - sshPublicKeyName - The name of the SSH public key.
// - options - SSHPublicKeysClientGenerateKeyPairOptions contains the optional parameters for the SSHPublicKeysClient.GenerateKeyPair
@@ -218,7 +218,7 @@ func (client *SSHPublicKeysClient) generateKeyPairCreateRequest(ctx context.Cont
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.Parameters != nil {
@@ -242,7 +242,7 @@ func (client *SSHPublicKeysClient) generateKeyPairHandleResponse(resp *http.Resp
// Get - Retrieves information about an SSH public key.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - sshPublicKeyName - The name of the SSH public key.
// - options - SSHPublicKeysClientGetOptions contains the optional parameters for the SSHPublicKeysClient.Get method.
@@ -288,7 +288,7 @@ func (client *SSHPublicKeysClient) getCreateRequest(ctx context.Context, resourc
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -306,7 +306,7 @@ func (client *SSHPublicKeysClient) getHandleResponse(resp *http.Response) (SSHPu
// NewListByResourceGroupPager - Lists all of the SSH public keys in the specified resource group. Use the nextLink property
// in the response to get the next page of SSH public keys.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - options - SSHPublicKeysClientListByResourceGroupOptions contains the optional parameters for the SSHPublicKeysClient.NewListByResourceGroupPager
// method.
@@ -349,7 +349,7 @@ func (client *SSHPublicKeysClient) listByResourceGroupCreateRequest(ctx context.
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -367,7 +367,7 @@ func (client *SSHPublicKeysClient) listByResourceGroupHandleResponse(resp *http.
// NewListBySubscriptionPager - Lists all of the SSH public keys in the subscription. Use the nextLink property in the response
// to get the next page of SSH public keys.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - options - SSHPublicKeysClientListBySubscriptionOptions contains the optional parameters for the SSHPublicKeysClient.NewListBySubscriptionPager
// method.
func (client *SSHPublicKeysClient) NewListBySubscriptionPager(options *SSHPublicKeysClientListBySubscriptionOptions) *runtime.Pager[SSHPublicKeysClientListBySubscriptionResponse] {
@@ -405,7 +405,7 @@ func (client *SSHPublicKeysClient) listBySubscriptionCreateRequest(ctx context.C
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -423,7 +423,7 @@ func (client *SSHPublicKeysClient) listBySubscriptionHandleResponse(resp *http.R
// Update - Updates a new SSH public key resource.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - sshPublicKeyName - The name of the SSH public key.
// - parameters - Parameters supplied to update the SSH public key.
@@ -470,7 +470,7 @@ func (client *SSHPublicKeysClient) updateCreateRequest(ctx context.Context, reso
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/usage_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/usage_client.go
index afb6852b05..e251486e97 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/usage_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/usage_client.go
@@ -47,7 +47,7 @@ func NewUsageClient(subscriptionID string, credential azcore.TokenCredential, op
// NewListPager - Gets, for the specified location, the current compute resource usage information as well as the limits for
// compute resources under the subscription.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - location - The location for which resource usage is queried.
// - options - UsageClientListOptions contains the optional parameters for the UsageClient.NewListPager method.
func (client *UsageClient) NewListPager(location string, options *UsageClientListOptions) *runtime.Pager[UsageClientListResponse] {
@@ -89,7 +89,7 @@ func (client *UsageClient) listCreateRequest(ctx context.Context, location strin
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineextensionimages_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineextensionimages_client.go
index e8ff65ad07..a337d24539 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineextensionimages_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineextensionimages_client.go
@@ -48,7 +48,7 @@ func NewVirtualMachineExtensionImagesClient(subscriptionID string, credential az
// Get - Gets a virtual machine extension image.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - location - The name of a supported Azure region.
// - options - VirtualMachineExtensionImagesClientGetOptions contains the optional parameters for the VirtualMachineExtensionImagesClient.Get
// method.
@@ -102,7 +102,7 @@ func (client *VirtualMachineExtensionImagesClient) getCreateRequest(ctx context.
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -120,7 +120,7 @@ func (client *VirtualMachineExtensionImagesClient) getHandleResponse(resp *http.
// ListTypes - Gets a list of virtual machine extension image types.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - location - The name of a supported Azure region.
// - options - VirtualMachineExtensionImagesClientListTypesOptions contains the optional parameters for the VirtualMachineExtensionImagesClient.ListTypes
// method.
@@ -166,7 +166,7 @@ func (client *VirtualMachineExtensionImagesClient) listTypesCreateRequest(ctx co
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -184,7 +184,7 @@ func (client *VirtualMachineExtensionImagesClient) listTypesHandleResponse(resp
// ListVersions - Gets a list of virtual machine extension image versions.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - location - The name of a supported Azure region.
// - options - VirtualMachineExtensionImagesClientListVersionsOptions contains the optional parameters for the VirtualMachineExtensionImagesClient.ListVersions
// method.
@@ -243,7 +243,7 @@ func (client *VirtualMachineExtensionImagesClient) listVersionsCreateRequest(ctx
if options != nil && options.Top != nil {
reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10))
}
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineextensions_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineextensions_client.go
index 9d658bb4ec..bd62e8137a 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineextensions_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineextensions_client.go
@@ -47,7 +47,7 @@ func NewVirtualMachineExtensionsClient(subscriptionID string, credential azcore.
// BeginCreateOrUpdate - The operation to create or update the extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine where the extension should be created or updated.
// - vmExtensionName - The name of the virtual machine extension.
@@ -74,7 +74,7 @@ func (client *VirtualMachineExtensionsClient) BeginCreateOrUpdate(ctx context.Co
// CreateOrUpdate - The operation to create or update the extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineExtensionsClient) createOrUpdate(ctx context.Context, resourceGroupName string, vmName string, vmExtensionName string, extensionParameters VirtualMachineExtension, options *VirtualMachineExtensionsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineExtensionsClient.BeginCreateOrUpdate"
@@ -120,7 +120,7 @@ func (client *VirtualMachineExtensionsClient) createOrUpdateCreateRequest(ctx co
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, extensionParameters); err != nil {
@@ -132,7 +132,7 @@ func (client *VirtualMachineExtensionsClient) createOrUpdateCreateRequest(ctx co
// BeginDelete - The operation to delete the extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine where the extension should be deleted.
// - vmExtensionName - The name of the virtual machine extension.
@@ -158,7 +158,7 @@ func (client *VirtualMachineExtensionsClient) BeginDelete(ctx context.Context, r
// Delete - The operation to delete the extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineExtensionsClient) deleteOperation(ctx context.Context, resourceGroupName string, vmName string, vmExtensionName string, options *VirtualMachineExtensionsClientBeginDeleteOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineExtensionsClient.BeginDelete"
@@ -204,7 +204,7 @@ func (client *VirtualMachineExtensionsClient) deleteCreateRequest(ctx context.Co
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -213,7 +213,7 @@ func (client *VirtualMachineExtensionsClient) deleteCreateRequest(ctx context.Co
// Get - The operation to get the extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine containing the extension.
// - vmExtensionName - The name of the virtual machine extension.
@@ -268,7 +268,7 @@ func (client *VirtualMachineExtensionsClient) getCreateRequest(ctx context.Conte
if options != nil && options.Expand != nil {
reqQP.Set("$expand", *options.Expand)
}
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -286,7 +286,7 @@ func (client *VirtualMachineExtensionsClient) getHandleResponse(resp *http.Respo
// List - The operation to get all extensions of a Virtual Machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine containing the extension.
// - options - VirtualMachineExtensionsClientListOptions contains the optional parameters for the VirtualMachineExtensionsClient.List
@@ -336,7 +336,7 @@ func (client *VirtualMachineExtensionsClient) listCreateRequest(ctx context.Cont
if options != nil && options.Expand != nil {
reqQP.Set("$expand", *options.Expand)
}
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -354,7 +354,7 @@ func (client *VirtualMachineExtensionsClient) listHandleResponse(resp *http.Resp
// BeginUpdate - The operation to update the extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine where the extension should be updated.
// - vmExtensionName - The name of the virtual machine extension.
@@ -381,7 +381,7 @@ func (client *VirtualMachineExtensionsClient) BeginUpdate(ctx context.Context, r
// Update - The operation to update the extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineExtensionsClient) update(ctx context.Context, resourceGroupName string, vmName string, vmExtensionName string, extensionParameters VirtualMachineExtensionUpdate, options *VirtualMachineExtensionsClientBeginUpdateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineExtensionsClient.BeginUpdate"
@@ -427,7 +427,7 @@ func (client *VirtualMachineExtensionsClient) updateCreateRequest(ctx context.Co
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, extensionParameters); err != nil {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineimages_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineimages_client.go
index 2e0e80d8b8..d2557d0d45 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineimages_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineimages_client.go
@@ -48,7 +48,7 @@ func NewVirtualMachineImagesClient(subscriptionID string, credential azcore.Toke
// Get - Gets a virtual machine image.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - location - The name of a supported Azure region.
// - publisherName - A valid image publisher.
// - offer - A valid image publisher offer.
@@ -110,7 +110,7 @@ func (client *VirtualMachineImagesClient) getCreateRequest(ctx context.Context,
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -128,7 +128,7 @@ func (client *VirtualMachineImagesClient) getHandleResponse(resp *http.Response)
// List - Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - location - The name of a supported Azure region.
// - publisherName - A valid image publisher.
// - offer - A valid image publisher offer.
@@ -194,7 +194,7 @@ func (client *VirtualMachineImagesClient) listCreateRequest(ctx context.Context,
if options != nil && options.Top != nil {
reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10))
}
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -212,7 +212,7 @@ func (client *VirtualMachineImagesClient) listHandleResponse(resp *http.Response
// ListByEdgeZone - Gets a list of all virtual machine image versions for the specified edge zone
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - location - The name of a supported Azure region.
// - edgeZone - The name of the edge zone.
// - options - VirtualMachineImagesClientListByEdgeZoneOptions contains the optional parameters for the VirtualMachineImagesClient.ListByEdgeZone
@@ -259,7 +259,7 @@ func (client *VirtualMachineImagesClient) listByEdgeZoneCreateRequest(ctx contex
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -277,7 +277,7 @@ func (client *VirtualMachineImagesClient) listByEdgeZoneHandleResponse(resp *htt
// ListOffers - Gets a list of virtual machine image offers for the specified location and publisher.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - location - The name of a supported Azure region.
// - publisherName - A valid image publisher.
// - options - VirtualMachineImagesClientListOffersOptions contains the optional parameters for the VirtualMachineImagesClient.ListOffers
@@ -324,7 +324,7 @@ func (client *VirtualMachineImagesClient) listOffersCreateRequest(ctx context.Co
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -342,7 +342,7 @@ func (client *VirtualMachineImagesClient) listOffersHandleResponse(resp *http.Re
// ListPublishers - Gets a list of virtual machine image publishers for the specified Azure location.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - location - The name of a supported Azure region.
// - options - VirtualMachineImagesClientListPublishersOptions contains the optional parameters for the VirtualMachineImagesClient.ListPublishers
// method.
@@ -384,7 +384,7 @@ func (client *VirtualMachineImagesClient) listPublishersCreateRequest(ctx contex
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -402,7 +402,7 @@ func (client *VirtualMachineImagesClient) listPublishersHandleResponse(resp *htt
// ListSKUs - Gets a list of virtual machine image SKUs for the specified location, publisher, and offer.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - location - The name of a supported Azure region.
// - publisherName - A valid image publisher.
// - offer - A valid image publisher offer.
@@ -454,7 +454,7 @@ func (client *VirtualMachineImagesClient) listSKUsCreateRequest(ctx context.Cont
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineimagesedgezone_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineimagesedgezone_client.go
index 756fe975e5..8558798f5e 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineimagesedgezone_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineimagesedgezone_client.go
@@ -48,7 +48,7 @@ func NewVirtualMachineImagesEdgeZoneClient(subscriptionID string, credential azc
// Get - Gets a virtual machine image in an edge zone.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - location - The name of a supported Azure region.
// - edgeZone - The name of the edge zone.
// - publisherName - A valid image publisher.
@@ -115,7 +115,7 @@ func (client *VirtualMachineImagesEdgeZoneClient) getCreateRequest(ctx context.C
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -133,7 +133,7 @@ func (client *VirtualMachineImagesEdgeZoneClient) getHandleResponse(resp *http.R
// List - Gets a list of all virtual machine image versions for the specified location, edge zone, publisher, offer, and SKU.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - location - The name of a supported Azure region.
// - edgeZone - The name of the edge zone.
// - publisherName - A valid image publisher.
@@ -204,7 +204,7 @@ func (client *VirtualMachineImagesEdgeZoneClient) listCreateRequest(ctx context.
if options != nil && options.Top != nil {
reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10))
}
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -222,7 +222,7 @@ func (client *VirtualMachineImagesEdgeZoneClient) listHandleResponse(resp *http.
// ListOffers - Gets a list of virtual machine image offers for the specified location, edge zone and publisher.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - location - The name of a supported Azure region.
// - edgeZone - The name of the edge zone.
// - publisherName - A valid image publisher.
@@ -274,7 +274,7 @@ func (client *VirtualMachineImagesEdgeZoneClient) listOffersCreateRequest(ctx co
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -292,7 +292,7 @@ func (client *VirtualMachineImagesEdgeZoneClient) listOffersHandleResponse(resp
// ListPublishers - Gets a list of virtual machine image publishers for the specified Azure location and edge zone.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - location - The name of a supported Azure region.
// - edgeZone - The name of the edge zone.
// - options - VirtualMachineImagesEdgeZoneClientListPublishersOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.ListPublishers
@@ -339,7 +339,7 @@ func (client *VirtualMachineImagesEdgeZoneClient) listPublishersCreateRequest(ct
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -357,7 +357,7 @@ func (client *VirtualMachineImagesEdgeZoneClient) listPublishersHandleResponse(r
// ListSKUs - Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and offer.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - location - The name of a supported Azure region.
// - edgeZone - The name of the edge zone.
// - publisherName - A valid image publisher.
@@ -414,7 +414,7 @@ func (client *VirtualMachineImagesEdgeZoneClient) listSKUsCreateRequest(ctx cont
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineruncommands_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineruncommands_client.go
index 348c59ade5..c5ef4894c2 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineruncommands_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachineruncommands_client.go
@@ -47,7 +47,7 @@ func NewVirtualMachineRunCommandsClient(subscriptionID string, credential azcore
// BeginCreateOrUpdate - The operation to create or update the run command.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine where the run command should be created or updated.
// - runCommandName - The name of the virtual machine run command.
@@ -74,7 +74,7 @@ func (client *VirtualMachineRunCommandsClient) BeginCreateOrUpdate(ctx context.C
// CreateOrUpdate - The operation to create or update the run command.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineRunCommandsClient) createOrUpdate(ctx context.Context, resourceGroupName string, vmName string, runCommandName string, runCommand VirtualMachineRunCommand, options *VirtualMachineRunCommandsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineRunCommandsClient.BeginCreateOrUpdate"
@@ -120,7 +120,7 @@ func (client *VirtualMachineRunCommandsClient) createOrUpdateCreateRequest(ctx c
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json, text/json"}
if err := runtime.MarshalAsJSON(req, runCommand); err != nil {
@@ -132,7 +132,7 @@ func (client *VirtualMachineRunCommandsClient) createOrUpdateCreateRequest(ctx c
// BeginDelete - The operation to delete the run command.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine where the run command should be deleted.
// - runCommandName - The name of the virtual machine run command.
@@ -158,7 +158,7 @@ func (client *VirtualMachineRunCommandsClient) BeginDelete(ctx context.Context,
// Delete - The operation to delete the run command.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineRunCommandsClient) deleteOperation(ctx context.Context, resourceGroupName string, vmName string, runCommandName string, options *VirtualMachineRunCommandsClientBeginDeleteOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineRunCommandsClient.BeginDelete"
@@ -204,7 +204,7 @@ func (client *VirtualMachineRunCommandsClient) deleteCreateRequest(ctx context.C
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json, text/json"}
return req, nil
@@ -213,7 +213,7 @@ func (client *VirtualMachineRunCommandsClient) deleteCreateRequest(ctx context.C
// Get - Gets specific run command for a subscription in a location.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - location - The location upon which run commands is queried.
// - commandID - The command id.
// - options - VirtualMachineRunCommandsClientGetOptions contains the optional parameters for the VirtualMachineRunCommandsClient.Get
@@ -260,7 +260,7 @@ func (client *VirtualMachineRunCommandsClient) getCreateRequest(ctx context.Cont
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json, text/json"}
return req, nil
@@ -278,7 +278,7 @@ func (client *VirtualMachineRunCommandsClient) getHandleResponse(resp *http.Resp
// GetByVirtualMachine - The operation to get the run command.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine containing the run command.
// - runCommandName - The name of the virtual machine run command.
@@ -333,7 +333,7 @@ func (client *VirtualMachineRunCommandsClient) getByVirtualMachineCreateRequest(
if options != nil && options.Expand != nil {
reqQP.Set("$expand", *options.Expand)
}
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json, text/json"}
return req, nil
@@ -350,7 +350,7 @@ func (client *VirtualMachineRunCommandsClient) getByVirtualMachineHandleResponse
// NewListPager - Lists all available run commands for a subscription in a location.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - location - The location upon which run commands is queried.
// - options - VirtualMachineRunCommandsClientListOptions contains the optional parameters for the VirtualMachineRunCommandsClient.NewListPager
// method.
@@ -393,7 +393,7 @@ func (client *VirtualMachineRunCommandsClient) listCreateRequest(ctx context.Con
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json, text/json"}
return req, nil
@@ -410,7 +410,7 @@ func (client *VirtualMachineRunCommandsClient) listHandleResponse(resp *http.Res
// NewListByVirtualMachinePager - The operation to get all run commands of a Virtual Machine.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine containing the run command.
// - options - VirtualMachineRunCommandsClientListByVirtualMachineOptions contains the optional parameters for the VirtualMachineRunCommandsClient.NewListByVirtualMachinePager
@@ -461,7 +461,7 @@ func (client *VirtualMachineRunCommandsClient) listByVirtualMachineCreateRequest
if options != nil && options.Expand != nil {
reqQP.Set("$expand", *options.Expand)
}
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json, text/json"}
return req, nil
@@ -479,7 +479,7 @@ func (client *VirtualMachineRunCommandsClient) listByVirtualMachineHandleRespons
// BeginUpdate - The operation to update the run command.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine where the run command should be updated.
// - runCommandName - The name of the virtual machine run command.
@@ -506,7 +506,7 @@ func (client *VirtualMachineRunCommandsClient) BeginUpdate(ctx context.Context,
// Update - The operation to update the run command.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineRunCommandsClient) update(ctx context.Context, resourceGroupName string, vmName string, runCommandName string, runCommand VirtualMachineRunCommandUpdate, options *VirtualMachineRunCommandsClientBeginUpdateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineRunCommandsClient.BeginUpdate"
@@ -552,7 +552,7 @@ func (client *VirtualMachineRunCommandsClient) updateCreateRequest(ctx context.C
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json, text/json"}
if err := runtime.MarshalAsJSON(req, runCommand); err != nil {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachines_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachines_client.go
index a816e9a9db..dd55aabc3e 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachines_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachines_client.go
@@ -48,7 +48,7 @@ func NewVirtualMachinesClient(subscriptionID string, credential azcore.TokenCred
// BeginAssessPatches - Assess patches on the VM.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientBeginAssessPatchesOptions contains the optional parameters for the VirtualMachinesClient.BeginAssessPatches
@@ -74,7 +74,7 @@ func (client *VirtualMachinesClient) BeginAssessPatches(ctx context.Context, res
// AssessPatches - Assess patches on the VM.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) assessPatches(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginAssessPatchesOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginAssessPatches"
@@ -116,7 +116,7 @@ func (client *VirtualMachinesClient) assessPatchesCreateRequest(ctx context.Cont
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -125,7 +125,7 @@ func (client *VirtualMachinesClient) assessPatchesCreateRequest(ctx context.Cont
// BeginAttachDetachDataDisks - Attach and detach data disks to/from the virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - parameters - Parameters supplied to the attach and detach data disks operation on the virtual machine.
@@ -152,7 +152,7 @@ func (client *VirtualMachinesClient) BeginAttachDetachDataDisks(ctx context.Cont
// AttachDetachDataDisks - Attach and detach data disks to/from the virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) attachDetachDataDisks(ctx context.Context, resourceGroupName string, vmName string, parameters AttachDetachDataDisksRequest, options *VirtualMachinesClientBeginAttachDetachDataDisksOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginAttachDetachDataDisks"
@@ -194,7 +194,7 @@ func (client *VirtualMachinesClient) attachDetachDataDisksCreateRequest(ctx cont
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@@ -207,7 +207,7 @@ func (client *VirtualMachinesClient) attachDetachDataDisksCreateRequest(ctx cont
// similar VMs.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - parameters - Parameters supplied to the Capture Virtual Machine operation.
@@ -235,7 +235,7 @@ func (client *VirtualMachinesClient) BeginCapture(ctx context.Context, resourceG
// VMs.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) capture(ctx context.Context, resourceGroupName string, vmName string, parameters VirtualMachineCaptureParameters, options *VirtualMachinesClientBeginCaptureOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginCapture"
@@ -277,7 +277,7 @@ func (client *VirtualMachinesClient) captureCreateRequest(ctx context.Context, r
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@@ -290,7 +290,7 @@ func (client *VirtualMachinesClient) captureCreateRequest(ctx context.Context, r
// before invoking this operation.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientBeginConvertToManagedDisksOptions contains the optional parameters for the VirtualMachinesClient.BeginConvertToManagedDisks
@@ -316,7 +316,7 @@ func (client *VirtualMachinesClient) BeginConvertToManagedDisks(ctx context.Cont
// before invoking this operation.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) convertToManagedDisks(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginConvertToManagedDisksOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginConvertToManagedDisks"
@@ -358,7 +358,7 @@ func (client *VirtualMachinesClient) convertToManagedDisksCreateRequest(ctx cont
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -368,7 +368,7 @@ func (client *VirtualMachinesClient) convertToManagedDisksCreateRequest(ctx cont
// during virtual machine creation.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - parameters - Parameters supplied to the Create Virtual Machine operation.
@@ -395,7 +395,7 @@ func (client *VirtualMachinesClient) BeginCreateOrUpdate(ctx context.Context, re
// virtual machine creation.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) createOrUpdate(ctx context.Context, resourceGroupName string, vmName string, parameters VirtualMachine, options *VirtualMachinesClientBeginCreateOrUpdateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginCreateOrUpdate"
@@ -437,7 +437,7 @@ func (client *VirtualMachinesClient) createOrUpdateCreateRequest(ctx context.Con
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.IfMatch != nil {
@@ -456,7 +456,7 @@ func (client *VirtualMachinesClient) createOrUpdateCreateRequest(ctx context.Con
// resources that this virtual machine uses.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientBeginDeallocateOptions contains the optional parameters for the VirtualMachinesClient.BeginDeallocate
@@ -482,7 +482,7 @@ func (client *VirtualMachinesClient) BeginDeallocate(ctx context.Context, resour
// that this virtual machine uses.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) deallocate(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginDeallocateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginDeallocate"
@@ -524,7 +524,7 @@ func (client *VirtualMachinesClient) deallocateCreateRequest(ctx context.Context
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
if options != nil && options.Hibernate != nil {
reqQP.Set("hibernate", strconv.FormatBool(*options.Hibernate))
}
@@ -536,7 +536,7 @@ func (client *VirtualMachinesClient) deallocateCreateRequest(ctx context.Context
// BeginDelete - The operation to delete a virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientBeginDeleteOptions contains the optional parameters for the VirtualMachinesClient.BeginDelete
@@ -561,7 +561,7 @@ func (client *VirtualMachinesClient) BeginDelete(ctx context.Context, resourceGr
// Delete - The operation to delete a virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) deleteOperation(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginDeleteOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginDelete"
@@ -603,7 +603,7 @@ func (client *VirtualMachinesClient) deleteCreateRequest(ctx context.Context, re
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
if options != nil && options.ForceDeletion != nil {
reqQP.Set("forceDeletion", strconv.FormatBool(*options.ForceDeletion))
}
@@ -619,7 +619,7 @@ func (client *VirtualMachinesClient) deleteCreateRequest(ctx context.Context, re
// [https://docs.microsoft.com/azure/virtual-machines/linux/capture-image].
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientGeneralizeOptions contains the optional parameters for the VirtualMachinesClient.Generalize
@@ -665,7 +665,7 @@ func (client *VirtualMachinesClient) generalizeCreateRequest(ctx context.Context
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -674,7 +674,7 @@ func (client *VirtualMachinesClient) generalizeCreateRequest(ctx context.Context
// Get - Retrieves information about the model view or the instance view of a virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientGetOptions contains the optional parameters for the VirtualMachinesClient.Get method.
@@ -723,7 +723,7 @@ func (client *VirtualMachinesClient) getCreateRequest(ctx context.Context, resou
if options != nil && options.Expand != nil {
reqQP.Set("$expand", string(*options.Expand))
}
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -741,7 +741,7 @@ func (client *VirtualMachinesClient) getHandleResponse(resp *http.Response) (Vir
// BeginInstallPatches - Installs patches on the VM.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - installPatchesInput - Input for InstallPatches as directly received by the API
@@ -768,7 +768,7 @@ func (client *VirtualMachinesClient) BeginInstallPatches(ctx context.Context, re
// InstallPatches - Installs patches on the VM.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) installPatches(ctx context.Context, resourceGroupName string, vmName string, installPatchesInput VirtualMachineInstallPatchesParameters, options *VirtualMachinesClientBeginInstallPatchesOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginInstallPatches"
@@ -810,7 +810,7 @@ func (client *VirtualMachinesClient) installPatchesCreateRequest(ctx context.Con
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, installPatchesInput); err != nil {
@@ -822,7 +822,7 @@ func (client *VirtualMachinesClient) installPatchesCreateRequest(ctx context.Con
// InstanceView - Retrieves information about the run-time state of a virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientInstanceViewOptions contains the optional parameters for the VirtualMachinesClient.InstanceView
@@ -869,7 +869,7 @@ func (client *VirtualMachinesClient) instanceViewCreateRequest(ctx context.Conte
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -887,7 +887,7 @@ func (client *VirtualMachinesClient) instanceViewHandleResponse(resp *http.Respo
// NewListPager - Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response
// to get the next page of virtual machines.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - options - VirtualMachinesClientListOptions contains the optional parameters for the VirtualMachinesClient.NewListPager
// method.
@@ -936,7 +936,7 @@ func (client *VirtualMachinesClient) listCreateRequest(ctx context.Context, reso
if options != nil && options.Filter != nil {
reqQP.Set("$filter", *options.Filter)
}
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -954,7 +954,7 @@ func (client *VirtualMachinesClient) listHandleResponse(resp *http.Response) (Vi
// NewListAllPager - Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response
// to get the next page of virtual machines.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - options - VirtualMachinesClientListAllOptions contains the optional parameters for the VirtualMachinesClient.NewListAllPager
// method.
func (client *VirtualMachinesClient) NewListAllPager(options *VirtualMachinesClientListAllOptions) *runtime.Pager[VirtualMachinesClientListAllResponse] {
@@ -998,7 +998,7 @@ func (client *VirtualMachinesClient) listAllCreateRequest(ctx context.Context, o
if options != nil && options.Filter != nil {
reqQP.Set("$filter", *options.Filter)
}
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
if options != nil && options.StatusOnly != nil {
reqQP.Set("statusOnly", *options.StatusOnly)
}
@@ -1018,7 +1018,7 @@ func (client *VirtualMachinesClient) listAllHandleResponse(resp *http.Response)
// NewListAvailableSizesPager - Lists all available virtual machine sizes to which the specified virtual machine can be resized.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientListAvailableSizesOptions contains the optional parameters for the VirtualMachinesClient.NewListAvailableSizesPager
@@ -1067,7 +1067,7 @@ func (client *VirtualMachinesClient) listAvailableSizesCreateRequest(ctx context
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -1084,7 +1084,7 @@ func (client *VirtualMachinesClient) listAvailableSizesHandleResponse(resp *http
// NewListByLocationPager - Gets all the virtual machines under the specified subscription for the specified location.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - location - The location for which virtual machines under the subscription are queried.
// - options - VirtualMachinesClientListByLocationOptions contains the optional parameters for the VirtualMachinesClient.NewListByLocationPager
// method.
@@ -1127,7 +1127,7 @@ func (client *VirtualMachinesClient) listByLocationCreateRequest(ctx context.Con
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -1145,7 +1145,7 @@ func (client *VirtualMachinesClient) listByLocationHandleResponse(resp *http.Res
// BeginPerformMaintenance - The operation to perform maintenance on a virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientBeginPerformMaintenanceOptions contains the optional parameters for the VirtualMachinesClient.BeginPerformMaintenance
@@ -1170,7 +1170,7 @@ func (client *VirtualMachinesClient) BeginPerformMaintenance(ctx context.Context
// PerformMaintenance - The operation to perform maintenance on a virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) performMaintenance(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginPerformMaintenanceOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginPerformMaintenance"
@@ -1212,7 +1212,7 @@ func (client *VirtualMachinesClient) performMaintenanceCreateRequest(ctx context
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -1222,7 +1222,7 @@ func (client *VirtualMachinesClient) performMaintenanceCreateRequest(ctx context
// provisioned resources. You are still charged for this virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientBeginPowerOffOptions contains the optional parameters for the VirtualMachinesClient.BeginPowerOff
@@ -1248,7 +1248,7 @@ func (client *VirtualMachinesClient) BeginPowerOff(ctx context.Context, resource
// resources. You are still charged for this virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) powerOff(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginPowerOffOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginPowerOff"
@@ -1290,7 +1290,7 @@ func (client *VirtualMachinesClient) powerOffCreateRequest(ctx context.Context,
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
if options != nil && options.SkipShutdown != nil {
reqQP.Set("skipShutdown", strconv.FormatBool(*options.SkipShutdown))
}
@@ -1302,7 +1302,7 @@ func (client *VirtualMachinesClient) powerOffCreateRequest(ctx context.Context,
// BeginReapply - The operation to reapply a virtual machine's state.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientBeginReapplyOptions contains the optional parameters for the VirtualMachinesClient.BeginReapply
@@ -1327,7 +1327,7 @@ func (client *VirtualMachinesClient) BeginReapply(ctx context.Context, resourceG
// Reapply - The operation to reapply a virtual machine's state.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) reapply(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginReapplyOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginReapply"
@@ -1369,7 +1369,7 @@ func (client *VirtualMachinesClient) reapplyCreateRequest(ctx context.Context, r
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -1378,7 +1378,7 @@ func (client *VirtualMachinesClient) reapplyCreateRequest(ctx context.Context, r
// BeginRedeploy - Shuts down the virtual machine, moves it to a new node, and powers it back on.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientBeginRedeployOptions contains the optional parameters for the VirtualMachinesClient.BeginRedeploy
@@ -1403,7 +1403,7 @@ func (client *VirtualMachinesClient) BeginRedeploy(ctx context.Context, resource
// Redeploy - Shuts down the virtual machine, moves it to a new node, and powers it back on.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) redeploy(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginRedeployOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginRedeploy"
@@ -1445,7 +1445,7 @@ func (client *VirtualMachinesClient) redeployCreateRequest(ctx context.Context,
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -1458,7 +1458,7 @@ func (client *VirtualMachinesClient) redeployCreateRequest(ctx context.Context,
// will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientBeginReimageOptions contains the optional parameters for the VirtualMachinesClient.BeginReimage
@@ -1487,7 +1487,7 @@ func (client *VirtualMachinesClient) BeginReimage(ctx context.Context, resourceG
// will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) reimage(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginReimageOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginReimage"
@@ -1529,7 +1529,7 @@ func (client *VirtualMachinesClient) reimageCreateRequest(ctx context.Context, r
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.Parameters != nil {
@@ -1544,7 +1544,7 @@ func (client *VirtualMachinesClient) reimageCreateRequest(ctx context.Context, r
// BeginRestart - The operation to restart a virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientBeginRestartOptions contains the optional parameters for the VirtualMachinesClient.BeginRestart
@@ -1569,7 +1569,7 @@ func (client *VirtualMachinesClient) BeginRestart(ctx context.Context, resourceG
// Restart - The operation to restart a virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) restart(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginRestartOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginRestart"
@@ -1611,7 +1611,7 @@ func (client *VirtualMachinesClient) restartCreateRequest(ctx context.Context, r
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -1620,7 +1620,7 @@ func (client *VirtualMachinesClient) restartCreateRequest(ctx context.Context, r
// RetrieveBootDiagnosticsData - The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientRetrieveBootDiagnosticsDataOptions contains the optional parameters for the VirtualMachinesClient.RetrieveBootDiagnosticsData
@@ -1667,7 +1667,7 @@ func (client *VirtualMachinesClient) retrieveBootDiagnosticsDataCreateRequest(ct
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
if options != nil && options.SasURIExpirationTimeInMinutes != nil {
reqQP.Set("sasUriExpirationTimeInMinutes", strconv.FormatInt(int64(*options.SasURIExpirationTimeInMinutes), 10))
}
@@ -1688,7 +1688,7 @@ func (client *VirtualMachinesClient) retrieveBootDiagnosticsDataHandleResponse(r
// BeginRunCommand - Run command on the VM.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - parameters - Parameters supplied to the Run command operation.
@@ -1715,7 +1715,7 @@ func (client *VirtualMachinesClient) BeginRunCommand(ctx context.Context, resour
// RunCommand - Run command on the VM.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) runCommand(ctx context.Context, resourceGroupName string, vmName string, parameters RunCommandInput, options *VirtualMachinesClientBeginRunCommandOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginRunCommand"
@@ -1757,7 +1757,7 @@ func (client *VirtualMachinesClient) runCommandCreateRequest(ctx context.Context
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json, text/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@@ -1769,7 +1769,7 @@ func (client *VirtualMachinesClient) runCommandCreateRequest(ctx context.Context
// SimulateEviction - The operation to simulate the eviction of spot virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientSimulateEvictionOptions contains the optional parameters for the VirtualMachinesClient.SimulateEviction
@@ -1815,7 +1815,7 @@ func (client *VirtualMachinesClient) simulateEvictionCreateRequest(ctx context.C
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -1824,7 +1824,7 @@ func (client *VirtualMachinesClient) simulateEvictionCreateRequest(ctx context.C
// BeginStart - The operation to start a virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientBeginStartOptions contains the optional parameters for the VirtualMachinesClient.BeginStart
@@ -1849,7 +1849,7 @@ func (client *VirtualMachinesClient) BeginStart(ctx context.Context, resourceGro
// Start - The operation to start a virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) start(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginStartOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginStart"
@@ -1891,7 +1891,7 @@ func (client *VirtualMachinesClient) startCreateRequest(ctx context.Context, res
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -1900,7 +1900,7 @@ func (client *VirtualMachinesClient) startCreateRequest(ctx context.Context, res
// BeginUpdate - The operation to update a virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - parameters - Parameters supplied to the Update Virtual Machine operation.
@@ -1926,7 +1926,7 @@ func (client *VirtualMachinesClient) BeginUpdate(ctx context.Context, resourceGr
// Update - The operation to update a virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) update(ctx context.Context, resourceGroupName string, vmName string, parameters VirtualMachineUpdate, options *VirtualMachinesClientBeginUpdateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginUpdate"
@@ -1968,7 +1968,7 @@ func (client *VirtualMachinesClient) updateCreateRequest(ctx context.Context, re
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.IfMatch != nil {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetextensions_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetextensions_client.go
index 585b426578..81ddfad6a6 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetextensions_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetextensions_client.go
@@ -47,7 +47,7 @@ func NewVirtualMachineScaleSetExtensionsClient(subscriptionID string, credential
// BeginCreateOrUpdate - The operation to create or update an extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set where the extension should be create or updated.
// - vmssExtensionName - The name of the VM scale set extension.
@@ -74,7 +74,7 @@ func (client *VirtualMachineScaleSetExtensionsClient) BeginCreateOrUpdate(ctx co
// CreateOrUpdate - The operation to create or update an extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetExtensionsClient) createOrUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmssExtensionName string, extensionParameters VirtualMachineScaleSetExtension, options *VirtualMachineScaleSetExtensionsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetExtensionsClient.BeginCreateOrUpdate"
@@ -120,7 +120,7 @@ func (client *VirtualMachineScaleSetExtensionsClient) createOrUpdateCreateReques
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, extensionParameters); err != nil {
@@ -132,7 +132,7 @@ func (client *VirtualMachineScaleSetExtensionsClient) createOrUpdateCreateReques
// BeginDelete - The operation to delete the extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set where the extension should be deleted.
// - vmssExtensionName - The name of the VM scale set extension.
@@ -158,7 +158,7 @@ func (client *VirtualMachineScaleSetExtensionsClient) BeginDelete(ctx context.Co
// Delete - The operation to delete the extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetExtensionsClient) deleteOperation(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmssExtensionName string, options *VirtualMachineScaleSetExtensionsClientBeginDeleteOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetExtensionsClient.BeginDelete"
@@ -204,7 +204,7 @@ func (client *VirtualMachineScaleSetExtensionsClient) deleteCreateRequest(ctx co
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -213,7 +213,7 @@ func (client *VirtualMachineScaleSetExtensionsClient) deleteCreateRequest(ctx co
// Get - The operation to get the extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set containing the extension.
// - vmssExtensionName - The name of the VM scale set extension.
@@ -268,7 +268,7 @@ func (client *VirtualMachineScaleSetExtensionsClient) getCreateRequest(ctx conte
if options != nil && options.Expand != nil {
reqQP.Set("$expand", *options.Expand)
}
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -285,7 +285,7 @@ func (client *VirtualMachineScaleSetExtensionsClient) getHandleResponse(resp *ht
// NewListPager - Gets a list of all extensions in a VM scale set.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set containing the extension.
// - options - VirtualMachineScaleSetExtensionsClientListOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.NewListPager
@@ -333,7 +333,7 @@ func (client *VirtualMachineScaleSetExtensionsClient) listCreateRequest(ctx cont
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -351,7 +351,7 @@ func (client *VirtualMachineScaleSetExtensionsClient) listHandleResponse(resp *h
// BeginUpdate - The operation to update an extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set where the extension should be updated.
// - vmssExtensionName - The name of the VM scale set extension.
@@ -378,7 +378,7 @@ func (client *VirtualMachineScaleSetExtensionsClient) BeginUpdate(ctx context.Co
// Update - The operation to update an extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetExtensionsClient) update(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmssExtensionName string, extensionParameters VirtualMachineScaleSetExtensionUpdate, options *VirtualMachineScaleSetExtensionsClientBeginUpdateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetExtensionsClient.BeginUpdate"
@@ -424,7 +424,7 @@ func (client *VirtualMachineScaleSetExtensionsClient) updateCreateRequest(ctx co
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, extensionParameters); err != nil {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetrollingupgrades_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetrollingupgrades_client.go
index 9ef8a1902a..41e01d5d74 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetrollingupgrades_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetrollingupgrades_client.go
@@ -47,7 +47,7 @@ func NewVirtualMachineScaleSetRollingUpgradesClient(subscriptionID string, crede
// BeginCancel - Cancels the current virtual machine scale set rolling upgrade.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetRollingUpgradesClientBeginCancelOptions contains the optional parameters for the VirtualMachineScaleSetRollingUpgradesClient.BeginCancel
@@ -72,7 +72,7 @@ func (client *VirtualMachineScaleSetRollingUpgradesClient) BeginCancel(ctx conte
// Cancel - Cancels the current virtual machine scale set rolling upgrade.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetRollingUpgradesClient) cancel(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetRollingUpgradesClientBeginCancelOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetRollingUpgradesClient.BeginCancel"
@@ -114,7 +114,7 @@ func (client *VirtualMachineScaleSetRollingUpgradesClient) cancelCreateRequest(c
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -123,7 +123,7 @@ func (client *VirtualMachineScaleSetRollingUpgradesClient) cancelCreateRequest(c
// GetLatest - Gets the status of the latest virtual machine scale set rolling upgrade.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetRollingUpgradesClientGetLatestOptions contains the optional parameters for the VirtualMachineScaleSetRollingUpgradesClient.GetLatest
@@ -170,7 +170,7 @@ func (client *VirtualMachineScaleSetRollingUpgradesClient) getLatestCreateReques
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -190,7 +190,7 @@ func (client *VirtualMachineScaleSetRollingUpgradesClient) getLatestHandleRespon
// are not affected.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetRollingUpgradesClientBeginStartExtensionUpgradeOptions contains the optional parameters
@@ -217,7 +217,7 @@ func (client *VirtualMachineScaleSetRollingUpgradesClient) BeginStartExtensionUp
// are not affected.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetRollingUpgradesClient) startExtensionUpgrade(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetRollingUpgradesClientBeginStartExtensionUpgradeOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetRollingUpgradesClient.BeginStartExtensionUpgrade"
@@ -259,7 +259,7 @@ func (client *VirtualMachineScaleSetRollingUpgradesClient) startExtensionUpgrade
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -270,7 +270,7 @@ func (client *VirtualMachineScaleSetRollingUpgradesClient) startExtensionUpgrade
// affected.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetRollingUpgradesClientBeginStartOSUpgradeOptions contains the optional parameters for the
@@ -297,7 +297,7 @@ func (client *VirtualMachineScaleSetRollingUpgradesClient) BeginStartOSUpgrade(c
// affected.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetRollingUpgradesClient) startOSUpgrade(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetRollingUpgradesClientBeginStartOSUpgradeOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetRollingUpgradesClient.BeginStartOSUpgrade"
@@ -339,7 +339,7 @@ func (client *VirtualMachineScaleSetRollingUpgradesClient) startOSUpgradeCreateR
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesets_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesets_client.go
index 81f13d5049..a03ff0c508 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesets_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesets_client.go
@@ -49,7 +49,7 @@ func NewVirtualMachineScaleSetsClient(subscriptionID string, credential azcore.T
// scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetsClientBeginApproveRollingUpgradeOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginApproveRollingUpgrade
@@ -75,7 +75,7 @@ func (client *VirtualMachineScaleSetsClient) BeginApproveRollingUpgrade(ctx cont
// set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) approveRollingUpgrade(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginApproveRollingUpgradeOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginApproveRollingUpgrade"
@@ -117,7 +117,7 @@ func (client *VirtualMachineScaleSetsClient) approveRollingUpgradeCreateRequest(
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.VMInstanceIDs != nil {
@@ -132,7 +132,7 @@ func (client *VirtualMachineScaleSetsClient) approveRollingUpgradeCreateRequest(
// ConvertToSinglePlacementGroup - Converts SinglePlacementGroup property to false for a existing virtual machine scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the virtual machine scale set to create or update.
// - parameters - The input object for ConvertToSinglePlacementGroup API.
@@ -179,7 +179,7 @@ func (client *VirtualMachineScaleSetsClient) convertToSinglePlacementGroupCreate
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@@ -191,7 +191,7 @@ func (client *VirtualMachineScaleSetsClient) convertToSinglePlacementGroupCreate
// BeginCreateOrUpdate - Create or update a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set to create or update.
// - parameters - The scale set object.
@@ -217,7 +217,7 @@ func (client *VirtualMachineScaleSetsClient) BeginCreateOrUpdate(ctx context.Con
// CreateOrUpdate - Create or update a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) createOrUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, parameters VirtualMachineScaleSet, options *VirtualMachineScaleSetsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginCreateOrUpdate"
@@ -259,7 +259,7 @@ func (client *VirtualMachineScaleSetsClient) createOrUpdateCreateRequest(ctx con
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.IfMatch != nil {
@@ -279,7 +279,7 @@ func (client *VirtualMachineScaleSetsClient) createOrUpdateCreateRequest(ctx con
// scale set deallocates.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetsClientBeginDeallocateOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginDeallocate
@@ -306,7 +306,7 @@ func (client *VirtualMachineScaleSetsClient) BeginDeallocate(ctx context.Context
// scale set deallocates.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) deallocate(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginDeallocateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginDeallocate"
@@ -348,7 +348,7 @@ func (client *VirtualMachineScaleSetsClient) deallocateCreateRequest(ctx context
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
if options != nil && options.Hibernate != nil {
reqQP.Set("hibernate", strconv.FormatBool(*options.Hibernate))
}
@@ -366,7 +366,7 @@ func (client *VirtualMachineScaleSetsClient) deallocateCreateRequest(ctx context
// BeginDelete - Deletes a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginDelete
@@ -391,7 +391,7 @@ func (client *VirtualMachineScaleSetsClient) BeginDelete(ctx context.Context, re
// Delete - Deletes a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) deleteOperation(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginDeleteOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginDelete"
@@ -433,7 +433,7 @@ func (client *VirtualMachineScaleSetsClient) deleteCreateRequest(ctx context.Con
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
if options != nil && options.ForceDeletion != nil {
reqQP.Set("forceDeletion", strconv.FormatBool(*options.ForceDeletion))
}
@@ -445,7 +445,7 @@ func (client *VirtualMachineScaleSetsClient) deleteCreateRequest(ctx context.Con
// BeginDeleteInstances - Deletes virtual machines in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
@@ -471,7 +471,7 @@ func (client *VirtualMachineScaleSetsClient) BeginDeleteInstances(ctx context.Co
// DeleteInstances - Deletes virtual machines in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) deleteInstances(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmInstanceIDs VirtualMachineScaleSetVMInstanceRequiredIDs, options *VirtualMachineScaleSetsClientBeginDeleteInstancesOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginDeleteInstances"
@@ -513,7 +513,7 @@ func (client *VirtualMachineScaleSetsClient) deleteInstancesCreateRequest(ctx co
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
if options != nil && options.ForceDeletion != nil {
reqQP.Set("forceDeletion", strconv.FormatBool(*options.ForceDeletion))
}
@@ -529,7 +529,7 @@ func (client *VirtualMachineScaleSetsClient) deleteInstancesCreateRequest(ctx co
// service fabric virtual machine scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - platformUpdateDomain - The platform update domain for which a manual recovery walk is requested
@@ -577,7 +577,7 @@ func (client *VirtualMachineScaleSetsClient) forceRecoveryServiceFabricPlatformU
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
if options != nil && options.PlacementGroupID != nil {
reqQP.Set("placementGroupId", *options.PlacementGroupID)
}
@@ -602,7 +602,7 @@ func (client *VirtualMachineScaleSetsClient) forceRecoveryServiceFabricPlatformU
// Get - Display information about a virtual machine scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetsClient.Get
@@ -652,7 +652,7 @@ func (client *VirtualMachineScaleSetsClient) getCreateRequest(ctx context.Contex
if options != nil && options.Expand != nil {
reqQP.Set("$expand", string(*options.Expand))
}
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -670,7 +670,7 @@ func (client *VirtualMachineScaleSetsClient) getHandleResponse(resp *http.Respon
// GetInstanceView - Gets the status of a VM scale set instance.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetsClientGetInstanceViewOptions contains the optional parameters for the VirtualMachineScaleSetsClient.GetInstanceView
@@ -717,7 +717,7 @@ func (client *VirtualMachineScaleSetsClient) getInstanceViewCreateRequest(ctx co
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -734,7 +734,7 @@ func (client *VirtualMachineScaleSetsClient) getInstanceViewHandleResponse(resp
// NewGetOSUpgradeHistoryPager - Gets list of OS upgrades on a VM scale set instance.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetsClientGetOSUpgradeHistoryOptions contains the optional parameters for the VirtualMachineScaleSetsClient.NewGetOSUpgradeHistoryPager
@@ -782,7 +782,7 @@ func (client *VirtualMachineScaleSetsClient) getOSUpgradeHistoryCreateRequest(ct
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -799,7 +799,7 @@ func (client *VirtualMachineScaleSetsClient) getOSUpgradeHistoryHandleResponse(r
// NewListPager - Gets a list of all VM scale sets under a resource group.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - options - VirtualMachineScaleSetsClientListOptions contains the optional parameters for the VirtualMachineScaleSetsClient.NewListPager
// method.
@@ -842,7 +842,7 @@ func (client *VirtualMachineScaleSetsClient) listCreateRequest(ctx context.Conte
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -861,7 +861,7 @@ func (client *VirtualMachineScaleSetsClient) listHandleResponse(resp *http.Respo
// nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is
// null to fetch all the VM Scale Sets.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - options - VirtualMachineScaleSetsClientListAllOptions contains the optional parameters for the VirtualMachineScaleSetsClient.NewListAllPager
// method.
func (client *VirtualMachineScaleSetsClient) NewListAllPager(options *VirtualMachineScaleSetsClientListAllOptions) *runtime.Pager[VirtualMachineScaleSetsClientListAllResponse] {
@@ -899,7 +899,7 @@ func (client *VirtualMachineScaleSetsClient) listAllCreateRequest(ctx context.Co
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -916,7 +916,7 @@ func (client *VirtualMachineScaleSetsClient) listAllHandleResponse(resp *http.Re
// NewListByLocationPager - Gets all the VM scale sets under the specified subscription for the specified location.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - location - The location for which VM scale sets under the subscription are queried.
// - options - VirtualMachineScaleSetsClientListByLocationOptions contains the optional parameters for the VirtualMachineScaleSetsClient.NewListByLocationPager
// method.
@@ -959,7 +959,7 @@ func (client *VirtualMachineScaleSetsClient) listByLocationCreateRequest(ctx con
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -977,7 +977,7 @@ func (client *VirtualMachineScaleSetsClient) listByLocationHandleResponse(resp *
// NewListSKUsPager - Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances
// allowed for each SKU.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetsClientListSKUsOptions contains the optional parameters for the VirtualMachineScaleSetsClient.NewListSKUsPager
@@ -1025,7 +1025,7 @@ func (client *VirtualMachineScaleSetsClient) listSKUsCreateRequest(ctx context.C
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -1045,7 +1045,7 @@ func (client *VirtualMachineScaleSetsClient) listSKUsHandleResponse(resp *http.R
// details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetsClientBeginPerformMaintenanceOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginPerformMaintenance
@@ -1072,7 +1072,7 @@ func (client *VirtualMachineScaleSetsClient) BeginPerformMaintenance(ctx context
// details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) performMaintenance(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginPerformMaintenanceOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginPerformMaintenance"
@@ -1114,7 +1114,7 @@ func (client *VirtualMachineScaleSetsClient) performMaintenanceCreateRequest(ctx
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.VMInstanceIDs != nil {
@@ -1131,7 +1131,7 @@ func (client *VirtualMachineScaleSetsClient) performMaintenanceCreateRequest(ctx
// avoid charges.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetsClientBeginPowerOffOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginPowerOff
@@ -1158,7 +1158,7 @@ func (client *VirtualMachineScaleSetsClient) BeginPowerOff(ctx context.Context,
// avoid charges.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) powerOff(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginPowerOffOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginPowerOff"
@@ -1200,7 +1200,7 @@ func (client *VirtualMachineScaleSetsClient) powerOffCreateRequest(ctx context.C
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
if options != nil && options.SkipShutdown != nil {
reqQP.Set("skipShutdown", strconv.FormatBool(*options.SkipShutdown))
}
@@ -1218,7 +1218,7 @@ func (client *VirtualMachineScaleSetsClient) powerOffCreateRequest(ctx context.C
// BeginReapply - Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetsClientBeginReapplyOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginReapply
@@ -1244,7 +1244,7 @@ func (client *VirtualMachineScaleSetsClient) BeginReapply(ctx context.Context, r
// Reapply - Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) reapply(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginReapplyOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginReapply"
@@ -1286,7 +1286,7 @@ func (client *VirtualMachineScaleSetsClient) reapplyCreateRequest(ctx context.Co
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -1296,7 +1296,7 @@ func (client *VirtualMachineScaleSetsClient) reapplyCreateRequest(ctx context.Co
// them back on.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetsClientBeginRedeployOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginRedeploy
@@ -1322,7 +1322,7 @@ func (client *VirtualMachineScaleSetsClient) BeginRedeploy(ctx context.Context,
// back on.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) redeploy(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginRedeployOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginRedeploy"
@@ -1364,7 +1364,7 @@ func (client *VirtualMachineScaleSetsClient) redeployCreateRequest(ctx context.C
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.VMInstanceIDs != nil {
@@ -1381,7 +1381,7 @@ func (client *VirtualMachineScaleSetsClient) redeployCreateRequest(ctx context.C
// reset to initial state.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetsClientBeginReimageOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginReimage
@@ -1408,7 +1408,7 @@ func (client *VirtualMachineScaleSetsClient) BeginReimage(ctx context.Context, r
// reset to initial state.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) reimage(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginReimageOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginReimage"
@@ -1450,7 +1450,7 @@ func (client *VirtualMachineScaleSetsClient) reimageCreateRequest(ctx context.Co
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.VMScaleSetReimageInput != nil {
@@ -1466,7 +1466,7 @@ func (client *VirtualMachineScaleSetsClient) reimageCreateRequest(ctx context.Co
// is only supported for managed disks.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetsClientBeginReimageAllOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginReimageAll
@@ -1492,7 +1492,7 @@ func (client *VirtualMachineScaleSetsClient) BeginReimageAll(ctx context.Context
// is only supported for managed disks.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) reimageAll(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginReimageAllOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginReimageAll"
@@ -1534,7 +1534,7 @@ func (client *VirtualMachineScaleSetsClient) reimageAllCreateRequest(ctx context
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.VMInstanceIDs != nil {
@@ -1549,7 +1549,7 @@ func (client *VirtualMachineScaleSetsClient) reimageAllCreateRequest(ctx context
// BeginRestart - Restarts one or more virtual machines in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetsClientBeginRestartOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginRestart
@@ -1574,7 +1574,7 @@ func (client *VirtualMachineScaleSetsClient) BeginRestart(ctx context.Context, r
// Restart - Restarts one or more virtual machines in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) restart(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginRestartOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginRestart"
@@ -1616,7 +1616,7 @@ func (client *VirtualMachineScaleSetsClient) restartCreateRequest(ctx context.Co
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.VMInstanceIDs != nil {
@@ -1631,7 +1631,7 @@ func (client *VirtualMachineScaleSetsClient) restartCreateRequest(ctx context.Co
// BeginSetOrchestrationServiceState - Changes ServiceState property for a given service
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the virtual machine scale set to create or update.
// - parameters - The input object for SetOrchestrationServiceState API.
@@ -1657,7 +1657,7 @@ func (client *VirtualMachineScaleSetsClient) BeginSetOrchestrationServiceState(c
// SetOrchestrationServiceState - Changes ServiceState property for a given service
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) setOrchestrationServiceState(ctx context.Context, resourceGroupName string, vmScaleSetName string, parameters OrchestrationServiceStateInput, options *VirtualMachineScaleSetsClientBeginSetOrchestrationServiceStateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginSetOrchestrationServiceState"
@@ -1699,7 +1699,7 @@ func (client *VirtualMachineScaleSetsClient) setOrchestrationServiceStateCreateR
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@@ -1711,7 +1711,7 @@ func (client *VirtualMachineScaleSetsClient) setOrchestrationServiceStateCreateR
// BeginStart - Starts one or more virtual machines in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetsClientBeginStartOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginStart
@@ -1736,7 +1736,7 @@ func (client *VirtualMachineScaleSetsClient) BeginStart(ctx context.Context, res
// Start - Starts one or more virtual machines in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) start(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginStartOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginStart"
@@ -1778,7 +1778,7 @@ func (client *VirtualMachineScaleSetsClient) startCreateRequest(ctx context.Cont
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.VMInstanceIDs != nil {
@@ -1793,7 +1793,7 @@ func (client *VirtualMachineScaleSetsClient) startCreateRequest(ctx context.Cont
// BeginUpdate - Update a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set to create or update.
// - parameters - The scale set object.
@@ -1819,7 +1819,7 @@ func (client *VirtualMachineScaleSetsClient) BeginUpdate(ctx context.Context, re
// Update - Update a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) update(ctx context.Context, resourceGroupName string, vmScaleSetName string, parameters VirtualMachineScaleSetUpdate, options *VirtualMachineScaleSetsClientBeginUpdateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginUpdate"
@@ -1861,7 +1861,7 @@ func (client *VirtualMachineScaleSetsClient) updateCreateRequest(ctx context.Con
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.IfMatch != nil {
@@ -1879,7 +1879,7 @@ func (client *VirtualMachineScaleSetsClient) updateCreateRequest(ctx context.Con
// BeginUpdateInstances - Upgrades one or more virtual machines to the latest SKU set in the VM scale set model.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
@@ -1905,7 +1905,7 @@ func (client *VirtualMachineScaleSetsClient) BeginUpdateInstances(ctx context.Co
// UpdateInstances - Upgrades one or more virtual machines to the latest SKU set in the VM scale set model.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) updateInstances(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmInstanceIDs VirtualMachineScaleSetVMInstanceRequiredIDs, options *VirtualMachineScaleSetsClientBeginUpdateInstancesOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginUpdateInstances"
@@ -1947,7 +1947,7 @@ func (client *VirtualMachineScaleSetsClient) updateInstancesCreateRequest(ctx co
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, vmInstanceIDs); err != nil {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetvmextensions_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetvmextensions_client.go
index ff23476236..c16821d834 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetvmextensions_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetvmextensions_client.go
@@ -47,7 +47,7 @@ func NewVirtualMachineScaleSetVMExtensionsClient(subscriptionID string, credenti
// BeginCreateOrUpdate - The operation to create or update the VMSS VM extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@@ -75,7 +75,7 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) BeginCreateOrUpdate(ctx
// CreateOrUpdate - The operation to create or update the VMSS VM extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMExtensionsClient) createOrUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, vmExtensionName string, extensionParameters VirtualMachineScaleSetVMExtension, options *VirtualMachineScaleSetVMExtensionsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMExtensionsClient.BeginCreateOrUpdate"
@@ -125,7 +125,7 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) createOrUpdateCreateRequ
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, extensionParameters); err != nil {
@@ -137,7 +137,7 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) createOrUpdateCreateRequ
// BeginDelete - The operation to delete the VMSS VM extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@@ -164,7 +164,7 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) BeginDelete(ctx context.
// Delete - The operation to delete the VMSS VM extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMExtensionsClient) deleteOperation(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, vmExtensionName string, options *VirtualMachineScaleSetVMExtensionsClientBeginDeleteOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMExtensionsClient.BeginDelete"
@@ -214,7 +214,7 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) deleteCreateRequest(ctx
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -223,7 +223,7 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) deleteCreateRequest(ctx
// Get - The operation to get the VMSS VM extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@@ -283,7 +283,7 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) getCreateRequest(ctx con
if options != nil && options.Expand != nil {
reqQP.Set("$expand", *options.Expand)
}
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -301,7 +301,7 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) getHandleResponse(resp *
// List - The operation to get all extensions of an instance in Virtual Machine Scaleset.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@@ -356,7 +356,7 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) listCreateRequest(ctx co
if options != nil && options.Expand != nil {
reqQP.Set("$expand", *options.Expand)
}
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -374,7 +374,7 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) listHandleResponse(resp
// BeginUpdate - The operation to update the VMSS VM extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@@ -402,7 +402,7 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) BeginUpdate(ctx context.
// Update - The operation to update the VMSS VM extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMExtensionsClient) update(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, vmExtensionName string, extensionParameters VirtualMachineScaleSetVMExtensionUpdate, options *VirtualMachineScaleSetVMExtensionsClientBeginUpdateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMExtensionsClient.BeginUpdate"
@@ -452,7 +452,7 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) updateCreateRequest(ctx
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, extensionParameters); err != nil {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetvmruncommands_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetvmruncommands_client.go
index 9736973fc5..85e67fc557 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetvmruncommands_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetvmruncommands_client.go
@@ -47,7 +47,7 @@ func NewVirtualMachineScaleSetVMRunCommandsClient(subscriptionID string, credent
// BeginCreateOrUpdate - The operation to create or update the VMSS VM run command.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@@ -75,7 +75,7 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) BeginCreateOrUpdate(ctx
// CreateOrUpdate - The operation to create or update the VMSS VM run command.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMRunCommandsClient) createOrUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, runCommandName string, runCommand VirtualMachineRunCommand, options *VirtualMachineScaleSetVMRunCommandsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMRunCommandsClient.BeginCreateOrUpdate"
@@ -125,7 +125,7 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) createOrUpdateCreateReq
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json, text/json"}
if err := runtime.MarshalAsJSON(req, runCommand); err != nil {
@@ -137,7 +137,7 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) createOrUpdateCreateReq
// BeginDelete - The operation to delete the VMSS VM run command.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@@ -164,7 +164,7 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) BeginDelete(ctx context
// Delete - The operation to delete the VMSS VM run command.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMRunCommandsClient) deleteOperation(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, runCommandName string, options *VirtualMachineScaleSetVMRunCommandsClientBeginDeleteOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMRunCommandsClient.BeginDelete"
@@ -214,7 +214,7 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) deleteCreateRequest(ctx
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json, text/json"}
return req, nil
@@ -223,7 +223,7 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) deleteCreateRequest(ctx
// Get - The operation to get the VMSS VM run command.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@@ -283,7 +283,7 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) getCreateRequest(ctx co
if options != nil && options.Expand != nil {
reqQP.Set("$expand", *options.Expand)
}
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json, text/json"}
return req, nil
@@ -300,7 +300,7 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) getHandleResponse(resp
// NewListPager - The operation to get all run commands of an instance in Virtual Machine Scaleset.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@@ -356,7 +356,7 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) listCreateRequest(ctx c
if options != nil && options.Expand != nil {
reqQP.Set("$expand", *options.Expand)
}
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json, text/json"}
return req, nil
@@ -374,7 +374,7 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) listHandleResponse(resp
// BeginUpdate - The operation to update the VMSS VM run command.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@@ -402,7 +402,7 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) BeginUpdate(ctx context
// Update - The operation to update the VMSS VM run command.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMRunCommandsClient) update(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, runCommandName string, runCommand VirtualMachineRunCommandUpdate, options *VirtualMachineScaleSetVMRunCommandsClientBeginUpdateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMRunCommandsClient.BeginUpdate"
@@ -452,7 +452,7 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) updateCreateRequest(ctx
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json, text/json"}
if err := runtime.MarshalAsJSON(req, runCommand); err != nil {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetvms_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetvms_client.go
index 0bd6fc83ae..379ae96b24 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetvms_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinescalesetvms_client.go
@@ -48,7 +48,7 @@ func NewVirtualMachineScaleSetVMsClient(subscriptionID string, credential azcore
// BeginApproveRollingUpgrade - Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@@ -74,7 +74,7 @@ func (client *VirtualMachineScaleSetVMsClient) BeginApproveRollingUpgrade(ctx co
// ApproveRollingUpgrade - Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMsClient) approveRollingUpgrade(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginApproveRollingUpgradeOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMsClient.BeginApproveRollingUpgrade"
@@ -120,7 +120,7 @@ func (client *VirtualMachineScaleSetVMsClient) approveRollingUpgradeCreateReques
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -129,7 +129,7 @@ func (client *VirtualMachineScaleSetVMsClient) approveRollingUpgradeCreateReques
// BeginAttachDetachDataDisks - Attach and detach data disks to/from a virtual machine in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@@ -157,7 +157,7 @@ func (client *VirtualMachineScaleSetVMsClient) BeginAttachDetachDataDisks(ctx co
// AttachDetachDataDisks - Attach and detach data disks to/from a virtual machine in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMsClient) attachDetachDataDisks(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, parameters AttachDetachDataDisksRequest, options *VirtualMachineScaleSetVMsClientBeginAttachDetachDataDisksOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMsClient.BeginAttachDetachDataDisks"
@@ -203,7 +203,7 @@ func (client *VirtualMachineScaleSetVMsClient) attachDetachDataDisksCreateReques
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@@ -217,7 +217,7 @@ func (client *VirtualMachineScaleSetVMsClient) attachDetachDataDisksCreateReques
// machine once it is deallocated.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@@ -245,7 +245,7 @@ func (client *VirtualMachineScaleSetVMsClient) BeginDeallocate(ctx context.Conte
// machine once it is deallocated.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMsClient) deallocate(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginDeallocateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMsClient.BeginDeallocate"
@@ -291,7 +291,7 @@ func (client *VirtualMachineScaleSetVMsClient) deallocateCreateRequest(ctx conte
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -300,7 +300,7 @@ func (client *VirtualMachineScaleSetVMsClient) deallocateCreateRequest(ctx conte
// BeginDelete - Deletes a virtual machine from a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@@ -326,7 +326,7 @@ func (client *VirtualMachineScaleSetVMsClient) BeginDelete(ctx context.Context,
// Delete - Deletes a virtual machine from a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMsClient) deleteOperation(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginDeleteOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMsClient.BeginDelete"
@@ -372,7 +372,7 @@ func (client *VirtualMachineScaleSetVMsClient) deleteCreateRequest(ctx context.C
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
if options != nil && options.ForceDeletion != nil {
reqQP.Set("forceDeletion", strconv.FormatBool(*options.ForceDeletion))
}
@@ -384,7 +384,7 @@ func (client *VirtualMachineScaleSetVMsClient) deleteCreateRequest(ctx context.C
// Get - Gets a virtual machine from a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@@ -439,7 +439,7 @@ func (client *VirtualMachineScaleSetVMsClient) getCreateRequest(ctx context.Cont
if options != nil && options.Expand != nil {
reqQP.Set("$expand", string(*options.Expand))
}
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -457,7 +457,7 @@ func (client *VirtualMachineScaleSetVMsClient) getHandleResponse(resp *http.Resp
// GetInstanceView - Gets the status of a virtual machine from a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@@ -509,7 +509,7 @@ func (client *VirtualMachineScaleSetVMsClient) getInstanceViewCreateRequest(ctx
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -526,7 +526,7 @@ func (client *VirtualMachineScaleSetVMsClient) getInstanceViewHandleResponse(res
// NewListPager - Gets a list of all virtual machines in a VM scale sets.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - virtualMachineScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetVMsClientListOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.NewListPager
@@ -583,7 +583,7 @@ func (client *VirtualMachineScaleSetVMsClient) listCreateRequest(ctx context.Con
if options != nil && options.Select != nil {
reqQP.Set("$select", *options.Select)
}
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -601,7 +601,7 @@ func (client *VirtualMachineScaleSetVMsClient) listHandleResponse(resp *http.Res
// BeginPerformMaintenance - Performs maintenance on a virtual machine in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@@ -627,7 +627,7 @@ func (client *VirtualMachineScaleSetVMsClient) BeginPerformMaintenance(ctx conte
// PerformMaintenance - Performs maintenance on a virtual machine in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMsClient) performMaintenance(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginPerformMaintenanceOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMsClient.BeginPerformMaintenance"
@@ -673,7 +673,7 @@ func (client *VirtualMachineScaleSetVMsClient) performMaintenanceCreateRequest(c
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -684,7 +684,7 @@ func (client *VirtualMachineScaleSetVMsClient) performMaintenanceCreateRequest(c
// charges.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@@ -712,7 +712,7 @@ func (client *VirtualMachineScaleSetVMsClient) BeginPowerOff(ctx context.Context
// charges.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMsClient) powerOff(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginPowerOffOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMsClient.BeginPowerOff"
@@ -758,7 +758,7 @@ func (client *VirtualMachineScaleSetVMsClient) powerOffCreateRequest(ctx context
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
if options != nil && options.SkipShutdown != nil {
reqQP.Set("skipShutdown", strconv.FormatBool(*options.SkipShutdown))
}
@@ -771,7 +771,7 @@ func (client *VirtualMachineScaleSetVMsClient) powerOffCreateRequest(ctx context
// back on.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@@ -798,7 +798,7 @@ func (client *VirtualMachineScaleSetVMsClient) BeginRedeploy(ctx context.Context
// on.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMsClient) redeploy(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginRedeployOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMsClient.BeginRedeploy"
@@ -844,7 +844,7 @@ func (client *VirtualMachineScaleSetVMsClient) redeployCreateRequest(ctx context
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -853,7 +853,7 @@ func (client *VirtualMachineScaleSetVMsClient) redeployCreateRequest(ctx context
// BeginReimage - Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@@ -879,7 +879,7 @@ func (client *VirtualMachineScaleSetVMsClient) BeginReimage(ctx context.Context,
// Reimage - Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMsClient) reimage(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginReimageOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMsClient.BeginReimage"
@@ -925,7 +925,7 @@ func (client *VirtualMachineScaleSetVMsClient) reimageCreateRequest(ctx context.
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.VMScaleSetVMReimageInput != nil {
@@ -941,7 +941,7 @@ func (client *VirtualMachineScaleSetVMsClient) reimageCreateRequest(ctx context.
// is only supported for managed disks.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@@ -968,7 +968,7 @@ func (client *VirtualMachineScaleSetVMsClient) BeginReimageAll(ctx context.Conte
// is only supported for managed disks.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMsClient) reimageAll(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginReimageAllOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMsClient.BeginReimageAll"
@@ -1014,7 +1014,7 @@ func (client *VirtualMachineScaleSetVMsClient) reimageAllCreateRequest(ctx conte
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -1023,7 +1023,7 @@ func (client *VirtualMachineScaleSetVMsClient) reimageAllCreateRequest(ctx conte
// BeginRestart - Restarts a virtual machine in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@@ -1049,7 +1049,7 @@ func (client *VirtualMachineScaleSetVMsClient) BeginRestart(ctx context.Context,
// Restart - Restarts a virtual machine in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMsClient) restart(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginRestartOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMsClient.BeginRestart"
@@ -1095,7 +1095,7 @@ func (client *VirtualMachineScaleSetVMsClient) restartCreateRequest(ctx context.
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -1105,7 +1105,7 @@ func (client *VirtualMachineScaleSetVMsClient) restartCreateRequest(ctx context.
// scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@@ -1157,7 +1157,7 @@ func (client *VirtualMachineScaleSetVMsClient) retrieveBootDiagnosticsDataCreate
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
if options != nil && options.SasURIExpirationTimeInMinutes != nil {
reqQP.Set("sasUriExpirationTimeInMinutes", strconv.FormatInt(int64(*options.SasURIExpirationTimeInMinutes), 10))
}
@@ -1178,7 +1178,7 @@ func (client *VirtualMachineScaleSetVMsClient) retrieveBootDiagnosticsDataHandle
// BeginRunCommand - Run command on a virtual machine in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@@ -1206,7 +1206,7 @@ func (client *VirtualMachineScaleSetVMsClient) BeginRunCommand(ctx context.Conte
// RunCommand - Run command on a virtual machine in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMsClient) runCommand(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, parameters RunCommandInput, options *VirtualMachineScaleSetVMsClientBeginRunCommandOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMsClient.BeginRunCommand"
@@ -1252,7 +1252,7 @@ func (client *VirtualMachineScaleSetVMsClient) runCommandCreateRequest(ctx conte
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json, text/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@@ -1264,7 +1264,7 @@ func (client *VirtualMachineScaleSetVMsClient) runCommandCreateRequest(ctx conte
// SimulateEviction - The operation to simulate the eviction of spot virtual machine in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@@ -1315,7 +1315,7 @@ func (client *VirtualMachineScaleSetVMsClient) simulateEvictionCreateRequest(ctx
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -1324,7 +1324,7 @@ func (client *VirtualMachineScaleSetVMsClient) simulateEvictionCreateRequest(ctx
// BeginStart - Starts a virtual machine in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@@ -1350,7 +1350,7 @@ func (client *VirtualMachineScaleSetVMsClient) BeginStart(ctx context.Context, r
// Start - Starts a virtual machine in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMsClient) start(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginStartOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMsClient.BeginStart"
@@ -1396,7 +1396,7 @@ func (client *VirtualMachineScaleSetVMsClient) startCreateRequest(ctx context.Co
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -1405,7 +1405,7 @@ func (client *VirtualMachineScaleSetVMsClient) startCreateRequest(ctx context.Co
// BeginUpdate - Updates a virtual machine of a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set where the extension should be create or updated.
// - instanceID - The instance ID of the virtual machine.
@@ -1432,7 +1432,7 @@ func (client *VirtualMachineScaleSetVMsClient) BeginUpdate(ctx context.Context,
// Update - Updates a virtual machine of a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMsClient) update(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, parameters VirtualMachineScaleSetVM, options *VirtualMachineScaleSetVMsClientBeginUpdateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMsClient.BeginUpdate"
@@ -1478,7 +1478,7 @@ func (client *VirtualMachineScaleSetVMsClient) updateCreateRequest(ctx context.C
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.IfMatch != nil {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinesizes_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinesizes_client.go
index 02aadc8c2c..80a7316acd 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinesizes_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5/virtualmachinesizes_client.go
@@ -46,7 +46,7 @@ func NewVirtualMachineSizesClient(subscriptionID string, credential azcore.Token
// NewListPager - This API is deprecated. Use Resources Skus [https://docs.microsoft.com/rest/api/compute/resourceskus/list]
//
-// Generated from API version 2023-09-01
+// Generated from API version 2024-03-01
// - location - The location upon which virtual-machine-sizes is queried.
// - options - VirtualMachineSizesClientListOptions contains the optional parameters for the VirtualMachineSizesClient.NewListPager
// method.
@@ -90,7 +90,7 @@ func (client *VirtualMachineSizesClient) listCreateRequest(ctx context.Context,
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-09-01")
+ reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/CHANGELOG.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/CHANGELOG.md
index c9aefb3998..5faf165f4a 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/CHANGELOG.md
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/CHANGELOG.md
@@ -1,5 +1,78 @@
# Release History
+## 1.6.0 (2024-06-28)
+### Features Added
+
+- New value `AccessTierCold` added to enum type `AccessTier`
+- New value `ExpirationActionBlock` added to enum type `ExpirationAction`
+- New value `MinimumTLSVersionTLS13` added to enum type `MinimumTLSVersion`
+- New value `ProvisioningStateCanceled`, `ProvisioningStateDeleting`, `ProvisioningStateFailed`, `ProvisioningStateValidateSubscriptionQuotaBegin`, `ProvisioningStateValidateSubscriptionQuotaEnd` added to enum type `ProvisioningState`
+- New value `PublicNetworkAccessSecuredByPerimeter` added to enum type `PublicNetworkAccess`
+- New enum type `IssueType` with values `IssueTypeConfigurationPropagationFailure`, `IssueTypeUnknown`
+- New enum type `ListLocalUserIncludeParam` with values `ListLocalUserIncludeParamNfsv3`
+- New enum type `NetworkSecurityPerimeterConfigurationProvisioningState` with values `NetworkSecurityPerimeterConfigurationProvisioningStateAccepted`, `NetworkSecurityPerimeterConfigurationProvisioningStateCanceled`, `NetworkSecurityPerimeterConfigurationProvisioningStateDeleting`, `NetworkSecurityPerimeterConfigurationProvisioningStateFailed`, `NetworkSecurityPerimeterConfigurationProvisioningStateSucceeded`
+- New enum type `NspAccessRuleDirection` with values `NspAccessRuleDirectionInbound`, `NspAccessRuleDirectionOutbound`
+- New enum type `ResourceAssociationAccessMode` with values `ResourceAssociationAccessModeAudit`, `ResourceAssociationAccessModeEnforced`, `ResourceAssociationAccessModeLearning`
+- New enum type `RunResult` with values `RunResultFailed`, `RunResultSucceeded`
+- New enum type `RunStatusEnum` with values `RunStatusEnumFinished`, `RunStatusEnumInProgress`
+- New enum type `Severity` with values `SeverityError`, `SeverityWarning`
+- New enum type `TriggerType` with values `TriggerTypeOnSchedule`, `TriggerTypeRunOnce`
+- New function `*ClientFactory.NewNetworkSecurityPerimeterConfigurationsClient() *NetworkSecurityPerimeterConfigurationsClient`
+- New function `*ClientFactory.NewTaskAssignmentInstancesReportClient() *TaskAssignmentInstancesReportClient`
+- New function `*ClientFactory.NewTaskAssignmentsClient() *TaskAssignmentsClient`
+- New function `*ClientFactory.NewTaskAssignmentsInstancesReportClient() *TaskAssignmentsInstancesReportClient`
+- New function `NewTaskAssignmentInstancesReportClient(string, azcore.TokenCredential, *arm.ClientOptions) (*TaskAssignmentInstancesReportClient, error)`
+- New function `*TaskAssignmentInstancesReportClient.NewListPager(string, string, string, *TaskAssignmentInstancesReportClientListOptions) *runtime.Pager[TaskAssignmentInstancesReportClientListResponse]`
+- New function `NewTaskAssignmentsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*TaskAssignmentsClient, error)`
+- New function `*TaskAssignmentsClient.BeginCreate(context.Context, string, string, string, TaskAssignment, *TaskAssignmentsClientBeginCreateOptions) (*runtime.Poller[TaskAssignmentsClientCreateResponse], error)`
+- New function `*TaskAssignmentsClient.BeginDelete(context.Context, string, string, string, *TaskAssignmentsClientBeginDeleteOptions) (*runtime.Poller[TaskAssignmentsClientDeleteResponse], error)`
+- New function `*TaskAssignmentsClient.Get(context.Context, string, string, string, *TaskAssignmentsClientGetOptions) (TaskAssignmentsClientGetResponse, error)`
+- New function `*TaskAssignmentsClient.NewListPager(string, string, *TaskAssignmentsClientListOptions) *runtime.Pager[TaskAssignmentsClientListResponse]`
+- New function `*TaskAssignmentsClient.BeginUpdate(context.Context, string, string, string, TaskAssignmentUpdateParameters, *TaskAssignmentsClientBeginUpdateOptions) (*runtime.Poller[TaskAssignmentsClientUpdateResponse], error)`
+- New function `NewTaskAssignmentsInstancesReportClient(string, azcore.TokenCredential, *arm.ClientOptions) (*TaskAssignmentsInstancesReportClient, error)`
+- New function `*TaskAssignmentsInstancesReportClient.NewListPager(string, string, *TaskAssignmentsInstancesReportClientListOptions) *runtime.Pager[TaskAssignmentsInstancesReportClientListResponse]`
+- New function `NewNetworkSecurityPerimeterConfigurationsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*NetworkSecurityPerimeterConfigurationsClient, error)`
+- New function `*NetworkSecurityPerimeterConfigurationsClient.Get(context.Context, string, string, string, *NetworkSecurityPerimeterConfigurationsClientGetOptions) (NetworkSecurityPerimeterConfigurationsClientGetResponse, error)`
+- New function `*NetworkSecurityPerimeterConfigurationsClient.NewListPager(string, string, *NetworkSecurityPerimeterConfigurationsClientListOptions) *runtime.Pager[NetworkSecurityPerimeterConfigurationsClientListResponse]`
+- New function `*NetworkSecurityPerimeterConfigurationsClient.BeginReconcile(context.Context, string, string, string, *NetworkSecurityPerimeterConfigurationsClientBeginReconcileOptions) (*runtime.Poller[NetworkSecurityPerimeterConfigurationsClientReconcileResponse], error)`
+- New struct `ExecutionTarget`
+- New struct `ExecutionTrigger`
+- New struct `ExecutionTriggerUpdate`
+- New struct `NetworkSecurityPerimeter`
+- New struct `NetworkSecurityPerimeterConfiguration`
+- New struct `NetworkSecurityPerimeterConfigurationList`
+- New struct `NetworkSecurityPerimeterConfigurationProperties`
+- New struct `NetworkSecurityPerimeterConfigurationPropertiesProfile`
+- New struct `NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation`
+- New struct `NspAccessRule`
+- New struct `NspAccessRuleProperties`
+- New struct `NspAccessRulePropertiesSubscriptionsItem`
+- New struct `ProvisioningIssue`
+- New struct `ProvisioningIssueProperties`
+- New struct `ProxyResourceAutoGenerated`
+- New struct `ResourceAutoGenerated`
+- New struct `TaskAssignment`
+- New struct `TaskAssignmentExecutionContext`
+- New struct `TaskAssignmentProperties`
+- New struct `TaskAssignmentReport`
+- New struct `TaskAssignmentUpdateExecutionContext`
+- New struct `TaskAssignmentUpdateParameters`
+- New struct `TaskAssignmentUpdateProperties`
+- New struct `TaskAssignmentUpdateReport`
+- New struct `TaskAssignmentsList`
+- New struct `TaskReportInstance`
+- New struct `TaskReportProperties`
+- New struct `TaskReportSummary`
+- New struct `TriggerParameters`
+- New struct `TriggerParametersUpdate`
+- New field `EnableExtendedGroups` in struct `AccountProperties`
+- New field `EnableExtendedGroups` in struct `AccountPropertiesCreateParameters`
+- New field `EnableExtendedGroups` in struct `AccountPropertiesUpdateParameters`
+- New field `AllowACLAuthorization`, `ExtendedGroups`, `GroupID`, `IsNFSv3Enabled`, `UserID` in struct `LocalUserProperties`
+- New field `NextLink` in struct `LocalUsers`
+- New field `Filter`, `Include`, `Maxpagesize` in struct `LocalUsersClientListOptions`
+
+
## 1.5.0 (2023-11-24)
### Features Added
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/accounts_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/accounts_client.go
index 81c6bc011d..fe5f1fc989 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/accounts_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/accounts_client.go
@@ -46,7 +46,7 @@ func NewAccountsClient(subscriptionID string, credential azcore.TokenCredential,
// BeginAbortHierarchicalNamespaceMigration - Abort live Migration of storage account to enable Hns
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -73,7 +73,7 @@ func (client *AccountsClient) BeginAbortHierarchicalNamespaceMigration(ctx conte
// AbortHierarchicalNamespaceMigration - Abort live Migration of storage account to enable Hns
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
func (client *AccountsClient) abortHierarchicalNamespaceMigration(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientBeginAbortHierarchicalNamespaceMigrationOptions) (*http.Response, error) {
var err error
const operationName = "AccountsClient.BeginAbortHierarchicalNamespaceMigration"
@@ -115,7 +115,7 @@ func (client *AccountsClient) abortHierarchicalNamespaceMigrationCreateRequest(c
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -124,7 +124,7 @@ func (client *AccountsClient) abortHierarchicalNamespaceMigrationCreateRequest(c
// CheckNameAvailability - Checks that the storage account name is valid and is not already in use.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
// - options - AccountsClientCheckNameAvailabilityOptions contains the optional parameters for the AccountsClient.CheckNameAvailability
@@ -163,7 +163,7 @@ func (client *AccountsClient) checkNameAvailabilityCreateRequest(ctx context.Con
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, accountName); err != nil {
@@ -187,7 +187,7 @@ func (client *AccountsClient) checkNameAvailabilityHandleResponse(resp *http.Res
// set of properties, the request will succeed.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -216,7 +216,7 @@ func (client *AccountsClient) BeginCreate(ctx context.Context, resourceGroupName
// set of properties, the request will succeed.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
func (client *AccountsClient) create(ctx context.Context, resourceGroupName string, accountName string, parameters AccountCreateParameters, options *AccountsClientBeginCreateOptions) (*http.Response, error) {
var err error
const operationName = "AccountsClient.BeginCreate"
@@ -258,7 +258,7 @@ func (client *AccountsClient) createCreateRequest(ctx context.Context, resourceG
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@@ -273,7 +273,7 @@ func (client *AccountsClient) createCreateRequest(ctx context.Context, resourceG
// synchronously across three Azure availability zones in the primary region.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -304,7 +304,7 @@ func (client *AccountsClient) BeginCustomerInitiatedMigration(ctx context.Contex
// synchronously across three Azure availability zones in the primary region.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
func (client *AccountsClient) customerInitiatedMigration(ctx context.Context, resourceGroupName string, accountName string, parameters AccountMigration, options *AccountsClientBeginCustomerInitiatedMigrationOptions) (*http.Response, error) {
var err error
const operationName = "AccountsClient.BeginCustomerInitiatedMigration"
@@ -346,7 +346,7 @@ func (client *AccountsClient) customerInitiatedMigrationCreateRequest(ctx contex
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@@ -358,7 +358,7 @@ func (client *AccountsClient) customerInitiatedMigrationCreateRequest(ctx contex
// Delete - Deletes a storage account in Microsoft Azure.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -404,7 +404,7 @@ func (client *AccountsClient) deleteCreateRequest(ctx context.Context, resourceG
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
return req, nil
}
@@ -420,7 +420,7 @@ func (client *AccountsClient) deleteCreateRequest(ctx context.Context, resourceG
// 'Planned'. Learn more about the failover options here- https://learn.microsoft.com/en-us/azure/storage/common/storage-disaster-recovery-guidance
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -454,7 +454,7 @@ func (client *AccountsClient) BeginFailover(ctx context.Context, resourceGroupNa
// 'Planned'. Learn more about the failover options here- https://learn.microsoft.com/en-us/azure/storage/common/storage-disaster-recovery-guidance
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
func (client *AccountsClient) failover(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientBeginFailoverOptions) (*http.Response, error) {
var err error
const operationName = "AccountsClient.BeginFailover"
@@ -496,7 +496,7 @@ func (client *AccountsClient) failoverCreateRequest(ctx context.Context, resourc
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
if options != nil && options.FailoverType != nil {
reqQP.Set("failoverType", "Planned")
}
@@ -507,7 +507,7 @@ func (client *AccountsClient) failoverCreateRequest(ctx context.Context, resourc
// GetCustomerInitiatedMigration - Gets the status of the ongoing migration for the specified storage account.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -560,7 +560,7 @@ func (client *AccountsClient) getCustomerInitiatedMigrationCreateRequest(ctx con
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -579,7 +579,7 @@ func (client *AccountsClient) getCustomerInitiatedMigrationHandleResponse(resp *
// and account status. The ListKeys operation should be used to retrieve storage keys.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -626,10 +626,10 @@ func (client *AccountsClient) getPropertiesCreateRequest(ctx context.Context, re
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
if options != nil && options.Expand != nil {
reqQP.Set("$expand", string(*options.Expand))
}
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -647,7 +647,7 @@ func (client *AccountsClient) getPropertiesHandleResponse(resp *http.Response) (
// BeginHierarchicalNamespaceMigration - Live Migration of storage account to enable Hns
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -677,7 +677,7 @@ func (client *AccountsClient) BeginHierarchicalNamespaceMigration(ctx context.Co
// HierarchicalNamespaceMigration - Live Migration of storage account to enable Hns
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
func (client *AccountsClient) hierarchicalNamespaceMigration(ctx context.Context, resourceGroupName string, accountName string, requestType string, options *AccountsClientBeginHierarchicalNamespaceMigrationOptions) (*http.Response, error) {
var err error
const operationName = "AccountsClient.BeginHierarchicalNamespaceMigration"
@@ -719,7 +719,7 @@ func (client *AccountsClient) hierarchicalNamespaceMigrationCreateRequest(ctx co
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
reqQP.Set("requestType", requestType)
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
@@ -729,7 +729,7 @@ func (client *AccountsClient) hierarchicalNamespaceMigrationCreateRequest(ctx co
// NewListPager - Lists all the storage accounts available under the subscription. Note that storage keys are not returned;
// use the ListKeys operation for this.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - options - AccountsClientListOptions contains the optional parameters for the AccountsClient.NewListPager method.
func (client *AccountsClient) NewListPager(options *AccountsClientListOptions) *runtime.Pager[AccountsClientListResponse] {
return runtime.NewPager(runtime.PagingHandler[AccountsClientListResponse]{
@@ -766,7 +766,7 @@ func (client *AccountsClient) listCreateRequest(ctx context.Context, options *Ac
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -784,7 +784,7 @@ func (client *AccountsClient) listHandleResponse(resp *http.Response) (AccountsC
// ListAccountSAS - List SAS credentials of a storage account.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -832,7 +832,7 @@ func (client *AccountsClient) listAccountSASCreateRequest(ctx context.Context, r
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@@ -853,7 +853,7 @@ func (client *AccountsClient) listAccountSASHandleResponse(resp *http.Response)
// NewListByResourceGroupPager - Lists all the storage accounts available under the given resource group. Note that storage
// keys are not returned; use the ListKeys operation for this.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - options - AccountsClientListByResourceGroupOptions contains the optional parameters for the AccountsClient.NewListByResourceGroupPager
// method.
@@ -896,7 +896,7 @@ func (client *AccountsClient) listByResourceGroupCreateRequest(ctx context.Conte
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -914,7 +914,7 @@ func (client *AccountsClient) listByResourceGroupHandleResponse(resp *http.Respo
// ListKeys - Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage account.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -961,10 +961,10 @@ func (client *AccountsClient) listKeysCreateRequest(ctx context.Context, resourc
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
if options != nil && options.Expand != nil {
reqQP.Set("$expand", "kerb")
}
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -982,7 +982,7 @@ func (client *AccountsClient) listKeysHandleResponse(resp *http.Response) (Accou
// ListServiceSAS - List service SAS credentials of a specific resource.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -1030,7 +1030,7 @@ func (client *AccountsClient) listServiceSASCreateRequest(ctx context.Context, r
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@@ -1051,7 +1051,7 @@ func (client *AccountsClient) listServiceSASHandleResponse(resp *http.Response)
// RegenerateKey - Regenerates one of the access keys or Kerberos keys for the specified storage account.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -1099,7 +1099,7 @@ func (client *AccountsClient) regenerateKeyCreateRequest(ctx context.Context, re
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, regenerateKey); err != nil {
@@ -1120,7 +1120,7 @@ func (client *AccountsClient) regenerateKeyHandleResponse(resp *http.Response) (
// BeginRestoreBlobRanges - Restore blobs in the specified blob ranges
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -1148,7 +1148,7 @@ func (client *AccountsClient) BeginRestoreBlobRanges(ctx context.Context, resour
// RestoreBlobRanges - Restore blobs in the specified blob ranges
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
func (client *AccountsClient) restoreBlobRanges(ctx context.Context, resourceGroupName string, accountName string, parameters BlobRestoreParameters, options *AccountsClientBeginRestoreBlobRangesOptions) (*http.Response, error) {
var err error
const operationName = "AccountsClient.BeginRestoreBlobRanges"
@@ -1190,7 +1190,7 @@ func (client *AccountsClient) restoreBlobRangesCreateRequest(ctx context.Context
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@@ -1202,7 +1202,7 @@ func (client *AccountsClient) restoreBlobRangesCreateRequest(ctx context.Context
// RevokeUserDelegationKeys - Revoke user delegation keys.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -1249,7 +1249,7 @@ func (client *AccountsClient) revokeUserDelegationKeysCreateRequest(ctx context.
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
return req, nil
}
@@ -1263,7 +1263,7 @@ func (client *AccountsClient) revokeUserDelegationKeysCreateRequest(ctx context.
// location and name of the storage account cannot be changed after creation.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -1311,7 +1311,7 @@ func (client *AccountsClient) updateCreateRequest(ctx context.Context, resourceG
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/assets.json b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/assets.json
index 799f7afd7f..152c3b451e 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/assets.json
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/assets.json
@@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "go",
"TagPrefix": "go/resourcemanager/storage/armstorage",
- "Tag": "go/resourcemanager/storage/armstorage_c9d59e874d"
+ "Tag": "go/resourcemanager/storage/armstorage_a26d68f572"
}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/autorest.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/autorest.md
index 2a581188e6..ae18e9939d 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/autorest.md
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/autorest.md
@@ -5,11 +5,11 @@
``` yaml
azure-arm: true
require:
-- https://github.com/Azure/azure-rest-api-specs/blob/0baf811c3c76c87b3c127d098519bd97141222dd/specification/storage/resource-manager/readme.md
-- https://github.com/Azure/azure-rest-api-specs/blob/0baf811c3c76c87b3c127d098519bd97141222dd/specification/storage/resource-manager/readme.go.md
+- https://github.com/Azure/azure-rest-api-specs/blob/220ad9c6554fc7d6d10a89bdb441c1e3b36e3285/specification/storage/resource-manager/readme.md
+- https://github.com/Azure/azure-rest-api-specs/blob/220ad9c6554fc7d6d10a89bdb441c1e3b36e3285/specification/storage/resource-manager/readme.go.md
license-header: MICROSOFT_MIT_NO_VERSION
-module-version: 1.5.0
+module-version: 1.6.0
modelerfour:
seal-single-value-enum-by-default: true
-tag: package-2023-01
+tag: package-2023-05
```
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/blobcontainers_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/blobcontainers_client.go
index 666afdcd8d..286c363e7f 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/blobcontainers_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/blobcontainers_client.go
@@ -47,7 +47,7 @@ func NewBlobContainersClient(subscriptionID string, credential azcore.TokenCrede
// clears out only the specified tags in the request.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -103,7 +103,7 @@ func (client *BlobContainersClient) clearLegalHoldCreateRequest(ctx context.Cont
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, legalHold); err != nil {
@@ -126,7 +126,7 @@ func (client *BlobContainersClient) clearLegalHoldHandleResponse(resp *http.Resp
// contained by the container.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -181,7 +181,7 @@ func (client *BlobContainersClient) createCreateRequest(ctx context.Context, res
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, blobContainer); err != nil {
@@ -203,7 +203,7 @@ func (client *BlobContainersClient) createHandleResponse(resp *http.Response) (B
// but not required for this operation.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -259,12 +259,12 @@ func (client *BlobContainersClient) createOrUpdateImmutabilityPolicyCreateReques
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.IfMatch != nil {
req.Raw().Header["If-Match"] = []string{*options.IfMatch}
}
- req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.Parameters != nil {
if err := runtime.MarshalAsJSON(req, *options.Parameters); err != nil {
return nil, err
@@ -289,7 +289,7 @@ func (client *BlobContainersClient) createOrUpdateImmutabilityPolicyHandleRespon
// Delete - Deletes specified container under its account.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -342,7 +342,7 @@ func (client *BlobContainersClient) deleteCreateRequest(ctx context.Context, res
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
return req, nil
}
@@ -353,7 +353,7 @@ func (client *BlobContainersClient) deleteCreateRequest(ctx context.Context, res
// container.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -412,10 +412,10 @@ func (client *BlobContainersClient) deleteImmutabilityPolicyCreateRequest(ctx co
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
- req.Raw().Header["If-Match"] = []string{ifMatch}
req.Raw().Header["Accept"] = []string{"application/json"}
+ req.Raw().Header["If-Match"] = []string{ifMatch}
return req, nil
}
@@ -435,7 +435,7 @@ func (client *BlobContainersClient) deleteImmutabilityPolicyHandleResponse(resp
// allowed on a Locked policy will be this action. ETag in If-Match is required for this operation.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -493,10 +493,10 @@ func (client *BlobContainersClient) extendImmutabilityPolicyCreateRequest(ctx co
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
- req.Raw().Header["If-Match"] = []string{ifMatch}
req.Raw().Header["Accept"] = []string{"application/json"}
+ req.Raw().Header["If-Match"] = []string{ifMatch}
if options != nil && options.Parameters != nil {
if err := runtime.MarshalAsJSON(req, *options.Parameters); err != nil {
return nil, err
@@ -521,7 +521,7 @@ func (client *BlobContainersClient) extendImmutabilityPolicyHandleResponse(resp
// Get - Gets properties of a specified container.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -575,7 +575,7 @@ func (client *BlobContainersClient) getCreateRequest(ctx context.Context, resour
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -594,7 +594,7 @@ func (client *BlobContainersClient) getHandleResponse(resp *http.Response) (Blob
// body.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -650,12 +650,12 @@ func (client *BlobContainersClient) getImmutabilityPolicyCreateRequest(ctx conte
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.IfMatch != nil {
req.Raw().Header["If-Match"] = []string{*options.IfMatch}
}
- req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
}
@@ -675,7 +675,7 @@ func (client *BlobContainersClient) getImmutabilityPolicyHandleResponse(resp *ht
// can be 15 to 60 seconds, or can be infinite.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -729,7 +729,7 @@ func (client *BlobContainersClient) leaseCreateRequest(ctx context.Context, reso
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.Parameters != nil {
@@ -753,7 +753,7 @@ func (client *BlobContainersClient) leaseHandleResponse(resp *http.Response) (Bl
// NewListPager - Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation
// token.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -801,16 +801,16 @@ func (client *BlobContainersClient) listCreateRequest(ctx context.Context, resou
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
- if options != nil && options.Maxpagesize != nil {
- reqQP.Set("$maxpagesize", *options.Maxpagesize)
- }
if options != nil && options.Filter != nil {
reqQP.Set("$filter", *options.Filter)
}
if options != nil && options.Include != nil {
reqQP.Set("$include", string(*options.Include))
}
+ if options != nil && options.Maxpagesize != nil {
+ reqQP.Set("$maxpagesize", *options.Maxpagesize)
+ }
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -829,7 +829,7 @@ func (client *BlobContainersClient) listHandleResponse(resp *http.Response) (Blo
// action. ETag in If-Match is required for this operation.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -887,10 +887,10 @@ func (client *BlobContainersClient) lockImmutabilityPolicyCreateRequest(ctx cont
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
- req.Raw().Header["If-Match"] = []string{ifMatch}
req.Raw().Header["Accept"] = []string{"application/json"}
+ req.Raw().Header["If-Match"] = []string{ifMatch}
return req, nil
}
@@ -911,7 +911,7 @@ func (client *BlobContainersClient) lockImmutabilityPolicyHandleResponse(resp *h
// unlocked state, Account level versioning must be enabled and there should be no Legal hold on the container.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -943,7 +943,7 @@ func (client *BlobContainersClient) BeginObjectLevelWorm(ctx context.Context, re
// unlocked state, Account level versioning must be enabled and there should be no Legal hold on the container.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
func (client *BlobContainersClient) objectLevelWorm(ctx context.Context, resourceGroupName string, accountName string, containerName string, options *BlobContainersClientBeginObjectLevelWormOptions) (*http.Response, error) {
var err error
const operationName = "BlobContainersClient.BeginObjectLevelWorm"
@@ -989,7 +989,7 @@ func (client *BlobContainersClient) objectLevelWormCreateRequest(ctx context.Con
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -999,7 +999,7 @@ func (client *BlobContainersClient) objectLevelWormCreateRequest(ctx context.Con
// pattern and does not clear out the existing tags that are not specified in the request.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -1055,7 +1055,7 @@ func (client *BlobContainersClient) setLegalHoldCreateRequest(ctx context.Contex
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, legalHold); err != nil {
@@ -1077,7 +1077,7 @@ func (client *BlobContainersClient) setLegalHoldHandleResponse(resp *http.Respon
// Update fails if the specified container doesn't already exist.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -1132,7 +1132,7 @@ func (client *BlobContainersClient) updateCreateRequest(ctx context.Context, res
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, blobContainer); err != nil {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/blobinventorypolicies_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/blobinventorypolicies_client.go
index 5fd736aae7..a0e56a472c 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/blobinventorypolicies_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/blobinventorypolicies_client.go
@@ -46,7 +46,7 @@ func NewBlobInventoryPoliciesClient(subscriptionID string, credential azcore.Tok
// CreateOrUpdate - Sets the blob inventory policy to the specified storage account.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -100,7 +100,7 @@ func (client *BlobInventoryPoliciesClient) createOrUpdateCreateRequest(ctx conte
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, properties); err != nil {
@@ -121,7 +121,7 @@ func (client *BlobInventoryPoliciesClient) createOrUpdateHandleResponse(resp *ht
// Delete - Deletes the blob inventory policy associated with the specified storage account.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -173,7 +173,7 @@ func (client *BlobInventoryPoliciesClient) deleteCreateRequest(ctx context.Conte
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -182,7 +182,7 @@ func (client *BlobInventoryPoliciesClient) deleteCreateRequest(ctx context.Conte
// Get - Gets the blob inventory policy associated with the specified storage account.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -235,7 +235,7 @@ func (client *BlobInventoryPoliciesClient) getCreateRequest(ctx context.Context,
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -252,7 +252,7 @@ func (client *BlobInventoryPoliciesClient) getHandleResponse(resp *http.Response
// NewListPager - Gets the blob inventory policy associated with the specified storage account.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -302,7 +302,7 @@ func (client *BlobInventoryPoliciesClient) listCreateRequest(ctx context.Context
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/blobservices_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/blobservices_client.go
index 18122f9254..8ccf18a9c4 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/blobservices_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/blobservices_client.go
@@ -47,7 +47,7 @@ func NewBlobServicesClient(subscriptionID string, credential azcore.TokenCredent
// and CORS (Cross-Origin Resource Sharing) rules.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -96,7 +96,7 @@ func (client *BlobServicesClient) getServicePropertiesCreateRequest(ctx context.
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -113,7 +113,7 @@ func (client *BlobServicesClient) getServicePropertiesHandleResponse(resp *http.
// NewListPager - List blob services of storage account. It returns a collection of one object named default.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -162,7 +162,7 @@ func (client *BlobServicesClient) listCreateRequest(ctx context.Context, resourc
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -181,7 +181,7 @@ func (client *BlobServicesClient) listHandleResponse(resp *http.Response) (BlobS
// and CORS (Cross-Origin Resource Sharing) rules.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -232,7 +232,7 @@ func (client *BlobServicesClient) setServicePropertiesCreateRequest(ctx context.
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/ci.yml b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/ci.yml
index 56efca76cf..674a186be8 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/ci.yml
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/ci.yml
@@ -21,8 +21,9 @@ pr:
include:
- sdk/resourcemanager/storage/armstorage/
-stages:
-- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
+extends:
+ template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/storage/armstorage'
+ UsePipelineProxy: false
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/client_factory.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/client_factory.go
index d0da80d15c..027e030f6d 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/client_factory.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/client_factory.go
@@ -17,8 +17,7 @@ import (
// Don't use this type directly, use NewClientFactory instead.
type ClientFactory struct {
subscriptionID string
- credential azcore.TokenCredential
- options *arm.ClientOptions
+ internal *arm.Client
}
// NewClientFactory creates a new instance of ClientFactory with the specified values.
@@ -27,132 +26,203 @@ type ClientFactory struct {
// - credential - used to authorize requests. Usually a credential from azidentity.
// - options - pass nil to accept the default values.
func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error) {
- _, err := arm.NewClient(moduleName, moduleVersion, credential, options)
+ internal, err := arm.NewClient(moduleName, moduleVersion, credential, options)
if err != nil {
return nil, err
}
return &ClientFactory{
- subscriptionID: subscriptionID, credential: credential,
- options: options.Clone(),
+ subscriptionID: subscriptionID,
+ internal: internal,
}, nil
}
// NewAccountsClient creates a new instance of AccountsClient.
func (c *ClientFactory) NewAccountsClient() *AccountsClient {
- subClient, _ := NewAccountsClient(c.subscriptionID, c.credential, c.options)
- return subClient
+ return &AccountsClient{
+ subscriptionID: c.subscriptionID,
+ internal: c.internal,
+ }
}
// NewBlobContainersClient creates a new instance of BlobContainersClient.
func (c *ClientFactory) NewBlobContainersClient() *BlobContainersClient {
- subClient, _ := NewBlobContainersClient(c.subscriptionID, c.credential, c.options)
- return subClient
+ return &BlobContainersClient{
+ subscriptionID: c.subscriptionID,
+ internal: c.internal,
+ }
}
// NewBlobInventoryPoliciesClient creates a new instance of BlobInventoryPoliciesClient.
func (c *ClientFactory) NewBlobInventoryPoliciesClient() *BlobInventoryPoliciesClient {
- subClient, _ := NewBlobInventoryPoliciesClient(c.subscriptionID, c.credential, c.options)
- return subClient
+ return &BlobInventoryPoliciesClient{
+ subscriptionID: c.subscriptionID,
+ internal: c.internal,
+ }
}
// NewBlobServicesClient creates a new instance of BlobServicesClient.
func (c *ClientFactory) NewBlobServicesClient() *BlobServicesClient {
- subClient, _ := NewBlobServicesClient(c.subscriptionID, c.credential, c.options)
- return subClient
+ return &BlobServicesClient{
+ subscriptionID: c.subscriptionID,
+ internal: c.internal,
+ }
}
// NewDeletedAccountsClient creates a new instance of DeletedAccountsClient.
func (c *ClientFactory) NewDeletedAccountsClient() *DeletedAccountsClient {
- subClient, _ := NewDeletedAccountsClient(c.subscriptionID, c.credential, c.options)
- return subClient
+ return &DeletedAccountsClient{
+ subscriptionID: c.subscriptionID,
+ internal: c.internal,
+ }
}
// NewEncryptionScopesClient creates a new instance of EncryptionScopesClient.
func (c *ClientFactory) NewEncryptionScopesClient() *EncryptionScopesClient {
- subClient, _ := NewEncryptionScopesClient(c.subscriptionID, c.credential, c.options)
- return subClient
+ return &EncryptionScopesClient{
+ subscriptionID: c.subscriptionID,
+ internal: c.internal,
+ }
}
// NewFileServicesClient creates a new instance of FileServicesClient.
func (c *ClientFactory) NewFileServicesClient() *FileServicesClient {
- subClient, _ := NewFileServicesClient(c.subscriptionID, c.credential, c.options)
- return subClient
+ return &FileServicesClient{
+ subscriptionID: c.subscriptionID,
+ internal: c.internal,
+ }
}
// NewFileSharesClient creates a new instance of FileSharesClient.
func (c *ClientFactory) NewFileSharesClient() *FileSharesClient {
- subClient, _ := NewFileSharesClient(c.subscriptionID, c.credential, c.options)
- return subClient
+ return &FileSharesClient{
+ subscriptionID: c.subscriptionID,
+ internal: c.internal,
+ }
}
// NewLocalUsersClient creates a new instance of LocalUsersClient.
func (c *ClientFactory) NewLocalUsersClient() *LocalUsersClient {
- subClient, _ := NewLocalUsersClient(c.subscriptionID, c.credential, c.options)
- return subClient
+ return &LocalUsersClient{
+ subscriptionID: c.subscriptionID,
+ internal: c.internal,
+ }
}
// NewManagementPoliciesClient creates a new instance of ManagementPoliciesClient.
func (c *ClientFactory) NewManagementPoliciesClient() *ManagementPoliciesClient {
- subClient, _ := NewManagementPoliciesClient(c.subscriptionID, c.credential, c.options)
- return subClient
+ return &ManagementPoliciesClient{
+ subscriptionID: c.subscriptionID,
+ internal: c.internal,
+ }
+}
+
+// NewNetworkSecurityPerimeterConfigurationsClient creates a new instance of NetworkSecurityPerimeterConfigurationsClient.
+func (c *ClientFactory) NewNetworkSecurityPerimeterConfigurationsClient() *NetworkSecurityPerimeterConfigurationsClient {
+ return &NetworkSecurityPerimeterConfigurationsClient{
+ subscriptionID: c.subscriptionID,
+ internal: c.internal,
+ }
}
// NewObjectReplicationPoliciesClient creates a new instance of ObjectReplicationPoliciesClient.
func (c *ClientFactory) NewObjectReplicationPoliciesClient() *ObjectReplicationPoliciesClient {
- subClient, _ := NewObjectReplicationPoliciesClient(c.subscriptionID, c.credential, c.options)
- return subClient
+ return &ObjectReplicationPoliciesClient{
+ subscriptionID: c.subscriptionID,
+ internal: c.internal,
+ }
}
// NewOperationsClient creates a new instance of OperationsClient.
func (c *ClientFactory) NewOperationsClient() *OperationsClient {
- subClient, _ := NewOperationsClient(c.credential, c.options)
- return subClient
+ return &OperationsClient{
+ internal: c.internal,
+ }
}
// NewPrivateEndpointConnectionsClient creates a new instance of PrivateEndpointConnectionsClient.
func (c *ClientFactory) NewPrivateEndpointConnectionsClient() *PrivateEndpointConnectionsClient {
- subClient, _ := NewPrivateEndpointConnectionsClient(c.subscriptionID, c.credential, c.options)
- return subClient
+ return &PrivateEndpointConnectionsClient{
+ subscriptionID: c.subscriptionID,
+ internal: c.internal,
+ }
}
// NewPrivateLinkResourcesClient creates a new instance of PrivateLinkResourcesClient.
func (c *ClientFactory) NewPrivateLinkResourcesClient() *PrivateLinkResourcesClient {
- subClient, _ := NewPrivateLinkResourcesClient(c.subscriptionID, c.credential, c.options)
- return subClient
+ return &PrivateLinkResourcesClient{
+ subscriptionID: c.subscriptionID,
+ internal: c.internal,
+ }
}
// NewQueueClient creates a new instance of QueueClient.
func (c *ClientFactory) NewQueueClient() *QueueClient {
- subClient, _ := NewQueueClient(c.subscriptionID, c.credential, c.options)
- return subClient
+ return &QueueClient{
+ subscriptionID: c.subscriptionID,
+ internal: c.internal,
+ }
}
// NewQueueServicesClient creates a new instance of QueueServicesClient.
func (c *ClientFactory) NewQueueServicesClient() *QueueServicesClient {
- subClient, _ := NewQueueServicesClient(c.subscriptionID, c.credential, c.options)
- return subClient
+ return &QueueServicesClient{
+ subscriptionID: c.subscriptionID,
+ internal: c.internal,
+ }
}
// NewSKUsClient creates a new instance of SKUsClient.
func (c *ClientFactory) NewSKUsClient() *SKUsClient {
- subClient, _ := NewSKUsClient(c.subscriptionID, c.credential, c.options)
- return subClient
+ return &SKUsClient{
+ subscriptionID: c.subscriptionID,
+ internal: c.internal,
+ }
}
// NewTableClient creates a new instance of TableClient.
func (c *ClientFactory) NewTableClient() *TableClient {
- subClient, _ := NewTableClient(c.subscriptionID, c.credential, c.options)
- return subClient
+ return &TableClient{
+ subscriptionID: c.subscriptionID,
+ internal: c.internal,
+ }
}
// NewTableServicesClient creates a new instance of TableServicesClient.
func (c *ClientFactory) NewTableServicesClient() *TableServicesClient {
- subClient, _ := NewTableServicesClient(c.subscriptionID, c.credential, c.options)
- return subClient
+ return &TableServicesClient{
+ subscriptionID: c.subscriptionID,
+ internal: c.internal,
+ }
+}
+
+// NewTaskAssignmentInstancesReportClient creates a new instance of TaskAssignmentInstancesReportClient.
+func (c *ClientFactory) NewTaskAssignmentInstancesReportClient() *TaskAssignmentInstancesReportClient {
+ return &TaskAssignmentInstancesReportClient{
+ subscriptionID: c.subscriptionID,
+ internal: c.internal,
+ }
+}
+
+// NewTaskAssignmentsClient creates a new instance of TaskAssignmentsClient.
+func (c *ClientFactory) NewTaskAssignmentsClient() *TaskAssignmentsClient {
+ return &TaskAssignmentsClient{
+ subscriptionID: c.subscriptionID,
+ internal: c.internal,
+ }
+}
+
+// NewTaskAssignmentsInstancesReportClient creates a new instance of TaskAssignmentsInstancesReportClient.
+func (c *ClientFactory) NewTaskAssignmentsInstancesReportClient() *TaskAssignmentsInstancesReportClient {
+ return &TaskAssignmentsInstancesReportClient{
+ subscriptionID: c.subscriptionID,
+ internal: c.internal,
+ }
}
// NewUsagesClient creates a new instance of UsagesClient.
func (c *ClientFactory) NewUsagesClient() *UsagesClient {
- subClient, _ := NewUsagesClient(c.subscriptionID, c.credential, c.options)
- return subClient
+ return &UsagesClient{
+ subscriptionID: c.subscriptionID,
+ internal: c.internal,
+ }
}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/constants.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/constants.go
index bfd1b531c8..48f5295768 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/constants.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/constants.go
@@ -10,7 +10,7 @@ package armstorage
const (
moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage"
- moduleVersion = "v1.5.0"
+ moduleVersion = "v1.6.0"
)
// AccessTier - Required for storage accounts where kind = BlobStorage. The access tier is used for billing. The 'Premium'
@@ -19,6 +19,7 @@ const (
type AccessTier string
const (
+ AccessTierCold AccessTier = "Cold"
AccessTierCool AccessTier = "Cool"
AccessTierHot AccessTier = "Hot"
AccessTierPremium AccessTier = "Premium"
@@ -27,6 +28,7 @@ const (
// PossibleAccessTierValues returns the possible values for the AccessTier const type.
func PossibleAccessTierValues() []AccessTier {
return []AccessTier{
+ AccessTierCold,
AccessTierCool,
AccessTierHot,
AccessTierPremium,
@@ -331,16 +333,20 @@ func PossibleEncryptionScopeStateValues() []EncryptionScopeState {
}
}
-// ExpirationAction - The SAS expiration action. Can only be Log.
+// ExpirationAction - The SAS Expiration Action defines the action to be performed when sasPolicy.sasExpirationPeriod is violated.
+// The 'Log' action can be used for audit purposes and the 'Block' action can be used to block
+// and deny the usage of SAS tokens that do not adhere to the sas policy expiration period.
type ExpirationAction string
const (
- ExpirationActionLog ExpirationAction = "Log"
+ ExpirationActionBlock ExpirationAction = "Block"
+ ExpirationActionLog ExpirationAction = "Log"
)
// PossibleExpirationActionValues returns the possible values for the ExpirationAction const type.
func PossibleExpirationActionValues() []ExpirationAction {
return []ExpirationAction{
+ ExpirationActionBlock,
ExpirationActionLog,
}
}
@@ -481,6 +487,22 @@ func PossibleInventoryRuleTypeValues() []InventoryRuleType {
}
}
+// IssueType - Type of issue
+type IssueType string
+
+const (
+ IssueTypeConfigurationPropagationFailure IssueType = "ConfigurationPropagationFailure"
+ IssueTypeUnknown IssueType = "Unknown"
+)
+
+// PossibleIssueTypeValues returns the possible values for the IssueType const type.
+func PossibleIssueTypeValues() []IssueType {
+ return []IssueType{
+ IssueTypeConfigurationPropagationFailure,
+ IssueTypeUnknown,
+ }
+}
+
// KeyPermission - Permissions for the key -- read-only or full permissions.
type KeyPermission string
@@ -697,6 +719,19 @@ func PossibleListEncryptionScopesIncludeValues() []ListEncryptionScopesInclude {
}
}
+type ListLocalUserIncludeParam string
+
+const (
+ ListLocalUserIncludeParamNfsv3 ListLocalUserIncludeParam = "nfsv3"
+)
+
+// PossibleListLocalUserIncludeParamValues returns the possible values for the ListLocalUserIncludeParam const type.
+func PossibleListLocalUserIncludeParamValues() []ListLocalUserIncludeParam {
+ return []ListLocalUserIncludeParam{
+ ListLocalUserIncludeParamNfsv3,
+ }
+}
+
type ManagementPolicyName string
const (
@@ -769,6 +804,7 @@ const (
MinimumTLSVersionTLS10 MinimumTLSVersion = "TLS1_0"
MinimumTLSVersionTLS11 MinimumTLSVersion = "TLS1_1"
MinimumTLSVersionTLS12 MinimumTLSVersion = "TLS1_2"
+ MinimumTLSVersionTLS13 MinimumTLSVersion = "TLS1_3"
)
// PossibleMinimumTLSVersionValues returns the possible values for the MinimumTLSVersion const type.
@@ -777,6 +813,7 @@ func PossibleMinimumTLSVersionValues() []MinimumTLSVersion {
MinimumTLSVersionTLS10,
MinimumTLSVersionTLS11,
MinimumTLSVersionTLS12,
+ MinimumTLSVersionTLS13,
}
}
@@ -794,6 +831,45 @@ func PossibleNameValues() []Name {
}
}
+// NetworkSecurityPerimeterConfigurationProvisioningState - Provisioning state of Network Security Perimeter configuration
+// propagation
+type NetworkSecurityPerimeterConfigurationProvisioningState string
+
+const (
+ NetworkSecurityPerimeterConfigurationProvisioningStateAccepted NetworkSecurityPerimeterConfigurationProvisioningState = "Accepted"
+ NetworkSecurityPerimeterConfigurationProvisioningStateCanceled NetworkSecurityPerimeterConfigurationProvisioningState = "Canceled"
+ NetworkSecurityPerimeterConfigurationProvisioningStateDeleting NetworkSecurityPerimeterConfigurationProvisioningState = "Deleting"
+ NetworkSecurityPerimeterConfigurationProvisioningStateFailed NetworkSecurityPerimeterConfigurationProvisioningState = "Failed"
+ NetworkSecurityPerimeterConfigurationProvisioningStateSucceeded NetworkSecurityPerimeterConfigurationProvisioningState = "Succeeded"
+)
+
+// PossibleNetworkSecurityPerimeterConfigurationProvisioningStateValues returns the possible values for the NetworkSecurityPerimeterConfigurationProvisioningState const type.
+func PossibleNetworkSecurityPerimeterConfigurationProvisioningStateValues() []NetworkSecurityPerimeterConfigurationProvisioningState {
+ return []NetworkSecurityPerimeterConfigurationProvisioningState{
+ NetworkSecurityPerimeterConfigurationProvisioningStateAccepted,
+ NetworkSecurityPerimeterConfigurationProvisioningStateCanceled,
+ NetworkSecurityPerimeterConfigurationProvisioningStateDeleting,
+ NetworkSecurityPerimeterConfigurationProvisioningStateFailed,
+ NetworkSecurityPerimeterConfigurationProvisioningStateSucceeded,
+ }
+}
+
+// NspAccessRuleDirection - Direction of Access Rule
+type NspAccessRuleDirection string
+
+const (
+ NspAccessRuleDirectionInbound NspAccessRuleDirection = "Inbound"
+ NspAccessRuleDirectionOutbound NspAccessRuleDirection = "Outbound"
+)
+
+// PossibleNspAccessRuleDirectionValues returns the possible values for the NspAccessRuleDirection const type.
+func PossibleNspAccessRuleDirectionValues() []NspAccessRuleDirection {
+ return []NspAccessRuleDirection{
+ NspAccessRuleDirectionInbound,
+ NspAccessRuleDirectionOutbound,
+ }
+}
+
// ObjectType - This is a required field. This field specifies the scope of the inventory created either at the blob or container
// level.
type ObjectType string
@@ -918,17 +994,27 @@ func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointSer
type ProvisioningState string
const (
- ProvisioningStateCreating ProvisioningState = "Creating"
- ProvisioningStateResolvingDNS ProvisioningState = "ResolvingDNS"
- ProvisioningStateSucceeded ProvisioningState = "Succeeded"
+ ProvisioningStateCanceled ProvisioningState = "Canceled"
+ ProvisioningStateCreating ProvisioningState = "Creating"
+ ProvisioningStateDeleting ProvisioningState = "Deleting"
+ ProvisioningStateFailed ProvisioningState = "Failed"
+ ProvisioningStateResolvingDNS ProvisioningState = "ResolvingDNS"
+ ProvisioningStateSucceeded ProvisioningState = "Succeeded"
+ ProvisioningStateValidateSubscriptionQuotaBegin ProvisioningState = "ValidateSubscriptionQuotaBegin"
+ ProvisioningStateValidateSubscriptionQuotaEnd ProvisioningState = "ValidateSubscriptionQuotaEnd"
)
// PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
func PossibleProvisioningStateValues() []ProvisioningState {
return []ProvisioningState{
+ ProvisioningStateCanceled,
ProvisioningStateCreating,
+ ProvisioningStateDeleting,
+ ProvisioningStateFailed,
ProvisioningStateResolvingDNS,
ProvisioningStateSucceeded,
+ ProvisioningStateValidateSubscriptionQuotaBegin,
+ ProvisioningStateValidateSubscriptionQuotaEnd,
}
}
@@ -950,13 +1036,15 @@ func PossiblePublicAccessValues() []PublicAccess {
}
}
-// PublicNetworkAccess - Allow or disallow public network access to Storage Account. Value is optional but if passed in, must
-// be 'Enabled' or 'Disabled'.
+// PublicNetworkAccess - Allow, disallow, or let Network Security Perimeter configuration to evaluate public network access
+// to Storage Account. Value is optional but if passed in, must be 'Enabled', 'Disabled' or
+// 'SecuredByPerimeter'.
type PublicNetworkAccess string
const (
- PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled"
- PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled"
+ PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled"
+ PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled"
+ PublicNetworkAccessSecuredByPerimeter PublicNetworkAccess = "SecuredByPerimeter"
)
// PossiblePublicNetworkAccessValues returns the possible values for the PublicNetworkAccess const type.
@@ -964,6 +1052,7 @@ func PossiblePublicNetworkAccessValues() []PublicNetworkAccess {
return []PublicNetworkAccess{
PublicNetworkAccessDisabled,
PublicNetworkAccessEnabled,
+ PublicNetworkAccessSecuredByPerimeter,
}
}
@@ -1002,6 +1091,24 @@ func PossibleReasonCodeValues() []ReasonCode {
}
}
+// ResourceAssociationAccessMode - Access Mode of the resource association
+type ResourceAssociationAccessMode string
+
+const (
+ ResourceAssociationAccessModeAudit ResourceAssociationAccessMode = "Audit"
+ ResourceAssociationAccessModeEnforced ResourceAssociationAccessMode = "Enforced"
+ ResourceAssociationAccessModeLearning ResourceAssociationAccessMode = "Learning"
+)
+
+// PossibleResourceAssociationAccessModeValues returns the possible values for the ResourceAssociationAccessMode const type.
+func PossibleResourceAssociationAccessModeValues() []ResourceAssociationAccessMode {
+ return []ResourceAssociationAccessMode{
+ ResourceAssociationAccessModeAudit,
+ ResourceAssociationAccessModeEnforced,
+ ResourceAssociationAccessModeLearning,
+ }
+}
+
// RootSquashType - The property is for NFS share only. The default is NoRootSquash.
type RootSquashType string
@@ -1050,6 +1157,38 @@ func PossibleRuleTypeValues() []RuleType {
}
}
+// RunResult - Represents the overall result of the execution for the run instance
+type RunResult string
+
+const (
+ RunResultFailed RunResult = "Failed"
+ RunResultSucceeded RunResult = "Succeeded"
+)
+
+// PossibleRunResultValues returns the possible values for the RunResult const type.
+func PossibleRunResultValues() []RunResult {
+ return []RunResult{
+ RunResultFailed,
+ RunResultSucceeded,
+ }
+}
+
+// RunStatusEnum - Represents the status of the execution.
+type RunStatusEnum string
+
+const (
+ RunStatusEnumFinished RunStatusEnum = "Finished"
+ RunStatusEnumInProgress RunStatusEnum = "InProgress"
+)
+
+// PossibleRunStatusEnumValues returns the possible values for the RunStatusEnum const type.
+func PossibleRunStatusEnumValues() []RunStatusEnum {
+ return []RunStatusEnum{
+ RunStatusEnumFinished,
+ RunStatusEnumInProgress,
+ }
+}
+
// SKUConversionStatus - This property indicates the current sku conversion status.
type SKUConversionStatus string
@@ -1150,6 +1289,22 @@ func PossibleServicesValues() []Services {
}
}
+// Severity - Severity of the issue.
+type Severity string
+
+const (
+ SeverityError Severity = "Error"
+ SeverityWarning Severity = "Warning"
+)
+
+// PossibleSeverityValues returns the possible values for the Severity const type.
+func PossibleSeverityValues() []Severity {
+ return []Severity{
+ SeverityError,
+ SeverityWarning,
+ }
+}
+
// ShareAccessTier - Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot,
// and Cool. FileStorage account can choose Premium.
type ShareAccessTier string
@@ -1249,6 +1404,22 @@ func PossibleStorageAccountExpandValues() []StorageAccountExpand {
}
}
+// TriggerType - The trigger type of the storage task assignment execution
+type TriggerType string
+
+const (
+ TriggerTypeOnSchedule TriggerType = "OnSchedule"
+ TriggerTypeRunOnce TriggerType = "RunOnce"
+)
+
+// PossibleTriggerTypeValues returns the possible values for the TriggerType const type.
+func PossibleTriggerTypeValues() []TriggerType {
+ return []TriggerType{
+ TriggerTypeOnSchedule,
+ TriggerTypeRunOnce,
+ }
+}
+
// UsageUnit - Gets the unit of measurement.
type UsageUnit string
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/deletedaccounts_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/deletedaccounts_client.go
index 438fc77ee9..6602acba4c 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/deletedaccounts_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/deletedaccounts_client.go
@@ -46,7 +46,7 @@ func NewDeletedAccountsClient(subscriptionID string, credential azcore.TokenCred
// Get - Get properties of specified deleted account resource.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - deletedAccountName - Name of the deleted storage account.
// - location - The location of the deleted storage account.
// - options - DeletedAccountsClientGetOptions contains the optional parameters for the DeletedAccountsClient.Get method.
@@ -92,7 +92,7 @@ func (client *DeletedAccountsClient) getCreateRequest(ctx context.Context, delet
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -109,7 +109,7 @@ func (client *DeletedAccountsClient) getHandleResponse(resp *http.Response) (Del
// NewListPager - Lists deleted accounts under the subscription.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - options - DeletedAccountsClientListOptions contains the optional parameters for the DeletedAccountsClient.NewListPager
// method.
func (client *DeletedAccountsClient) NewListPager(options *DeletedAccountsClientListOptions) *runtime.Pager[DeletedAccountsClientListResponse] {
@@ -147,7 +147,7 @@ func (client *DeletedAccountsClient) listCreateRequest(ctx context.Context, opti
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/encryptionscopes_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/encryptionscopes_client.go
index 1aaa4eaf0c..d757bde916 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/encryptionscopes_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/encryptionscopes_client.go
@@ -47,7 +47,7 @@ func NewEncryptionScopesClient(subscriptionID string, credential azcore.TokenCre
// Get - Returns the properties for the specified encryption scope.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -101,7 +101,7 @@ func (client *EncryptionScopesClient) getCreateRequest(ctx context.Context, reso
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -118,7 +118,7 @@ func (client *EncryptionScopesClient) getHandleResponse(resp *http.Response) (En
// NewListPager - Lists all the encryption scopes available under the specified storage account.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -167,16 +167,16 @@ func (client *EncryptionScopesClient) listCreateRequest(ctx context.Context, res
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
- if options != nil && options.Maxpagesize != nil {
- reqQP.Set("$maxpagesize", strconv.FormatInt(int64(*options.Maxpagesize), 10))
- }
if options != nil && options.Filter != nil {
reqQP.Set("$filter", *options.Filter)
}
if options != nil && options.Include != nil {
reqQP.Set("$include", string(*options.Include))
}
+ if options != nil && options.Maxpagesize != nil {
+ reqQP.Set("$maxpagesize", strconv.FormatInt(int64(*options.Maxpagesize), 10))
+ }
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -195,7 +195,7 @@ func (client *EncryptionScopesClient) listHandleResponse(resp *http.Response) (E
// does not already exist.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -250,7 +250,7 @@ func (client *EncryptionScopesClient) patchCreateRequest(ctx context.Context, re
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, encryptionScope); err != nil {
@@ -273,7 +273,7 @@ func (client *EncryptionScopesClient) patchHandleResponse(resp *http.Response) (
// encryption scope properties will be updated per the specified request.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -328,7 +328,7 @@ func (client *EncryptionScopesClient) putCreateRequest(ctx context.Context, reso
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, encryptionScope); err != nil {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/fileservices_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/fileservices_client.go
index 238ba98c86..c7d4dcc5ee 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/fileservices_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/fileservices_client.go
@@ -47,7 +47,7 @@ func NewFileServicesClient(subscriptionID string, credential azcore.TokenCredent
// Sharing) rules.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -96,7 +96,7 @@ func (client *FileServicesClient) getServicePropertiesCreateRequest(ctx context.
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -114,7 +114,7 @@ func (client *FileServicesClient) getServicePropertiesHandleResponse(resp *http.
// List - List all file services in storage accounts
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -161,7 +161,7 @@ func (client *FileServicesClient) listCreateRequest(ctx context.Context, resourc
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -180,7 +180,7 @@ func (client *FileServicesClient) listHandleResponse(resp *http.Response) (FileS
// Sharing) rules.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -230,7 +230,7 @@ func (client *FileServicesClient) setServicePropertiesCreateRequest(ctx context.
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/fileshares_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/fileshares_client.go
index df9e8df21b..16823750e3 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/fileshares_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/fileshares_client.go
@@ -48,7 +48,7 @@ func NewFileSharesClient(subscriptionID string, credential azcore.TokenCredentia
// the share.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -106,7 +106,7 @@ func (client *FileSharesClient) createCreateRequest(ctx context.Context, resourc
if options != nil && options.Expand != nil {
reqQP.Set("$expand", *options.Expand)
}
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, fileShare); err != nil {
@@ -127,7 +127,7 @@ func (client *FileSharesClient) createHandleResponse(resp *http.Response) (FileS
// Delete - Deletes specified share under its account.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -180,22 +180,22 @@ func (client *FileSharesClient) deleteCreateRequest(ctx context.Context, resourc
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
if options != nil && options.Include != nil {
reqQP.Set("$include", *options.Include)
}
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.XMSSnapshot != nil {
req.Raw().Header["x-ms-snapshot"] = []string{*options.XMSSnapshot}
}
- req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
}
// Get - Gets properties of a specified share.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -249,15 +249,15 @@ func (client *FileSharesClient) getCreateRequest(ctx context.Context, resourceGr
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
if options != nil && options.Expand != nil {
reqQP.Set("$expand", *options.Expand)
}
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.XMSSnapshot != nil {
req.Raw().Header["x-ms-snapshot"] = []string{*options.XMSSnapshot}
}
- req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
}
@@ -274,7 +274,7 @@ func (client *FileSharesClient) getHandleResponse(resp *http.Response) (FileShar
// be 15 to 60 seconds, or can be infinite.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -328,12 +328,12 @@ func (client *FileSharesClient) leaseCreateRequest(ctx context.Context, resource
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.XMSSnapshot != nil {
req.Raw().Header["x-ms-snapshot"] = []string{*options.XMSSnapshot}
}
- req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.Parameters != nil {
if err := runtime.MarshalAsJSON(req, *options.Parameters); err != nil {
return nil, err
@@ -357,7 +357,7 @@ func (client *FileSharesClient) leaseHandleResponse(resp *http.Response) (FileSh
// NewListPager - Lists all shares.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -405,16 +405,16 @@ func (client *FileSharesClient) listCreateRequest(ctx context.Context, resourceG
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
- if options != nil && options.Maxpagesize != nil {
- reqQP.Set("$maxpagesize", *options.Maxpagesize)
+ if options != nil && options.Expand != nil {
+ reqQP.Set("$expand", *options.Expand)
}
if options != nil && options.Filter != nil {
reqQP.Set("$filter", *options.Filter)
}
- if options != nil && options.Expand != nil {
- reqQP.Set("$expand", *options.Expand)
+ if options != nil && options.Maxpagesize != nil {
+ reqQP.Set("$maxpagesize", *options.Maxpagesize)
}
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -432,7 +432,7 @@ func (client *FileSharesClient) listHandleResponse(resp *http.Response) (FileSha
// Restore - Restore a file share within a valid retention days if share soft delete is enabled
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -485,7 +485,7 @@ func (client *FileSharesClient) restoreCreateRequest(ctx context.Context, resour
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, deletedShare); err != nil {
@@ -498,7 +498,7 @@ func (client *FileSharesClient) restoreCreateRequest(ctx context.Context, resour
// Update fails if the specified share does not already exist.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -553,7 +553,7 @@ func (client *FileSharesClient) updateCreateRequest(ctx context.Context, resourc
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, fileShare); err != nil {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/localusers_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/localusers_client.go
index 614a876e45..00586070b4 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/localusers_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/localusers_client.go
@@ -17,6 +17,7 @@ import (
"github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
"net/http"
"net/url"
+ "strconv"
"strings"
)
@@ -43,10 +44,11 @@ func NewLocalUsersClient(subscriptionID string, credential azcore.TokenCredentia
return client, nil
}
-// CreateOrUpdate - Create or update the properties of a local user associated with the storage account
+// CreateOrUpdate - Create or update the properties of a local user associated with the storage account. Properties for NFSv3
+// enablement and extended groups cannot be set with other properties.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -101,7 +103,7 @@ func (client *LocalUsersClient) createOrUpdateCreateRequest(ctx context.Context,
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, properties); err != nil {
@@ -122,7 +124,7 @@ func (client *LocalUsersClient) createOrUpdateHandleResponse(resp *http.Response
// Delete - Deletes the local user associated with the specified storage account.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -174,7 +176,7 @@ func (client *LocalUsersClient) deleteCreateRequest(ctx context.Context, resourc
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -183,7 +185,7 @@ func (client *LocalUsersClient) deleteCreateRequest(ctx context.Context, resourc
// Get - Get the local user of the storage account by username.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -236,7 +238,7 @@ func (client *LocalUsersClient) getCreateRequest(ctx context.Context, resourceGr
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -253,7 +255,7 @@ func (client *LocalUsersClient) getHandleResponse(resp *http.Response) (LocalUse
// NewListPager - List the local users associated with the storage account.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -302,7 +304,16 @@ func (client *LocalUsersClient) listCreateRequest(ctx context.Context, resourceG
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ if options != nil && options.Filter != nil {
+ reqQP.Set("$filter", *options.Filter)
+ }
+ if options != nil && options.Include != nil {
+ reqQP.Set("$include", string(*options.Include))
+ }
+ if options != nil && options.Maxpagesize != nil {
+ reqQP.Set("$maxpagesize", strconv.FormatInt(int64(*options.Maxpagesize), 10))
+ }
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -320,7 +331,7 @@ func (client *LocalUsersClient) listHandleResponse(resp *http.Response) (LocalUs
// ListKeys - List SSH authorized keys and shared key of the local user.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -373,7 +384,7 @@ func (client *LocalUsersClient) listKeysCreateRequest(ctx context.Context, resou
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -391,7 +402,7 @@ func (client *LocalUsersClient) listKeysHandleResponse(resp *http.Response) (Loc
// RegeneratePassword - Regenerate the local user SSH password.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -445,7 +456,7 @@ func (client *LocalUsersClient) regeneratePasswordCreateRequest(ctx context.Cont
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/managementpolicies_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/managementpolicies_client.go
index 4f3f96365a..0c81745400 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/managementpolicies_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/managementpolicies_client.go
@@ -46,7 +46,7 @@ func NewManagementPoliciesClient(subscriptionID string, credential azcore.TokenC
// CreateOrUpdate - Sets the managementpolicy to the specified storage account.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -100,7 +100,7 @@ func (client *ManagementPoliciesClient) createOrUpdateCreateRequest(ctx context.
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, properties); err != nil {
@@ -121,7 +121,7 @@ func (client *ManagementPoliciesClient) createOrUpdateHandleResponse(resp *http.
// Delete - Deletes the managementpolicy associated with the specified storage account.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -173,7 +173,7 @@ func (client *ManagementPoliciesClient) deleteCreateRequest(ctx context.Context,
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
return req, nil
}
@@ -181,7 +181,7 @@ func (client *ManagementPoliciesClient) deleteCreateRequest(ctx context.Context,
// Get - Gets the managementpolicy associated with the specified storage account.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -233,7 +233,7 @@ func (client *ManagementPoliciesClient) getCreateRequest(ctx context.Context, re
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/models.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/models.go
index 3a9b23aabe..a893299da6 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/models.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/models.go
@@ -243,6 +243,9 @@ type AccountProperties struct {
// for this property.
DefaultToOAuthAuthentication *bool
+ // Enables extended group support with local users feature, if set to true
+ EnableExtendedGroups *bool
+
// Allows https traffic only to storage service if sets to true.
EnableHTTPSTrafficOnly *bool
@@ -268,7 +271,7 @@ type AccountProperties struct {
// Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property.
MinimumTLSVersion *MinimumTLSVersion
- // Allow or disallow public network access to Storage Account. Value is optional but if passed in, must be 'Enabled' or 'Disabled'.
+ // Allow, disallow, or let Network Security Perimeter configuration to evaluate public network access to Storage Account.
PublicNetworkAccess *PublicNetworkAccess
// Maintains information about the network routing choice opted by the user for data transfer
@@ -393,6 +396,9 @@ type AccountPropertiesCreateParameters struct {
// for this property.
DefaultToOAuthAuthentication *bool
+ // Enables extended group support with local users feature, if set to true
+ EnableExtendedGroups *bool
+
// Allows https traffic only to storage service if sets to true. The default value is true since API version 2019-04-01.
EnableHTTPSTrafficOnly *bool
@@ -427,7 +433,9 @@ type AccountPropertiesCreateParameters struct {
// Network rule set
NetworkRuleSet *NetworkRuleSet
- // Allow or disallow public network access to Storage Account. Value is optional but if passed in, must be 'Enabled' or 'Disabled'.
+ // Allow, disallow, or let Network Security Perimeter configuration to evaluate public network access to Storage Account.
+ // Value is optional but if passed in, must be 'Enabled', 'Disabled' or
+ // 'SecuredByPerimeter'.
PublicNetworkAccess *PublicNetworkAccess
// Maintains information about the network routing choice opted by the user for data transfer
@@ -478,6 +486,9 @@ type AccountPropertiesUpdateParameters struct {
// for this property.
DefaultToOAuthAuthentication *bool
+ // Enables extended group support with local users feature, if set to true
+ EnableExtendedGroups *bool
+
// Allows https traffic only to storage service if sets to true.
EnableHTTPSTrafficOnly *bool
@@ -506,7 +517,9 @@ type AccountPropertiesUpdateParameters struct {
// Network rule set
NetworkRuleSet *NetworkRuleSet
- // Allow or disallow public network access to Storage Account. Value is optional but if passed in, must be 'Enabled' or 'Disabled'.
+ // Allow, disallow, or let Network Security Perimeter configuration to evaluate public network access to Storage Account.
+ // Value is optional but if passed in, must be 'Enabled', 'Disabled' or
+ // 'SecuredByPerimeter'.
PublicNetworkAccess *PublicNetworkAccess
// Maintains information about the network routing choice opted by the user for data transfer
@@ -1320,6 +1333,35 @@ type ErrorResponseBody struct {
Message *string
}
+// ExecutionTarget - Target helps provide filter parameters for the objects in the storage account and forms the execution
+// context for the storage task
+type ExecutionTarget struct {
+ // List of object prefixes to be excluded from task execution. If there is a conflict between include and exclude prefixes,
+ // the exclude prefix will be the determining factor
+ ExcludePrefix []*string
+
+ // Required list of object prefixes to be included for task execution
+ Prefix []*string
+}
+
+// ExecutionTrigger - Execution trigger for storage task assignment
+type ExecutionTrigger struct {
+ // REQUIRED; The trigger parameters of the storage task assignment execution
+ Parameters *TriggerParameters
+
+ // REQUIRED; The trigger type of the storage task assignment execution
+ Type *TriggerType
+}
+
+// ExecutionTriggerUpdate - Execution trigger update for storage task assignment
+type ExecutionTriggerUpdate struct {
+ // The trigger parameters of the storage task assignment execution
+ Parameters *TriggerParametersUpdate
+
+ // The trigger type of the storage task assignment execution
+ Type *TriggerType
+}
+
// ExtendedLocation - The complex type of the extended location.
type ExtendedLocation struct {
// The name of the extended location.
@@ -1865,6 +1907,15 @@ type LocalUserKeys struct {
// LocalUserProperties - The Storage Account Local User properties.
type LocalUserProperties struct {
+ // Indicates whether ACL authorization is allowed for this user. Set it to false to disallow using ACL authorization.
+ AllowACLAuthorization *bool
+
+ // Supplementary group membership. Only applicable for local users enabled for NFSv3 access.
+ ExtendedGroups []*int32
+
+ // An identifier for associating a group of users.
+ GroupID *int32
+
// Indicates whether ssh key exists. Set it to false to remove existing SSH key.
HasSSHKey *bool
@@ -1877,6 +1928,9 @@ type LocalUserProperties struct {
// Optional, local user home directory.
HomeDirectory *string
+ // Indicates if the local user is enabled for access with NFSv3 protocol.
+ IsNFSv3Enabled *bool
+
// The permission scopes of the local user.
PermissionScopes []*PermissionScope
@@ -1885,6 +1939,9 @@ type LocalUserProperties struct {
// READ-ONLY; A unique Security Identifier that is generated by the server.
Sid *string
+
+ // READ-ONLY; A unique Identifier that is generated by the server.
+ UserID *int32
}
// LocalUserRegeneratePasswordResult - The secrets of Storage Account Local User.
@@ -1894,10 +1951,14 @@ type LocalUserRegeneratePasswordResult struct {
SSHPassword *string
}
-// LocalUsers - List storage account local users.
+// LocalUsers - List of local users requested, and if paging is required, a URL to the next page of local users.
type LocalUsers struct {
- // The local users associated with the storage account.
+ // The list of local users associated with the storage account.
Value []*LocalUser
+
+ // READ-ONLY; Request URL that can be used to query next page of local users. Returned when total number of requested local
+ // users exceeds the maximum page size.
+ NextLink *string
}
// ManagementPolicy - The Get Storage Account ManagementPolicies operation response.
@@ -2095,6 +2156,123 @@ type NetworkRuleSet struct {
VirtualNetworkRules []*VirtualNetworkRule
}
+// NetworkSecurityPerimeter related information
+type NetworkSecurityPerimeter struct {
+ // The ARM identifier of the resource
+ ID *string
+
+ // Location of the resource
+ Location *string
+
+ // Guid of the resource
+ PerimeterGUID *string
+}
+
+// NetworkSecurityPerimeterConfiguration - The Network Security Perimeter configuration resource.
+type NetworkSecurityPerimeterConfiguration struct {
+ // READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
+ ID *string
+
+ // READ-ONLY; The name of the resource
+ Name *string
+
+ // READ-ONLY; Properties of the Network Security Perimeter Configuration
+ Properties *NetworkSecurityPerimeterConfigurationProperties
+
+ // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ SystemData *SystemData
+
+ // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
+ Type *string
+}
+
+// NetworkSecurityPerimeterConfigurationList - Result of the List Network Security Perimeter configuration operation.
+type NetworkSecurityPerimeterConfigurationList struct {
+ // The URI that can be used to request the next set of paged results.
+ NextLink *string
+
+ // READ-ONLY; A collection of Network Security Perimeter configurations
+ Value []*NetworkSecurityPerimeterConfiguration
+}
+
+// NetworkSecurityPerimeterConfigurationProperties - Properties of the Network Security Perimeter Configuration
+type NetworkSecurityPerimeterConfigurationProperties struct {
+ // READ-ONLY; NetworkSecurityPerimeter related information
+ NetworkSecurityPerimeter *NetworkSecurityPerimeter
+
+ // READ-ONLY; Network Security Perimeter profile
+ Profile *NetworkSecurityPerimeterConfigurationPropertiesProfile
+
+ // READ-ONLY; List of Provisioning Issues if any
+ ProvisioningIssues []*ProvisioningIssue
+
+ // READ-ONLY; Provisioning state of Network Security Perimeter configuration propagation
+ ProvisioningState *NetworkSecurityPerimeterConfigurationProvisioningState
+
+ // READ-ONLY; Information about resource association
+ ResourceAssociation *NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation
+}
+
+// NetworkSecurityPerimeterConfigurationPropertiesProfile - Network Security Perimeter profile
+type NetworkSecurityPerimeterConfigurationPropertiesProfile struct {
+ // List of Access Rules
+ AccessRules []*NspAccessRule
+
+ // Current access rules version
+ AccessRulesVersion *float32
+
+ // Diagnostic settings version
+ DiagnosticSettingsVersion *float32
+
+ // Enabled logging categories
+ EnabledLogCategories []*string
+
+ // Name of the resource
+ Name *string
+}
+
+// NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation - Information about resource association
+type NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation struct {
+ // Access Mode of the resource association
+ AccessMode *ResourceAssociationAccessMode
+
+ // Name of the resource association
+ Name *string
+}
+
+// NspAccessRule - Information of Access Rule in Network Security Perimeter profile
+type NspAccessRule struct {
+ // Name of the resource
+ Name *string
+
+ // READ-ONLY; Properties of Access Rule
+ Properties *NspAccessRuleProperties
+}
+
+// NspAccessRuleProperties - Properties of Access Rule
+type NspAccessRuleProperties struct {
+ // Address prefixes in the CIDR format for inbound rules
+ AddressPrefixes []*string
+
+ // Direction of Access Rule
+ Direction *NspAccessRuleDirection
+
+ // Subscriptions for inbound rules
+ Subscriptions []*NspAccessRulePropertiesSubscriptionsItem
+
+ // READ-ONLY; FQDN for outbound rules
+ FullyQualifiedDomainNames []*string
+
+ // READ-ONLY; NetworkSecurityPerimeters for inbound rules
+ NetworkSecurityPerimeters []*NetworkSecurityPerimeter
+}
+
+// NspAccessRulePropertiesSubscriptionsItem - Subscription for inbound rule
+type NspAccessRulePropertiesSubscriptionsItem struct {
+ // The ARM identifier of subscription
+ ID *string
+}
+
// ObjectReplicationPolicies - List storage account object replication policies.
type ObjectReplicationPolicies struct {
// The replication policy between two storage accounts.
@@ -2205,8 +2383,8 @@ type OperationProperties struct {
}
type PermissionScope struct {
- // REQUIRED; The permissions for the local user. Possible values include: Read (r), Write (w), Delete (d), List (l), and Create
- // (c).
+ // REQUIRED; The permissions for the local user. Possible values include: Read (r), Write (w), Delete (d), List (l), Create
+ // (c), Modify Ownership (o), and Modify Permissions (p).
Permissions *string
// REQUIRED; The name of resource, normally the container name or the file share name, used by the local user.
@@ -2318,6 +2496,27 @@ type ProtocolSettings struct {
Smb *SmbSetting
}
+// ProvisioningIssue - Describes provisioning issue for given NetworkSecurityPerimeterConfiguration
+type ProvisioningIssue struct {
+ // Name of the issue
+ Name *string
+
+ // READ-ONLY; Properties of provisioning issue
+ Properties *ProvisioningIssueProperties
+}
+
+// ProvisioningIssueProperties - Properties of provisioning issue
+type ProvisioningIssueProperties struct {
+ // Description of the issue
+ Description *string
+
+ // Type of issue
+ IssueType *IssueType
+
+ // Severity of the issue.
+ Severity *Severity
+}
+
// ProxyResource - The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a
// location
type ProxyResource struct {
@@ -2331,6 +2530,22 @@ type ProxyResource struct {
Type *string
}
+// ProxyResourceAutoGenerated - The resource model definition for a Azure Resource Manager proxy resource. It will not have
+// tags and a location
+type ProxyResourceAutoGenerated struct {
+ // READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
+ ID *string
+
+ // READ-ONLY; The name of the resource
+ Name *string
+
+ // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ SystemData *SystemData
+
+ // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
+ Type *string
+}
+
type Queue struct {
// Queue resource properties.
QueueProperties *QueueProperties
@@ -2398,6 +2613,21 @@ type ResourceAccessRule struct {
TenantID *string
}
+// ResourceAutoGenerated - Common fields that are returned in the response for all Azure Resource Manager resources
+type ResourceAutoGenerated struct {
+ // READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
+ ID *string
+
+ // READ-ONLY; The name of the resource
+ Name *string
+
+ // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ SystemData *SystemData
+
+ // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
+ Type *string
+}
+
// RestorePolicyProperties - The blob service properties for blob restore policy
type RestorePolicyProperties struct {
// REQUIRED; Blob restore is enabled if set to true.
@@ -2505,7 +2735,9 @@ type SSHPublicKey struct {
// SasPolicy assigned to the storage account.
type SasPolicy struct {
- // REQUIRED; The SAS expiration action. Can only be Log.
+ // REQUIRED; The SAS Expiration Action defines the action to be performed when sasPolicy.sasExpirationPeriod is violated.
+ // The 'Log' action can be used for audit purposes and the 'Block' action can be used to block
+ // and deny the usage of SAS tokens that do not adhere to the sas policy expiration period.
ExpirationAction *ExpirationAction
// REQUIRED; The SAS expiration period, DD.HH:MM:SS.
@@ -2727,6 +2959,198 @@ type TagProperty struct {
Upn *string
}
+// TaskAssignment - The storage task assignment.
+type TaskAssignment struct {
+ // REQUIRED; Properties of the storage task assignment.
+ Properties *TaskAssignmentProperties
+
+ // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
+ ID *string
+
+ // READ-ONLY; The name of the resource
+ Name *string
+
+ // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
+ Type *string
+}
+
+// TaskAssignmentExecutionContext - Execution context of the storage task assignment.
+type TaskAssignmentExecutionContext struct {
+ // REQUIRED; Execution trigger of the storage task assignment
+ Trigger *ExecutionTrigger
+
+ // Execution target of the storage task assignment
+ Target *ExecutionTarget
+}
+
+// TaskAssignmentProperties - Properties of the storage task assignment.
+type TaskAssignmentProperties struct {
+ // REQUIRED; Text that describes the purpose of the storage task assignment
+ Description *string
+
+ // REQUIRED; Whether the storage task assignment is enabled or not
+ Enabled *bool
+
+ // REQUIRED; The storage task assignment execution context
+ ExecutionContext *TaskAssignmentExecutionContext
+
+ // REQUIRED; The storage task assignment report
+ Report *TaskAssignmentReport
+
+ // REQUIRED; Id of the corresponding storage task
+ TaskID *string
+
+ // Run status of storage task assignment
+ RunStatus *TaskReportProperties
+
+ // READ-ONLY; Represents the provisioning state of the storage task assignment.
+ ProvisioningState *ProvisioningState
+}
+
+// TaskAssignmentReport - The storage task assignment report
+type TaskAssignmentReport struct {
+ // REQUIRED; The container prefix for the location of storage task assignment report
+ Prefix *string
+}
+
+// TaskAssignmentUpdateExecutionContext - Execution context of the storage task assignment update.
+type TaskAssignmentUpdateExecutionContext struct {
+ // Execution target of the storage task assignment
+ Target *ExecutionTarget
+
+ // Execution trigger of the storage task assignment
+ Trigger *ExecutionTriggerUpdate
+}
+
+// TaskAssignmentUpdateParameters - Parameters of the storage task assignment update request
+type TaskAssignmentUpdateParameters struct {
+ // Properties of the storage task assignment.
+ Properties *TaskAssignmentUpdateProperties
+}
+
+// TaskAssignmentUpdateProperties - Properties of the storage task update assignment.
+type TaskAssignmentUpdateProperties struct {
+ // Text that describes the purpose of the storage task assignment
+ Description *string
+
+ // Whether the storage task assignment is enabled or not
+ Enabled *bool
+
+ // The storage task assignment execution context
+ ExecutionContext *TaskAssignmentUpdateExecutionContext
+
+ // The storage task assignment report
+ Report *TaskAssignmentUpdateReport
+
+ // Run status of storage task assignment
+ RunStatus *TaskReportProperties
+
+ // READ-ONLY; Represents the provisioning state of the storage task assignment.
+ ProvisioningState *ProvisioningState
+
+ // READ-ONLY; Id of the corresponding storage task
+ TaskID *string
+}
+
+// TaskAssignmentUpdateReport - The storage task assignment report
+type TaskAssignmentUpdateReport struct {
+ // The prefix of the storage task assignment report
+ Prefix *string
+}
+
+// TaskAssignmentsList - List of storage task assignments for the storage account
+type TaskAssignmentsList struct {
+ // READ-ONLY; Request URL that can be used to query next page of storage task assignments. Returned when total number of requested
+ // storage task assignments exceed maximum page size.
+ NextLink *string
+
+ // READ-ONLY; Gets the list of storage task assignments and their properties.
+ Value []*TaskAssignment
+}
+
+// TaskReportInstance - Storage Tasks run report instance
+type TaskReportInstance struct {
+ // Storage task execution report for a run instance.
+ Properties *TaskReportProperties
+
+ // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
+ ID *string
+
+ // READ-ONLY; The name of the resource
+ Name *string
+
+ // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
+ Type *string
+}
+
+// TaskReportProperties - Storage task execution report for a run instance.
+type TaskReportProperties struct {
+ // READ-ONLY; End time of the run instance. Filter options such as startTime gt '2023-06-26T20:51:24.4494016Z' and other comparison
+ // operators can be used as described for DateTime properties in
+ // https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators
+ FinishTime *string
+
+ // READ-ONLY; Total number of objects where task operation failed when was attempted. Filter options such as objectFailedCount
+ // eq 0 and other comparison operators can be used as described for Numerical properties
+ // in https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators
+ ObjectFailedCount *string
+
+ // READ-ONLY; Total number of objects that meet the storage tasks condition and were operated upon. Filter options such as
+ // objectsOperatedOnCount ge 100 and other comparison operators can be used as described for
+ // Numerical properties in https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators
+ ObjectsOperatedOnCount *string
+
+ // READ-ONLY; Total number of objects where task operation succeeded when was attempted.Filter options such as objectsSucceededCount
+ // gt 150 and other comparison operators can be used as described for Numerical
+ // properties in https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators
+ ObjectsSucceededCount *string
+
+ // READ-ONLY; Total number of objects that meet the condition as defined in the storage task assignment execution context.
+ // Filter options such as objectsTargetedCount gt 50 and other comparison operators can be
+ // used as described for Numerical properties in https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators
+ ObjectsTargetedCount *string
+
+ // READ-ONLY; Represents the overall result of the execution for the run instance
+ RunResult *RunResult
+
+ // READ-ONLY; Represents the status of the execution.
+ RunStatusEnum *RunStatusEnum
+
+ // READ-ONLY; Well known Azure Storage error code that represents the error encountered during execution of the run instance.
+ RunStatusError *string
+
+ // READ-ONLY; Start time of the run instance. Filter options such as startTime gt '2023-06-26T20:51:24.4494016Z' and other
+ // comparison operators can be used as described for DateTime properties in
+ // https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators
+ StartTime *string
+
+ // READ-ONLY; Represents the Storage Account Id where the storage task definition was applied and executed.
+ StorageAccountID *string
+
+ // READ-ONLY; Full path to the verbose report stored in the reporting container as specified in the assignment execution context
+ // for the storage account.
+ SummaryReportPath *string
+
+ // READ-ONLY; Represents the Storage Task Assignment Id associated with the storage task that provided an execution context.
+ TaskAssignmentID *string
+
+ // READ-ONLY; Storage Task Arm Id.
+ TaskID *string
+
+ // READ-ONLY; Storage Task Version
+ TaskVersion *string
+}
+
+// TaskReportSummary - Fetch Storage Tasks Run Summary.
+type TaskReportSummary struct {
+ // READ-ONLY; Request URL that can be used to query next page of storage task run results summary. Returned when the number
+ // of run instances and summary reports exceed maximum page size.
+ NextLink *string
+
+ // READ-ONLY; Gets storage tasks run result summary.
+ Value []*TaskReportInstance
+}
+
// TrackedResource - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags'
// and a 'location'
type TrackedResource struct {
@@ -2746,6 +3170,54 @@ type TrackedResource struct {
Type *string
}
+// TriggerParameters - The trigger parameters update for the storage task assignment execution
+type TriggerParameters struct {
+ // When to end task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property
+ // should not be present when ExecutionTrigger.properties.type is 'RunOnce'
+ EndBy *time.Time
+
+ // Run interval of task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property
+ // should not be present when ExecutionTrigger.properties.type is 'RunOnce'
+ Interval *int32
+
+ // Run interval unit of task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this
+ // property should not be present when ExecutionTrigger.properties.type is
+ // 'RunOnce'
+ IntervalUnit *string
+
+ // When to start task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property
+ // should not be present when ExecutionTrigger.properties.type is 'RunOnce'
+ StartFrom *time.Time
+
+ // When to start task execution. This is an optional field when ExecutionTrigger.properties.type is 'RunOnce'; this property
+ // should not be present when ExecutionTrigger.properties.type is 'OnSchedule'
+ StartOn *time.Time
+}
+
+// TriggerParametersUpdate - The trigger parameters update for the storage task assignment execution
+type TriggerParametersUpdate struct {
+ // When to end task execution. This is a mutable field when ExecutionTrigger.properties.type is 'OnSchedule'; this property
+ // should not be present when ExecutionTrigger.properties.type is 'RunOnce'
+ EndBy *time.Time
+
+ // Run interval of task execution. This is a mutable field when ExecutionTrigger.properties.type is 'OnSchedule'; this property
+ // should not be present when ExecutionTrigger.properties.type is 'RunOnce'
+ Interval *int32
+
+ // Run interval unit of task execution. This is a mutable field when ExecutionTrigger.properties.type is 'OnSchedule'; this
+ // property should not be present when ExecutionTrigger.properties.type is
+ // 'RunOnce'
+ IntervalUnit *string
+
+ // When to start task execution. This is a mutable field when ExecutionTrigger.properties.type is 'OnSchedule'; this property
+ // should not be present when ExecutionTrigger.properties.type is 'RunOnce'
+ StartFrom *time.Time
+
+ // When to start task execution. This is a mutable field when ExecutionTrigger.properties.type is 'RunOnce'; this property
+ // should not be present when ExecutionTrigger.properties.type is 'OnSchedule'
+ StartOn *time.Time
+}
+
// UpdateHistoryProperty - An update history of the ImmutabilityPolicy of a blob container.
type UpdateHistoryProperty struct {
// This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/models_serde.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/models_serde.go
index 0c96a09021..ac6d6f1801 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/models_serde.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/models_serde.go
@@ -506,6 +506,7 @@ func (a AccountProperties) MarshalJSON() ([]byte, error) {
populate(objectMap, "customDomain", a.CustomDomain)
populate(objectMap, "dnsEndpointType", a.DNSEndpointType)
populate(objectMap, "defaultToOAuthAuthentication", a.DefaultToOAuthAuthentication)
+ populate(objectMap, "enableExtendedGroups", a.EnableExtendedGroups)
populate(objectMap, "supportsHttpsTrafficOnly", a.EnableHTTPSTrafficOnly)
populate(objectMap, "isNfsV3Enabled", a.EnableNfsV3)
populate(objectMap, "encryption", a.Encryption)
@@ -582,6 +583,9 @@ func (a *AccountProperties) UnmarshalJSON(data []byte) error {
case "defaultToOAuthAuthentication":
err = unpopulate(val, "DefaultToOAuthAuthentication", &a.DefaultToOAuthAuthentication)
delete(rawMsg, key)
+ case "enableExtendedGroups":
+ err = unpopulate(val, "EnableExtendedGroups", &a.EnableExtendedGroups)
+ delete(rawMsg, key)
case "supportsHttpsTrafficOnly":
err = unpopulate(val, "EnableHTTPSTrafficOnly", &a.EnableHTTPSTrafficOnly)
delete(rawMsg, key)
@@ -686,6 +690,7 @@ func (a AccountPropertiesCreateParameters) MarshalJSON() ([]byte, error) {
populate(objectMap, "customDomain", a.CustomDomain)
populate(objectMap, "dnsEndpointType", a.DNSEndpointType)
populate(objectMap, "defaultToOAuthAuthentication", a.DefaultToOAuthAuthentication)
+ populate(objectMap, "enableExtendedGroups", a.EnableExtendedGroups)
populate(objectMap, "supportsHttpsTrafficOnly", a.EnableHTTPSTrafficOnly)
populate(objectMap, "isNfsV3Enabled", a.EnableNfsV3)
populate(objectMap, "encryption", a.Encryption)
@@ -739,6 +744,9 @@ func (a *AccountPropertiesCreateParameters) UnmarshalJSON(data []byte) error {
case "defaultToOAuthAuthentication":
err = unpopulate(val, "DefaultToOAuthAuthentication", &a.DefaultToOAuthAuthentication)
delete(rawMsg, key)
+ case "enableExtendedGroups":
+ err = unpopulate(val, "EnableExtendedGroups", &a.EnableExtendedGroups)
+ delete(rawMsg, key)
case "supportsHttpsTrafficOnly":
err = unpopulate(val, "EnableHTTPSTrafficOnly", &a.EnableHTTPSTrafficOnly)
delete(rawMsg, key)
@@ -801,6 +809,7 @@ func (a AccountPropertiesUpdateParameters) MarshalJSON() ([]byte, error) {
populate(objectMap, "customDomain", a.CustomDomain)
populate(objectMap, "dnsEndpointType", a.DNSEndpointType)
populate(objectMap, "defaultToOAuthAuthentication", a.DefaultToOAuthAuthentication)
+ populate(objectMap, "enableExtendedGroups", a.EnableExtendedGroups)
populate(objectMap, "supportsHttpsTrafficOnly", a.EnableHTTPSTrafficOnly)
populate(objectMap, "encryption", a.Encryption)
populate(objectMap, "immutableStorageWithVersioning", a.ImmutableStorageWithVersioning)
@@ -852,6 +861,9 @@ func (a *AccountPropertiesUpdateParameters) UnmarshalJSON(data []byte) error {
case "defaultToOAuthAuthentication":
err = unpopulate(val, "DefaultToOAuthAuthentication", &a.DefaultToOAuthAuthentication)
delete(rawMsg, key)
+ case "enableExtendedGroups":
+ err = unpopulate(val, "EnableExtendedGroups", &a.EnableExtendedGroups)
+ delete(rawMsg, key)
case "supportsHttpsTrafficOnly":
err = unpopulate(val, "EnableHTTPSTrafficOnly", &a.EnableHTTPSTrafficOnly)
delete(rawMsg, key)
@@ -2795,6 +2807,99 @@ func (e *ErrorResponseBody) UnmarshalJSON(data []byte) error {
return nil
}
+// MarshalJSON implements the json.Marshaller interface for type ExecutionTarget.
+func (e ExecutionTarget) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "excludePrefix", e.ExcludePrefix)
+ populate(objectMap, "prefix", e.Prefix)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type ExecutionTarget.
+func (e *ExecutionTarget) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", e, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "excludePrefix":
+ err = unpopulate(val, "ExcludePrefix", &e.ExcludePrefix)
+ delete(rawMsg, key)
+ case "prefix":
+ err = unpopulate(val, "Prefix", &e.Prefix)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", e, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type ExecutionTrigger.
+func (e ExecutionTrigger) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "parameters", e.Parameters)
+ populate(objectMap, "type", e.Type)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type ExecutionTrigger.
+func (e *ExecutionTrigger) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", e, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "parameters":
+ err = unpopulate(val, "Parameters", &e.Parameters)
+ delete(rawMsg, key)
+ case "type":
+ err = unpopulate(val, "Type", &e.Type)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", e, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type ExecutionTriggerUpdate.
+func (e ExecutionTriggerUpdate) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "parameters", e.Parameters)
+ populate(objectMap, "type", e.Type)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type ExecutionTriggerUpdate.
+func (e *ExecutionTriggerUpdate) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", e, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "parameters":
+ err = unpopulate(val, "Parameters", &e.Parameters)
+ delete(rawMsg, key)
+ case "type":
+ err = unpopulate(val, "Type", &e.Type)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", e, err)
+ }
+ }
+ return nil
+}
+
// MarshalJSON implements the json.Marshaller interface for type ExtendedLocation.
func (e ExtendedLocation) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
@@ -4219,13 +4324,18 @@ func (l *LocalUserKeys) UnmarshalJSON(data []byte) error {
// MarshalJSON implements the json.Marshaller interface for type LocalUserProperties.
func (l LocalUserProperties) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
+ populate(objectMap, "allowAclAuthorization", l.AllowACLAuthorization)
+ populate(objectMap, "extendedGroups", l.ExtendedGroups)
+ populate(objectMap, "groupId", l.GroupID)
populate(objectMap, "hasSshKey", l.HasSSHKey)
populate(objectMap, "hasSshPassword", l.HasSSHPassword)
populate(objectMap, "hasSharedKey", l.HasSharedKey)
populate(objectMap, "homeDirectory", l.HomeDirectory)
+ populate(objectMap, "isNFSv3Enabled", l.IsNFSv3Enabled)
populate(objectMap, "permissionScopes", l.PermissionScopes)
populate(objectMap, "sshAuthorizedKeys", l.SSHAuthorizedKeys)
populate(objectMap, "sid", l.Sid)
+ populate(objectMap, "userId", l.UserID)
return json.Marshal(objectMap)
}
@@ -4238,6 +4348,15 @@ func (l *LocalUserProperties) UnmarshalJSON(data []byte) error {
for key, val := range rawMsg {
var err error
switch key {
+ case "allowAclAuthorization":
+ err = unpopulate(val, "AllowACLAuthorization", &l.AllowACLAuthorization)
+ delete(rawMsg, key)
+ case "extendedGroups":
+ err = unpopulate(val, "ExtendedGroups", &l.ExtendedGroups)
+ delete(rawMsg, key)
+ case "groupId":
+ err = unpopulate(val, "GroupID", &l.GroupID)
+ delete(rawMsg, key)
case "hasSshKey":
err = unpopulate(val, "HasSSHKey", &l.HasSSHKey)
delete(rawMsg, key)
@@ -4250,6 +4369,9 @@ func (l *LocalUserProperties) UnmarshalJSON(data []byte) error {
case "homeDirectory":
err = unpopulate(val, "HomeDirectory", &l.HomeDirectory)
delete(rawMsg, key)
+ case "isNFSv3Enabled":
+ err = unpopulate(val, "IsNFSv3Enabled", &l.IsNFSv3Enabled)
+ delete(rawMsg, key)
case "permissionScopes":
err = unpopulate(val, "PermissionScopes", &l.PermissionScopes)
delete(rawMsg, key)
@@ -4259,6 +4381,9 @@ func (l *LocalUserProperties) UnmarshalJSON(data []byte) error {
case "sid":
err = unpopulate(val, "Sid", &l.Sid)
delete(rawMsg, key)
+ case "userId":
+ err = unpopulate(val, "UserID", &l.UserID)
+ delete(rawMsg, key)
}
if err != nil {
return fmt.Errorf("unmarshalling type %T: %v", l, err)
@@ -4297,6 +4422,7 @@ func (l *LocalUserRegeneratePasswordResult) UnmarshalJSON(data []byte) error {
// MarshalJSON implements the json.Marshaller interface for type LocalUsers.
func (l LocalUsers) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
+ populate(objectMap, "nextLink", l.NextLink)
populate(objectMap, "value", l.Value)
return json.Marshal(objectMap)
}
@@ -4310,6 +4436,9 @@ func (l *LocalUsers) UnmarshalJSON(data []byte) error {
for key, val := range rawMsg {
var err error
switch key {
+ case "nextLink":
+ err = unpopulate(val, "NextLink", &l.NextLink)
+ delete(rawMsg, key)
case "value":
err = unpopulate(val, "Value", &l.Value)
delete(rawMsg, key)
@@ -4820,626 +4949,655 @@ func (n *NetworkRuleSet) UnmarshalJSON(data []byte) error {
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type ObjectReplicationPolicies.
-func (o ObjectReplicationPolicies) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type NetworkSecurityPerimeter.
+func (n NetworkSecurityPerimeter) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "value", o.Value)
+ populate(objectMap, "id", n.ID)
+ populate(objectMap, "location", n.Location)
+ populate(objectMap, "perimeterGuid", n.PerimeterGUID)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type ObjectReplicationPolicies.
-func (o *ObjectReplicationPolicies) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type NetworkSecurityPerimeter.
+func (n *NetworkSecurityPerimeter) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", o, err)
+ return fmt.Errorf("unmarshalling type %T: %v", n, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "value":
- err = unpopulate(val, "Value", &o.Value)
+ case "id":
+ err = unpopulate(val, "ID", &n.ID)
+ delete(rawMsg, key)
+ case "location":
+ err = unpopulate(val, "Location", &n.Location)
+ delete(rawMsg, key)
+ case "perimeterGuid":
+ err = unpopulate(val, "PerimeterGUID", &n.PerimeterGUID)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", o, err)
+ return fmt.Errorf("unmarshalling type %T: %v", n, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type ObjectReplicationPolicy.
-func (o ObjectReplicationPolicy) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type NetworkSecurityPerimeterConfiguration.
+func (n NetworkSecurityPerimeterConfiguration) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "id", o.ID)
- populate(objectMap, "name", o.Name)
- populate(objectMap, "properties", o.Properties)
- populate(objectMap, "type", o.Type)
+ populate(objectMap, "id", n.ID)
+ populate(objectMap, "name", n.Name)
+ populate(objectMap, "properties", n.Properties)
+ populate(objectMap, "systemData", n.SystemData)
+ populate(objectMap, "type", n.Type)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type ObjectReplicationPolicy.
-func (o *ObjectReplicationPolicy) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type NetworkSecurityPerimeterConfiguration.
+func (n *NetworkSecurityPerimeterConfiguration) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", o, err)
+ return fmt.Errorf("unmarshalling type %T: %v", n, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "id":
- err = unpopulate(val, "ID", &o.ID)
+ err = unpopulate(val, "ID", &n.ID)
delete(rawMsg, key)
case "name":
- err = unpopulate(val, "Name", &o.Name)
+ err = unpopulate(val, "Name", &n.Name)
delete(rawMsg, key)
case "properties":
- err = unpopulate(val, "Properties", &o.Properties)
+ err = unpopulate(val, "Properties", &n.Properties)
+ delete(rawMsg, key)
+ case "systemData":
+ err = unpopulate(val, "SystemData", &n.SystemData)
delete(rawMsg, key)
case "type":
- err = unpopulate(val, "Type", &o.Type)
+ err = unpopulate(val, "Type", &n.Type)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", o, err)
+ return fmt.Errorf("unmarshalling type %T: %v", n, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type ObjectReplicationPolicyFilter.
-func (o ObjectReplicationPolicyFilter) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type NetworkSecurityPerimeterConfigurationList.
+func (n NetworkSecurityPerimeterConfigurationList) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "minCreationTime", o.MinCreationTime)
- populate(objectMap, "prefixMatch", o.PrefixMatch)
+ populate(objectMap, "nextLink", n.NextLink)
+ populate(objectMap, "value", n.Value)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type ObjectReplicationPolicyFilter.
-func (o *ObjectReplicationPolicyFilter) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type NetworkSecurityPerimeterConfigurationList.
+func (n *NetworkSecurityPerimeterConfigurationList) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", o, err)
+ return fmt.Errorf("unmarshalling type %T: %v", n, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "minCreationTime":
- err = unpopulate(val, "MinCreationTime", &o.MinCreationTime)
+ case "nextLink":
+ err = unpopulate(val, "NextLink", &n.NextLink)
delete(rawMsg, key)
- case "prefixMatch":
- err = unpopulate(val, "PrefixMatch", &o.PrefixMatch)
+ case "value":
+ err = unpopulate(val, "Value", &n.Value)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", o, err)
+ return fmt.Errorf("unmarshalling type %T: %v", n, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type ObjectReplicationPolicyProperties.
-func (o ObjectReplicationPolicyProperties) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type NetworkSecurityPerimeterConfigurationProperties.
+func (n NetworkSecurityPerimeterConfigurationProperties) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "destinationAccount", o.DestinationAccount)
- populateDateTimeRFC3339(objectMap, "enabledTime", o.EnabledTime)
- populate(objectMap, "policyId", o.PolicyID)
- populate(objectMap, "rules", o.Rules)
- populate(objectMap, "sourceAccount", o.SourceAccount)
+ populate(objectMap, "networkSecurityPerimeter", n.NetworkSecurityPerimeter)
+ populate(objectMap, "profile", n.Profile)
+ populate(objectMap, "provisioningIssues", n.ProvisioningIssues)
+ populate(objectMap, "provisioningState", n.ProvisioningState)
+ populate(objectMap, "resourceAssociation", n.ResourceAssociation)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type ObjectReplicationPolicyProperties.
-func (o *ObjectReplicationPolicyProperties) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type NetworkSecurityPerimeterConfigurationProperties.
+func (n *NetworkSecurityPerimeterConfigurationProperties) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", o, err)
+ return fmt.Errorf("unmarshalling type %T: %v", n, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "destinationAccount":
- err = unpopulate(val, "DestinationAccount", &o.DestinationAccount)
+ case "networkSecurityPerimeter":
+ err = unpopulate(val, "NetworkSecurityPerimeter", &n.NetworkSecurityPerimeter)
delete(rawMsg, key)
- case "enabledTime":
- err = unpopulateDateTimeRFC3339(val, "EnabledTime", &o.EnabledTime)
+ case "profile":
+ err = unpopulate(val, "Profile", &n.Profile)
delete(rawMsg, key)
- case "policyId":
- err = unpopulate(val, "PolicyID", &o.PolicyID)
+ case "provisioningIssues":
+ err = unpopulate(val, "ProvisioningIssues", &n.ProvisioningIssues)
delete(rawMsg, key)
- case "rules":
- err = unpopulate(val, "Rules", &o.Rules)
+ case "provisioningState":
+ err = unpopulate(val, "ProvisioningState", &n.ProvisioningState)
delete(rawMsg, key)
- case "sourceAccount":
- err = unpopulate(val, "SourceAccount", &o.SourceAccount)
+ case "resourceAssociation":
+ err = unpopulate(val, "ResourceAssociation", &n.ResourceAssociation)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", o, err)
+ return fmt.Errorf("unmarshalling type %T: %v", n, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type ObjectReplicationPolicyRule.
-func (o ObjectReplicationPolicyRule) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type NetworkSecurityPerimeterConfigurationPropertiesProfile.
+func (n NetworkSecurityPerimeterConfigurationPropertiesProfile) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "destinationContainer", o.DestinationContainer)
- populate(objectMap, "filters", o.Filters)
- populate(objectMap, "ruleId", o.RuleID)
- populate(objectMap, "sourceContainer", o.SourceContainer)
+ populate(objectMap, "accessRules", n.AccessRules)
+ populate(objectMap, "accessRulesVersion", n.AccessRulesVersion)
+ populate(objectMap, "diagnosticSettingsVersion", n.DiagnosticSettingsVersion)
+ populate(objectMap, "enabledLogCategories", n.EnabledLogCategories)
+ populate(objectMap, "name", n.Name)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type ObjectReplicationPolicyRule.
-func (o *ObjectReplicationPolicyRule) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type NetworkSecurityPerimeterConfigurationPropertiesProfile.
+func (n *NetworkSecurityPerimeterConfigurationPropertiesProfile) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", o, err)
+ return fmt.Errorf("unmarshalling type %T: %v", n, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "destinationContainer":
- err = unpopulate(val, "DestinationContainer", &o.DestinationContainer)
+ case "accessRules":
+ err = unpopulate(val, "AccessRules", &n.AccessRules)
delete(rawMsg, key)
- case "filters":
- err = unpopulate(val, "Filters", &o.Filters)
+ case "accessRulesVersion":
+ err = unpopulate(val, "AccessRulesVersion", &n.AccessRulesVersion)
delete(rawMsg, key)
- case "ruleId":
- err = unpopulate(val, "RuleID", &o.RuleID)
+ case "diagnosticSettingsVersion":
+ err = unpopulate(val, "DiagnosticSettingsVersion", &n.DiagnosticSettingsVersion)
delete(rawMsg, key)
- case "sourceContainer":
- err = unpopulate(val, "SourceContainer", &o.SourceContainer)
+ case "enabledLogCategories":
+ err = unpopulate(val, "EnabledLogCategories", &n.EnabledLogCategories)
+ delete(rawMsg, key)
+ case "name":
+ err = unpopulate(val, "Name", &n.Name)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", o, err)
+ return fmt.Errorf("unmarshalling type %T: %v", n, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type Operation.
-func (o Operation) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation.
+func (n NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "display", o.Display)
- populate(objectMap, "name", o.Name)
- populate(objectMap, "properties", o.OperationProperties)
- populate(objectMap, "origin", o.Origin)
+ populate(objectMap, "accessMode", n.AccessMode)
+ populate(objectMap, "name", n.Name)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type Operation.
-func (o *Operation) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation.
+func (n *NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", o, err)
+ return fmt.Errorf("unmarshalling type %T: %v", n, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "display":
- err = unpopulate(val, "Display", &o.Display)
+ case "accessMode":
+ err = unpopulate(val, "AccessMode", &n.AccessMode)
delete(rawMsg, key)
case "name":
- err = unpopulate(val, "Name", &o.Name)
- delete(rawMsg, key)
- case "properties":
- err = unpopulate(val, "OperationProperties", &o.OperationProperties)
- delete(rawMsg, key)
- case "origin":
- err = unpopulate(val, "Origin", &o.Origin)
+ err = unpopulate(val, "Name", &n.Name)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", o, err)
+ return fmt.Errorf("unmarshalling type %T: %v", n, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type OperationDisplay.
-func (o OperationDisplay) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type NspAccessRule.
+func (n NspAccessRule) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "description", o.Description)
- populate(objectMap, "operation", o.Operation)
- populate(objectMap, "provider", o.Provider)
- populate(objectMap, "resource", o.Resource)
+ populate(objectMap, "name", n.Name)
+ populate(objectMap, "properties", n.Properties)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay.
-func (o *OperationDisplay) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type NspAccessRule.
+func (n *NspAccessRule) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", o, err)
+ return fmt.Errorf("unmarshalling type %T: %v", n, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "description":
- err = unpopulate(val, "Description", &o.Description)
- delete(rawMsg, key)
- case "operation":
- err = unpopulate(val, "Operation", &o.Operation)
- delete(rawMsg, key)
- case "provider":
- err = unpopulate(val, "Provider", &o.Provider)
+ case "name":
+ err = unpopulate(val, "Name", &n.Name)
delete(rawMsg, key)
- case "resource":
- err = unpopulate(val, "Resource", &o.Resource)
+ case "properties":
+ err = unpopulate(val, "Properties", &n.Properties)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", o, err)
+ return fmt.Errorf("unmarshalling type %T: %v", n, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type OperationListResult.
-func (o OperationListResult) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type NspAccessRuleProperties.
+func (n NspAccessRuleProperties) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "value", o.Value)
+ populate(objectMap, "addressPrefixes", n.AddressPrefixes)
+ populate(objectMap, "direction", n.Direction)
+ populate(objectMap, "fullyQualifiedDomainNames", n.FullyQualifiedDomainNames)
+ populate(objectMap, "networkSecurityPerimeters", n.NetworkSecurityPerimeters)
+ populate(objectMap, "subscriptions", n.Subscriptions)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult.
-func (o *OperationListResult) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type NspAccessRuleProperties.
+func (n *NspAccessRuleProperties) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", o, err)
+ return fmt.Errorf("unmarshalling type %T: %v", n, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "value":
- err = unpopulate(val, "Value", &o.Value)
+ case "addressPrefixes":
+ err = unpopulate(val, "AddressPrefixes", &n.AddressPrefixes)
+ delete(rawMsg, key)
+ case "direction":
+ err = unpopulate(val, "Direction", &n.Direction)
+ delete(rawMsg, key)
+ case "fullyQualifiedDomainNames":
+ err = unpopulate(val, "FullyQualifiedDomainNames", &n.FullyQualifiedDomainNames)
+ delete(rawMsg, key)
+ case "networkSecurityPerimeters":
+ err = unpopulate(val, "NetworkSecurityPerimeters", &n.NetworkSecurityPerimeters)
+ delete(rawMsg, key)
+ case "subscriptions":
+ err = unpopulate(val, "Subscriptions", &n.Subscriptions)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", o, err)
+ return fmt.Errorf("unmarshalling type %T: %v", n, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type OperationProperties.
-func (o OperationProperties) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type NspAccessRulePropertiesSubscriptionsItem.
+func (n NspAccessRulePropertiesSubscriptionsItem) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "serviceSpecification", o.ServiceSpecification)
+ populate(objectMap, "id", n.ID)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type OperationProperties.
-func (o *OperationProperties) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type NspAccessRulePropertiesSubscriptionsItem.
+func (n *NspAccessRulePropertiesSubscriptionsItem) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", o, err)
+ return fmt.Errorf("unmarshalling type %T: %v", n, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "serviceSpecification":
- err = unpopulate(val, "ServiceSpecification", &o.ServiceSpecification)
+ case "id":
+ err = unpopulate(val, "ID", &n.ID)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", o, err)
+ return fmt.Errorf("unmarshalling type %T: %v", n, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type PermissionScope.
-func (p PermissionScope) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type ObjectReplicationPolicies.
+func (o ObjectReplicationPolicies) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "permissions", p.Permissions)
- populate(objectMap, "resourceName", p.ResourceName)
- populate(objectMap, "service", p.Service)
+ populate(objectMap, "value", o.Value)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type PermissionScope.
-func (p *PermissionScope) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type ObjectReplicationPolicies.
+func (o *ObjectReplicationPolicies) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", p, err)
+ return fmt.Errorf("unmarshalling type %T: %v", o, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "permissions":
- err = unpopulate(val, "Permissions", &p.Permissions)
- delete(rawMsg, key)
- case "resourceName":
- err = unpopulate(val, "ResourceName", &p.ResourceName)
- delete(rawMsg, key)
- case "service":
- err = unpopulate(val, "Service", &p.Service)
+ case "value":
+ err = unpopulate(val, "Value", &o.Value)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", p, err)
+ return fmt.Errorf("unmarshalling type %T: %v", o, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type PrivateEndpoint.
-func (p PrivateEndpoint) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type ObjectReplicationPolicy.
+func (o ObjectReplicationPolicy) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "id", p.ID)
+ populate(objectMap, "id", o.ID)
+ populate(objectMap, "name", o.Name)
+ populate(objectMap, "properties", o.Properties)
+ populate(objectMap, "type", o.Type)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpoint.
-func (p *PrivateEndpoint) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type ObjectReplicationPolicy.
+func (o *ObjectReplicationPolicy) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", p, err)
+ return fmt.Errorf("unmarshalling type %T: %v", o, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "id":
- err = unpopulate(val, "ID", &p.ID)
+ err = unpopulate(val, "ID", &o.ID)
+ delete(rawMsg, key)
+ case "name":
+ err = unpopulate(val, "Name", &o.Name)
+ delete(rawMsg, key)
+ case "properties":
+ err = unpopulate(val, "Properties", &o.Properties)
+ delete(rawMsg, key)
+ case "type":
+ err = unpopulate(val, "Type", &o.Type)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", p, err)
+ return fmt.Errorf("unmarshalling type %T: %v", o, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnection.
-func (p PrivateEndpointConnection) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type ObjectReplicationPolicyFilter.
+func (o ObjectReplicationPolicyFilter) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "id", p.ID)
- populate(objectMap, "name", p.Name)
- populate(objectMap, "properties", p.Properties)
- populate(objectMap, "type", p.Type)
+ populate(objectMap, "minCreationTime", o.MinCreationTime)
+ populate(objectMap, "prefixMatch", o.PrefixMatch)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnection.
-func (p *PrivateEndpointConnection) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type ObjectReplicationPolicyFilter.
+func (o *ObjectReplicationPolicyFilter) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", p, err)
+ return fmt.Errorf("unmarshalling type %T: %v", o, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "id":
- err = unpopulate(val, "ID", &p.ID)
- delete(rawMsg, key)
- case "name":
- err = unpopulate(val, "Name", &p.Name)
- delete(rawMsg, key)
- case "properties":
- err = unpopulate(val, "Properties", &p.Properties)
+ case "minCreationTime":
+ err = unpopulate(val, "MinCreationTime", &o.MinCreationTime)
delete(rawMsg, key)
- case "type":
- err = unpopulate(val, "Type", &p.Type)
+ case "prefixMatch":
+ err = unpopulate(val, "PrefixMatch", &o.PrefixMatch)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", p, err)
+ return fmt.Errorf("unmarshalling type %T: %v", o, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionListResult.
-func (p PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type ObjectReplicationPolicyProperties.
+func (o ObjectReplicationPolicyProperties) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "value", p.Value)
+ populate(objectMap, "destinationAccount", o.DestinationAccount)
+ populateDateTimeRFC3339(objectMap, "enabledTime", o.EnabledTime)
+ populate(objectMap, "policyId", o.PolicyID)
+ populate(objectMap, "rules", o.Rules)
+ populate(objectMap, "sourceAccount", o.SourceAccount)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionListResult.
-func (p *PrivateEndpointConnectionListResult) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type ObjectReplicationPolicyProperties.
+func (o *ObjectReplicationPolicyProperties) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", p, err)
+ return fmt.Errorf("unmarshalling type %T: %v", o, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "value":
- err = unpopulate(val, "Value", &p.Value)
+ case "destinationAccount":
+ err = unpopulate(val, "DestinationAccount", &o.DestinationAccount)
+ delete(rawMsg, key)
+ case "enabledTime":
+ err = unpopulateDateTimeRFC3339(val, "EnabledTime", &o.EnabledTime)
+ delete(rawMsg, key)
+ case "policyId":
+ err = unpopulate(val, "PolicyID", &o.PolicyID)
+ delete(rawMsg, key)
+ case "rules":
+ err = unpopulate(val, "Rules", &o.Rules)
+ delete(rawMsg, key)
+ case "sourceAccount":
+ err = unpopulate(val, "SourceAccount", &o.SourceAccount)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", p, err)
+ return fmt.Errorf("unmarshalling type %T: %v", o, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionProperties.
-func (p PrivateEndpointConnectionProperties) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type ObjectReplicationPolicyRule.
+func (o ObjectReplicationPolicyRule) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "privateEndpoint", p.PrivateEndpoint)
- populate(objectMap, "privateLinkServiceConnectionState", p.PrivateLinkServiceConnectionState)
- populate(objectMap, "provisioningState", p.ProvisioningState)
+ populate(objectMap, "destinationContainer", o.DestinationContainer)
+ populate(objectMap, "filters", o.Filters)
+ populate(objectMap, "ruleId", o.RuleID)
+ populate(objectMap, "sourceContainer", o.SourceContainer)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionProperties.
-func (p *PrivateEndpointConnectionProperties) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type ObjectReplicationPolicyRule.
+func (o *ObjectReplicationPolicyRule) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", p, err)
+ return fmt.Errorf("unmarshalling type %T: %v", o, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "privateEndpoint":
- err = unpopulate(val, "PrivateEndpoint", &p.PrivateEndpoint)
+ case "destinationContainer":
+ err = unpopulate(val, "DestinationContainer", &o.DestinationContainer)
delete(rawMsg, key)
- case "privateLinkServiceConnectionState":
- err = unpopulate(val, "PrivateLinkServiceConnectionState", &p.PrivateLinkServiceConnectionState)
+ case "filters":
+ err = unpopulate(val, "Filters", &o.Filters)
delete(rawMsg, key)
- case "provisioningState":
- err = unpopulate(val, "ProvisioningState", &p.ProvisioningState)
+ case "ruleId":
+ err = unpopulate(val, "RuleID", &o.RuleID)
+ delete(rawMsg, key)
+ case "sourceContainer":
+ err = unpopulate(val, "SourceContainer", &o.SourceContainer)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", p, err)
+ return fmt.Errorf("unmarshalling type %T: %v", o, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResource.
-func (p PrivateLinkResource) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type Operation.
+func (o Operation) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "id", p.ID)
- populate(objectMap, "name", p.Name)
- populate(objectMap, "properties", p.Properties)
- populate(objectMap, "type", p.Type)
+ populate(objectMap, "display", o.Display)
+ populate(objectMap, "name", o.Name)
+ populate(objectMap, "properties", o.OperationProperties)
+ populate(objectMap, "origin", o.Origin)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResource.
-func (p *PrivateLinkResource) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type Operation.
+func (o *Operation) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", p, err)
+ return fmt.Errorf("unmarshalling type %T: %v", o, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "id":
- err = unpopulate(val, "ID", &p.ID)
+ case "display":
+ err = unpopulate(val, "Display", &o.Display)
delete(rawMsg, key)
case "name":
- err = unpopulate(val, "Name", &p.Name)
+ err = unpopulate(val, "Name", &o.Name)
delete(rawMsg, key)
case "properties":
- err = unpopulate(val, "Properties", &p.Properties)
+ err = unpopulate(val, "OperationProperties", &o.OperationProperties)
delete(rawMsg, key)
- case "type":
- err = unpopulate(val, "Type", &p.Type)
+ case "origin":
+ err = unpopulate(val, "Origin", &o.Origin)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", p, err)
+ return fmt.Errorf("unmarshalling type %T: %v", o, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceListResult.
-func (p PrivateLinkResourceListResult) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type OperationDisplay.
+func (o OperationDisplay) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "value", p.Value)
+ populate(objectMap, "description", o.Description)
+ populate(objectMap, "operation", o.Operation)
+ populate(objectMap, "provider", o.Provider)
+ populate(objectMap, "resource", o.Resource)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResourceListResult.
-func (p *PrivateLinkResourceListResult) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay.
+func (o *OperationDisplay) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", p, err)
+ return fmt.Errorf("unmarshalling type %T: %v", o, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "value":
- err = unpopulate(val, "Value", &p.Value)
+ case "description":
+ err = unpopulate(val, "Description", &o.Description)
+ delete(rawMsg, key)
+ case "operation":
+ err = unpopulate(val, "Operation", &o.Operation)
+ delete(rawMsg, key)
+ case "provider":
+ err = unpopulate(val, "Provider", &o.Provider)
+ delete(rawMsg, key)
+ case "resource":
+ err = unpopulate(val, "Resource", &o.Resource)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", p, err)
+ return fmt.Errorf("unmarshalling type %T: %v", o, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties.
-func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type OperationListResult.
+func (o OperationListResult) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "groupId", p.GroupID)
- populate(objectMap, "requiredMembers", p.RequiredMembers)
- populate(objectMap, "requiredZoneNames", p.RequiredZoneNames)
+ populate(objectMap, "value", o.Value)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResourceProperties.
-func (p *PrivateLinkResourceProperties) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult.
+func (o *OperationListResult) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", p, err)
+ return fmt.Errorf("unmarshalling type %T: %v", o, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "groupId":
- err = unpopulate(val, "GroupID", &p.GroupID)
- delete(rawMsg, key)
- case "requiredMembers":
- err = unpopulate(val, "RequiredMembers", &p.RequiredMembers)
- delete(rawMsg, key)
- case "requiredZoneNames":
- err = unpopulate(val, "RequiredZoneNames", &p.RequiredZoneNames)
+ case "value":
+ err = unpopulate(val, "Value", &o.Value)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", p, err)
+ return fmt.Errorf("unmarshalling type %T: %v", o, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type PrivateLinkServiceConnectionState.
-func (p PrivateLinkServiceConnectionState) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type OperationProperties.
+func (o OperationProperties) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "actionRequired", p.ActionRequired)
- populate(objectMap, "description", p.Description)
- populate(objectMap, "status", p.Status)
+ populate(objectMap, "serviceSpecification", o.ServiceSpecification)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkServiceConnectionState.
-func (p *PrivateLinkServiceConnectionState) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type OperationProperties.
+func (o *OperationProperties) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", p, err)
+ return fmt.Errorf("unmarshalling type %T: %v", o, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "actionRequired":
- err = unpopulate(val, "ActionRequired", &p.ActionRequired)
- delete(rawMsg, key)
- case "description":
- err = unpopulate(val, "Description", &p.Description)
- delete(rawMsg, key)
- case "status":
- err = unpopulate(val, "Status", &p.Status)
+ case "serviceSpecification":
+ err = unpopulate(val, "ServiceSpecification", &o.ServiceSpecification)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", p, err)
+ return fmt.Errorf("unmarshalling type %T: %v", o, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type ProtectedAppendWritesHistory.
-func (p ProtectedAppendWritesHistory) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type PermissionScope.
+func (p PermissionScope) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "allowProtectedAppendWritesAll", p.AllowProtectedAppendWritesAll)
- populateDateTimeRFC3339(objectMap, "timestamp", p.Timestamp)
+ populate(objectMap, "permissions", p.Permissions)
+ populate(objectMap, "resourceName", p.ResourceName)
+ populate(objectMap, "service", p.Service)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type ProtectedAppendWritesHistory.
-func (p *ProtectedAppendWritesHistory) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type PermissionScope.
+func (p *PermissionScope) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", p, err)
@@ -5447,11 +5605,14 @@ func (p *ProtectedAppendWritesHistory) UnmarshalJSON(data []byte) error {
for key, val := range rawMsg {
var err error
switch key {
- case "allowProtectedAppendWritesAll":
- err = unpopulate(val, "AllowProtectedAppendWritesAll", &p.AllowProtectedAppendWritesAll)
+ case "permissions":
+ err = unpopulate(val, "Permissions", &p.Permissions)
delete(rawMsg, key)
- case "timestamp":
- err = unpopulateDateTimeRFC3339(val, "Timestamp", &p.Timestamp)
+ case "resourceName":
+ err = unpopulate(val, "ResourceName", &p.ResourceName)
+ delete(rawMsg, key)
+ case "service":
+ err = unpopulate(val, "Service", &p.Service)
delete(rawMsg, key)
}
if err != nil {
@@ -5461,15 +5622,15 @@ func (p *ProtectedAppendWritesHistory) UnmarshalJSON(data []byte) error {
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type ProtocolSettings.
-func (p ProtocolSettings) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type PrivateEndpoint.
+func (p PrivateEndpoint) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "smb", p.Smb)
+ populate(objectMap, "id", p.ID)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type ProtocolSettings.
-func (p *ProtocolSettings) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpoint.
+func (p *PrivateEndpoint) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", p, err)
@@ -5477,8 +5638,8 @@ func (p *ProtocolSettings) UnmarshalJSON(data []byte) error {
for key, val := range rawMsg {
var err error
switch key {
- case "smb":
- err = unpopulate(val, "Smb", &p.Smb)
+ case "id":
+ err = unpopulate(val, "ID", &p.ID)
delete(rawMsg, key)
}
if err != nil {
@@ -5488,17 +5649,18 @@ func (p *ProtocolSettings) UnmarshalJSON(data []byte) error {
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type ProxyResource.
-func (p ProxyResource) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnection.
+func (p PrivateEndpointConnection) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "id", p.ID)
populate(objectMap, "name", p.Name)
+ populate(objectMap, "properties", p.Properties)
populate(objectMap, "type", p.Type)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type ProxyResource.
-func (p *ProxyResource) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnection.
+func (p *PrivateEndpointConnection) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", p, err)
@@ -5512,6 +5674,9 @@ func (p *ProxyResource) UnmarshalJSON(data []byte) error {
case "name":
err = unpopulate(val, "Name", &p.Name)
delete(rawMsg, key)
+ case "properties":
+ err = unpopulate(val, "Properties", &p.Properties)
+ delete(rawMsg, key)
case "type":
err = unpopulate(val, "Type", &p.Type)
delete(rawMsg, key)
@@ -5523,774 +5688,1698 @@ func (p *ProxyResource) UnmarshalJSON(data []byte) error {
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type Queue.
-func (q Queue) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionListResult.
+func (p PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "id", q.ID)
- populate(objectMap, "name", q.Name)
- populate(objectMap, "properties", q.QueueProperties)
- populate(objectMap, "type", q.Type)
+ populate(objectMap, "value", p.Value)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type Queue.
-func (q *Queue) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionListResult.
+func (p *PrivateEndpointConnectionListResult) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", q, err)
+ return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "id":
- err = unpopulate(val, "ID", &q.ID)
- delete(rawMsg, key)
- case "name":
- err = unpopulate(val, "Name", &q.Name)
- delete(rawMsg, key)
- case "properties":
- err = unpopulate(val, "QueueProperties", &q.QueueProperties)
- delete(rawMsg, key)
- case "type":
- err = unpopulate(val, "Type", &q.Type)
+ case "value":
+ err = unpopulate(val, "Value", &p.Value)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", q, err)
+ return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type QueueProperties.
-func (q QueueProperties) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionProperties.
+func (p PrivateEndpointConnectionProperties) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "approximateMessageCount", q.ApproximateMessageCount)
- populate(objectMap, "metadata", q.Metadata)
+ populate(objectMap, "privateEndpoint", p.PrivateEndpoint)
+ populate(objectMap, "privateLinkServiceConnectionState", p.PrivateLinkServiceConnectionState)
+ populate(objectMap, "provisioningState", p.ProvisioningState)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type QueueProperties.
-func (q *QueueProperties) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionProperties.
+func (p *PrivateEndpointConnectionProperties) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", q, err)
+ return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "approximateMessageCount":
- err = unpopulate(val, "ApproximateMessageCount", &q.ApproximateMessageCount)
+ case "privateEndpoint":
+ err = unpopulate(val, "PrivateEndpoint", &p.PrivateEndpoint)
delete(rawMsg, key)
- case "metadata":
- err = unpopulate(val, "Metadata", &q.Metadata)
+ case "privateLinkServiceConnectionState":
+ err = unpopulate(val, "PrivateLinkServiceConnectionState", &p.PrivateLinkServiceConnectionState)
+ delete(rawMsg, key)
+ case "provisioningState":
+ err = unpopulate(val, "ProvisioningState", &p.ProvisioningState)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", q, err)
+ return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type QueueServiceProperties.
-func (q QueueServiceProperties) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResource.
+func (p PrivateLinkResource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "id", q.ID)
- populate(objectMap, "name", q.Name)
- populate(objectMap, "properties", q.QueueServiceProperties)
- populate(objectMap, "type", q.Type)
+ populate(objectMap, "id", p.ID)
+ populate(objectMap, "name", p.Name)
+ populate(objectMap, "properties", p.Properties)
+ populate(objectMap, "type", p.Type)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type QueueServiceProperties.
-func (q *QueueServiceProperties) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResource.
+func (p *PrivateLinkResource) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", q, err)
+ return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "id":
- err = unpopulate(val, "ID", &q.ID)
+ err = unpopulate(val, "ID", &p.ID)
delete(rawMsg, key)
case "name":
- err = unpopulate(val, "Name", &q.Name)
+ err = unpopulate(val, "Name", &p.Name)
delete(rawMsg, key)
case "properties":
- err = unpopulate(val, "QueueServiceProperties", &q.QueueServiceProperties)
+ err = unpopulate(val, "Properties", &p.Properties)
delete(rawMsg, key)
case "type":
- err = unpopulate(val, "Type", &q.Type)
+ err = unpopulate(val, "Type", &p.Type)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", q, err)
+ return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type QueueServicePropertiesProperties.
-func (q QueueServicePropertiesProperties) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceListResult.
+func (p PrivateLinkResourceListResult) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "cors", q.Cors)
+ populate(objectMap, "value", p.Value)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type QueueServicePropertiesProperties.
-func (q *QueueServicePropertiesProperties) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResourceListResult.
+func (p *PrivateLinkResourceListResult) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", q, err)
+ return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "cors":
- err = unpopulate(val, "Cors", &q.Cors)
+ case "value":
+ err = unpopulate(val, "Value", &p.Value)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", q, err)
+ return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type Resource.
-func (r Resource) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties.
+func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "id", r.ID)
- populate(objectMap, "name", r.Name)
- populate(objectMap, "type", r.Type)
+ populate(objectMap, "groupId", p.GroupID)
+ populate(objectMap, "requiredMembers", p.RequiredMembers)
+ populate(objectMap, "requiredZoneNames", p.RequiredZoneNames)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type Resource.
-func (r *Resource) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResourceProperties.
+func (p *PrivateLinkResourceProperties) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "id":
- err = unpopulate(val, "ID", &r.ID)
+ case "groupId":
+ err = unpopulate(val, "GroupID", &p.GroupID)
delete(rawMsg, key)
- case "name":
- err = unpopulate(val, "Name", &r.Name)
+ case "requiredMembers":
+ err = unpopulate(val, "RequiredMembers", &p.RequiredMembers)
delete(rawMsg, key)
- case "type":
- err = unpopulate(val, "Type", &r.Type)
+ case "requiredZoneNames":
+ err = unpopulate(val, "RequiredZoneNames", &p.RequiredZoneNames)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type ResourceAccessRule.
-func (r ResourceAccessRule) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type PrivateLinkServiceConnectionState.
+func (p PrivateLinkServiceConnectionState) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "resourceId", r.ResourceID)
- populate(objectMap, "tenantId", r.TenantID)
+ populate(objectMap, "actionRequired", p.ActionRequired)
+ populate(objectMap, "description", p.Description)
+ populate(objectMap, "status", p.Status)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type ResourceAccessRule.
-func (r *ResourceAccessRule) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkServiceConnectionState.
+func (p *PrivateLinkServiceConnectionState) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "resourceId":
- err = unpopulate(val, "ResourceID", &r.ResourceID)
+ case "actionRequired":
+ err = unpopulate(val, "ActionRequired", &p.ActionRequired)
delete(rawMsg, key)
- case "tenantId":
- err = unpopulate(val, "TenantID", &r.TenantID)
+ case "description":
+ err = unpopulate(val, "Description", &p.Description)
+ delete(rawMsg, key)
+ case "status":
+ err = unpopulate(val, "Status", &p.Status)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type RestorePolicyProperties.
-func (r RestorePolicyProperties) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type ProtectedAppendWritesHistory.
+func (p ProtectedAppendWritesHistory) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "days", r.Days)
- populate(objectMap, "enabled", r.Enabled)
- populateDateTimeRFC3339(objectMap, "lastEnabledTime", r.LastEnabledTime)
- populateDateTimeRFC3339(objectMap, "minRestoreTime", r.MinRestoreTime)
+ populate(objectMap, "allowProtectedAppendWritesAll", p.AllowProtectedAppendWritesAll)
+ populateDateTimeRFC3339(objectMap, "timestamp", p.Timestamp)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type RestorePolicyProperties.
-func (r *RestorePolicyProperties) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type ProtectedAppendWritesHistory.
+func (p *ProtectedAppendWritesHistory) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "days":
- err = unpopulate(val, "Days", &r.Days)
- delete(rawMsg, key)
- case "enabled":
- err = unpopulate(val, "Enabled", &r.Enabled)
- delete(rawMsg, key)
- case "lastEnabledTime":
- err = unpopulateDateTimeRFC3339(val, "LastEnabledTime", &r.LastEnabledTime)
+ case "allowProtectedAppendWritesAll":
+ err = unpopulate(val, "AllowProtectedAppendWritesAll", &p.AllowProtectedAppendWritesAll)
delete(rawMsg, key)
- case "minRestoreTime":
- err = unpopulateDateTimeRFC3339(val, "MinRestoreTime", &r.MinRestoreTime)
+ case "timestamp":
+ err = unpopulateDateTimeRFC3339(val, "Timestamp", &p.Timestamp)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type Restriction.
-func (r Restriction) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type ProtocolSettings.
+func (p ProtocolSettings) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "reasonCode", r.ReasonCode)
- populate(objectMap, "type", r.Type)
- populate(objectMap, "values", r.Values)
+ populate(objectMap, "smb", p.Smb)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type Restriction.
-func (r *Restriction) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type ProtocolSettings.
+func (p *ProtocolSettings) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "reasonCode":
- err = unpopulate(val, "ReasonCode", &r.ReasonCode)
- delete(rawMsg, key)
- case "type":
- err = unpopulate(val, "Type", &r.Type)
- delete(rawMsg, key)
- case "values":
- err = unpopulate(val, "Values", &r.Values)
+ case "smb":
+ err = unpopulate(val, "Smb", &p.Smb)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type RoutingPreference.
-func (r RoutingPreference) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type ProvisioningIssue.
+func (p ProvisioningIssue) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "publishInternetEndpoints", r.PublishInternetEndpoints)
- populate(objectMap, "publishMicrosoftEndpoints", r.PublishMicrosoftEndpoints)
- populate(objectMap, "routingChoice", r.RoutingChoice)
+ populate(objectMap, "name", p.Name)
+ populate(objectMap, "properties", p.Properties)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type RoutingPreference.
-func (r *RoutingPreference) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type ProvisioningIssue.
+func (p *ProvisioningIssue) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "publishInternetEndpoints":
- err = unpopulate(val, "PublishInternetEndpoints", &r.PublishInternetEndpoints)
- delete(rawMsg, key)
- case "publishMicrosoftEndpoints":
- err = unpopulate(val, "PublishMicrosoftEndpoints", &r.PublishMicrosoftEndpoints)
+ case "name":
+ err = unpopulate(val, "Name", &p.Name)
delete(rawMsg, key)
- case "routingChoice":
- err = unpopulate(val, "RoutingChoice", &r.RoutingChoice)
+ case "properties":
+ err = unpopulate(val, "Properties", &p.Properties)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type SKU.
-func (s SKU) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type ProvisioningIssueProperties.
+func (p ProvisioningIssueProperties) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "name", s.Name)
- populate(objectMap, "tier", s.Tier)
+ populate(objectMap, "description", p.Description)
+ populate(objectMap, "issueType", p.IssueType)
+ populate(objectMap, "severity", p.Severity)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type SKU.
-func (s *SKU) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type ProvisioningIssueProperties.
+func (p *ProvisioningIssueProperties) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "name":
- err = unpopulate(val, "Name", &s.Name)
+ case "description":
+ err = unpopulate(val, "Description", &p.Description)
delete(rawMsg, key)
- case "tier":
- err = unpopulate(val, "Tier", &s.Tier)
+ case "issueType":
+ err = unpopulate(val, "IssueType", &p.IssueType)
+ delete(rawMsg, key)
+ case "severity":
+ err = unpopulate(val, "Severity", &p.Severity)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type SKUCapability.
-func (s SKUCapability) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type ProxyResource.
+func (p ProxyResource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "name", s.Name)
- populate(objectMap, "value", s.Value)
+ populate(objectMap, "id", p.ID)
+ populate(objectMap, "name", p.Name)
+ populate(objectMap, "type", p.Type)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type SKUCapability.
-func (s *SKUCapability) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type ProxyResource.
+func (p *ProxyResource) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
for key, val := range rawMsg {
var err error
switch key {
+ case "id":
+ err = unpopulate(val, "ID", &p.ID)
+ delete(rawMsg, key)
case "name":
- err = unpopulate(val, "Name", &s.Name)
+ err = unpopulate(val, "Name", &p.Name)
delete(rawMsg, key)
- case "value":
- err = unpopulate(val, "Value", &s.Value)
+ case "type":
+ err = unpopulate(val, "Type", &p.Type)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type SKUInformation.
-func (s SKUInformation) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type ProxyResourceAutoGenerated.
+func (p ProxyResourceAutoGenerated) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "capabilities", s.Capabilities)
- populate(objectMap, "kind", s.Kind)
- populate(objectMap, "locations", s.Locations)
- populate(objectMap, "name", s.Name)
- populate(objectMap, "resourceType", s.ResourceType)
- populate(objectMap, "restrictions", s.Restrictions)
- populate(objectMap, "tier", s.Tier)
+ populate(objectMap, "id", p.ID)
+ populate(objectMap, "name", p.Name)
+ populate(objectMap, "systemData", p.SystemData)
+ populate(objectMap, "type", p.Type)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type SKUInformation.
-func (s *SKUInformation) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type ProxyResourceAutoGenerated.
+func (p *ProxyResourceAutoGenerated) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "capabilities":
- err = unpopulate(val, "Capabilities", &s.Capabilities)
- delete(rawMsg, key)
- case "kind":
- err = unpopulate(val, "Kind", &s.Kind)
- delete(rawMsg, key)
- case "locations":
- err = unpopulate(val, "Locations", &s.Locations)
+ case "id":
+ err = unpopulate(val, "ID", &p.ID)
delete(rawMsg, key)
case "name":
- err = unpopulate(val, "Name", &s.Name)
- delete(rawMsg, key)
- case "resourceType":
- err = unpopulate(val, "ResourceType", &s.ResourceType)
+ err = unpopulate(val, "Name", &p.Name)
delete(rawMsg, key)
- case "restrictions":
- err = unpopulate(val, "Restrictions", &s.Restrictions)
+ case "systemData":
+ err = unpopulate(val, "SystemData", &p.SystemData)
delete(rawMsg, key)
- case "tier":
- err = unpopulate(val, "Tier", &s.Tier)
+ case "type":
+ err = unpopulate(val, "Type", &p.Type)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ return fmt.Errorf("unmarshalling type %T: %v", p, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type SKUListResult.
-func (s SKUListResult) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type Queue.
+func (q Queue) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "value", s.Value)
+ populate(objectMap, "id", q.ID)
+ populate(objectMap, "name", q.Name)
+ populate(objectMap, "properties", q.QueueProperties)
+ populate(objectMap, "type", q.Type)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type SKUListResult.
-func (s *SKUListResult) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type Queue.
+func (q *Queue) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ return fmt.Errorf("unmarshalling type %T: %v", q, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "value":
- err = unpopulate(val, "Value", &s.Value)
+ case "id":
+ err = unpopulate(val, "ID", &q.ID)
+ delete(rawMsg, key)
+ case "name":
+ err = unpopulate(val, "Name", &q.Name)
+ delete(rawMsg, key)
+ case "properties":
+ err = unpopulate(val, "QueueProperties", &q.QueueProperties)
+ delete(rawMsg, key)
+ case "type":
+ err = unpopulate(val, "Type", &q.Type)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ return fmt.Errorf("unmarshalling type %T: %v", q, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type SSHPublicKey.
-func (s SSHPublicKey) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type QueueProperties.
+func (q QueueProperties) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "description", s.Description)
- populate(objectMap, "key", s.Key)
+ populate(objectMap, "approximateMessageCount", q.ApproximateMessageCount)
+ populate(objectMap, "metadata", q.Metadata)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type SSHPublicKey.
-func (s *SSHPublicKey) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type QueueProperties.
+func (q *QueueProperties) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ return fmt.Errorf("unmarshalling type %T: %v", q, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "description":
- err = unpopulate(val, "Description", &s.Description)
+ case "approximateMessageCount":
+ err = unpopulate(val, "ApproximateMessageCount", &q.ApproximateMessageCount)
delete(rawMsg, key)
- case "key":
- err = unpopulate(val, "Key", &s.Key)
+ case "metadata":
+ err = unpopulate(val, "Metadata", &q.Metadata)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ return fmt.Errorf("unmarshalling type %T: %v", q, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type SasPolicy.
-func (s SasPolicy) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type QueueServiceProperties.
+func (q QueueServiceProperties) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "expirationAction", s.ExpirationAction)
- populate(objectMap, "sasExpirationPeriod", s.SasExpirationPeriod)
+ populate(objectMap, "id", q.ID)
+ populate(objectMap, "name", q.Name)
+ populate(objectMap, "properties", q.QueueServiceProperties)
+ populate(objectMap, "type", q.Type)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type SasPolicy.
-func (s *SasPolicy) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type QueueServiceProperties.
+func (q *QueueServiceProperties) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ return fmt.Errorf("unmarshalling type %T: %v", q, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "expirationAction":
- err = unpopulate(val, "ExpirationAction", &s.ExpirationAction)
+ case "id":
+ err = unpopulate(val, "ID", &q.ID)
delete(rawMsg, key)
- case "sasExpirationPeriod":
- err = unpopulate(val, "SasExpirationPeriod", &s.SasExpirationPeriod)
+ case "name":
+ err = unpopulate(val, "Name", &q.Name)
+ delete(rawMsg, key)
+ case "properties":
+ err = unpopulate(val, "QueueServiceProperties", &q.QueueServiceProperties)
+ delete(rawMsg, key)
+ case "type":
+ err = unpopulate(val, "Type", &q.Type)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ return fmt.Errorf("unmarshalling type %T: %v", q, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type ServiceSasParameters.
-func (s ServiceSasParameters) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type QueueServicePropertiesProperties.
+func (q QueueServicePropertiesProperties) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "rscc", s.CacheControl)
- populate(objectMap, "canonicalizedResource", s.CanonicalizedResource)
- populate(objectMap, "rscd", s.ContentDisposition)
- populate(objectMap, "rsce", s.ContentEncoding)
- populate(objectMap, "rscl", s.ContentLanguage)
- populate(objectMap, "rsct", s.ContentType)
- populate(objectMap, "signedIp", s.IPAddressOrRange)
- populate(objectMap, "signedIdentifier", s.Identifier)
- populate(objectMap, "keyToSign", s.KeyToSign)
- populate(objectMap, "endPk", s.PartitionKeyEnd)
- populate(objectMap, "startPk", s.PartitionKeyStart)
- populate(objectMap, "signedPermission", s.Permissions)
- populate(objectMap, "signedProtocol", s.Protocols)
- populate(objectMap, "signedResource", s.Resource)
- populate(objectMap, "endRk", s.RowKeyEnd)
- populate(objectMap, "startRk", s.RowKeyStart)
- populateDateTimeRFC3339(objectMap, "signedExpiry", s.SharedAccessExpiryTime)
- populateDateTimeRFC3339(objectMap, "signedStart", s.SharedAccessStartTime)
+ populate(objectMap, "cors", q.Cors)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type ServiceSasParameters.
-func (s *ServiceSasParameters) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type QueueServicePropertiesProperties.
+func (q *QueueServicePropertiesProperties) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ return fmt.Errorf("unmarshalling type %T: %v", q, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "rscc":
- err = unpopulate(val, "CacheControl", &s.CacheControl)
- delete(rawMsg, key)
- case "canonicalizedResource":
- err = unpopulate(val, "CanonicalizedResource", &s.CanonicalizedResource)
- delete(rawMsg, key)
- case "rscd":
- err = unpopulate(val, "ContentDisposition", &s.ContentDisposition)
+ case "cors":
+ err = unpopulate(val, "Cors", &q.Cors)
delete(rawMsg, key)
- case "rsce":
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", q, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type Resource.
+func (r Resource) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "id", r.ID)
+ populate(objectMap, "name", r.Name)
+ populate(objectMap, "type", r.Type)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type Resource.
+func (r *Resource) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "id":
+ err = unpopulate(val, "ID", &r.ID)
+ delete(rawMsg, key)
+ case "name":
+ err = unpopulate(val, "Name", &r.Name)
+ delete(rawMsg, key)
+ case "type":
+ err = unpopulate(val, "Type", &r.Type)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type ResourceAccessRule.
+func (r ResourceAccessRule) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "resourceId", r.ResourceID)
+ populate(objectMap, "tenantId", r.TenantID)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type ResourceAccessRule.
+func (r *ResourceAccessRule) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "resourceId":
+ err = unpopulate(val, "ResourceID", &r.ResourceID)
+ delete(rawMsg, key)
+ case "tenantId":
+ err = unpopulate(val, "TenantID", &r.TenantID)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type ResourceAutoGenerated.
+func (r ResourceAutoGenerated) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "id", r.ID)
+ populate(objectMap, "name", r.Name)
+ populate(objectMap, "systemData", r.SystemData)
+ populate(objectMap, "type", r.Type)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type ResourceAutoGenerated.
+func (r *ResourceAutoGenerated) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "id":
+ err = unpopulate(val, "ID", &r.ID)
+ delete(rawMsg, key)
+ case "name":
+ err = unpopulate(val, "Name", &r.Name)
+ delete(rawMsg, key)
+ case "systemData":
+ err = unpopulate(val, "SystemData", &r.SystemData)
+ delete(rawMsg, key)
+ case "type":
+ err = unpopulate(val, "Type", &r.Type)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type RestorePolicyProperties.
+func (r RestorePolicyProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "days", r.Days)
+ populate(objectMap, "enabled", r.Enabled)
+ populateDateTimeRFC3339(objectMap, "lastEnabledTime", r.LastEnabledTime)
+ populateDateTimeRFC3339(objectMap, "minRestoreTime", r.MinRestoreTime)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type RestorePolicyProperties.
+func (r *RestorePolicyProperties) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "days":
+ err = unpopulate(val, "Days", &r.Days)
+ delete(rawMsg, key)
+ case "enabled":
+ err = unpopulate(val, "Enabled", &r.Enabled)
+ delete(rawMsg, key)
+ case "lastEnabledTime":
+ err = unpopulateDateTimeRFC3339(val, "LastEnabledTime", &r.LastEnabledTime)
+ delete(rawMsg, key)
+ case "minRestoreTime":
+ err = unpopulateDateTimeRFC3339(val, "MinRestoreTime", &r.MinRestoreTime)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type Restriction.
+func (r Restriction) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "reasonCode", r.ReasonCode)
+ populate(objectMap, "type", r.Type)
+ populate(objectMap, "values", r.Values)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type Restriction.
+func (r *Restriction) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "reasonCode":
+ err = unpopulate(val, "ReasonCode", &r.ReasonCode)
+ delete(rawMsg, key)
+ case "type":
+ err = unpopulate(val, "Type", &r.Type)
+ delete(rawMsg, key)
+ case "values":
+ err = unpopulate(val, "Values", &r.Values)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type RoutingPreference.
+func (r RoutingPreference) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "publishInternetEndpoints", r.PublishInternetEndpoints)
+ populate(objectMap, "publishMicrosoftEndpoints", r.PublishMicrosoftEndpoints)
+ populate(objectMap, "routingChoice", r.RoutingChoice)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type RoutingPreference.
+func (r *RoutingPreference) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "publishInternetEndpoints":
+ err = unpopulate(val, "PublishInternetEndpoints", &r.PublishInternetEndpoints)
+ delete(rawMsg, key)
+ case "publishMicrosoftEndpoints":
+ err = unpopulate(val, "PublishMicrosoftEndpoints", &r.PublishMicrosoftEndpoints)
+ delete(rawMsg, key)
+ case "routingChoice":
+ err = unpopulate(val, "RoutingChoice", &r.RoutingChoice)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", r, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type SKU.
+func (s SKU) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "name", s.Name)
+ populate(objectMap, "tier", s.Tier)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type SKU.
+func (s *SKU) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "name":
+ err = unpopulate(val, "Name", &s.Name)
+ delete(rawMsg, key)
+ case "tier":
+ err = unpopulate(val, "Tier", &s.Tier)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type SKUCapability.
+func (s SKUCapability) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "name", s.Name)
+ populate(objectMap, "value", s.Value)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type SKUCapability.
+func (s *SKUCapability) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "name":
+ err = unpopulate(val, "Name", &s.Name)
+ delete(rawMsg, key)
+ case "value":
+ err = unpopulate(val, "Value", &s.Value)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type SKUInformation.
+func (s SKUInformation) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "capabilities", s.Capabilities)
+ populate(objectMap, "kind", s.Kind)
+ populate(objectMap, "locations", s.Locations)
+ populate(objectMap, "name", s.Name)
+ populate(objectMap, "resourceType", s.ResourceType)
+ populate(objectMap, "restrictions", s.Restrictions)
+ populate(objectMap, "tier", s.Tier)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type SKUInformation.
+func (s *SKUInformation) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "capabilities":
+ err = unpopulate(val, "Capabilities", &s.Capabilities)
+ delete(rawMsg, key)
+ case "kind":
+ err = unpopulate(val, "Kind", &s.Kind)
+ delete(rawMsg, key)
+ case "locations":
+ err = unpopulate(val, "Locations", &s.Locations)
+ delete(rawMsg, key)
+ case "name":
+ err = unpopulate(val, "Name", &s.Name)
+ delete(rawMsg, key)
+ case "resourceType":
+ err = unpopulate(val, "ResourceType", &s.ResourceType)
+ delete(rawMsg, key)
+ case "restrictions":
+ err = unpopulate(val, "Restrictions", &s.Restrictions)
+ delete(rawMsg, key)
+ case "tier":
+ err = unpopulate(val, "Tier", &s.Tier)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type SKUListResult.
+func (s SKUListResult) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "value", s.Value)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type SKUListResult.
+func (s *SKUListResult) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "value":
+ err = unpopulate(val, "Value", &s.Value)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type SSHPublicKey.
+func (s SSHPublicKey) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "description", s.Description)
+ populate(objectMap, "key", s.Key)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type SSHPublicKey.
+func (s *SSHPublicKey) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "description":
+ err = unpopulate(val, "Description", &s.Description)
+ delete(rawMsg, key)
+ case "key":
+ err = unpopulate(val, "Key", &s.Key)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type SasPolicy.
+func (s SasPolicy) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "expirationAction", s.ExpirationAction)
+ populate(objectMap, "sasExpirationPeriod", s.SasExpirationPeriod)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type SasPolicy.
+func (s *SasPolicy) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "expirationAction":
+ err = unpopulate(val, "ExpirationAction", &s.ExpirationAction)
+ delete(rawMsg, key)
+ case "sasExpirationPeriod":
+ err = unpopulate(val, "SasExpirationPeriod", &s.SasExpirationPeriod)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type ServiceSasParameters.
+func (s ServiceSasParameters) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "rscc", s.CacheControl)
+ populate(objectMap, "canonicalizedResource", s.CanonicalizedResource)
+ populate(objectMap, "rscd", s.ContentDisposition)
+ populate(objectMap, "rsce", s.ContentEncoding)
+ populate(objectMap, "rscl", s.ContentLanguage)
+ populate(objectMap, "rsct", s.ContentType)
+ populate(objectMap, "signedIp", s.IPAddressOrRange)
+ populate(objectMap, "signedIdentifier", s.Identifier)
+ populate(objectMap, "keyToSign", s.KeyToSign)
+ populate(objectMap, "endPk", s.PartitionKeyEnd)
+ populate(objectMap, "startPk", s.PartitionKeyStart)
+ populate(objectMap, "signedPermission", s.Permissions)
+ populate(objectMap, "signedProtocol", s.Protocols)
+ populate(objectMap, "signedResource", s.Resource)
+ populate(objectMap, "endRk", s.RowKeyEnd)
+ populate(objectMap, "startRk", s.RowKeyStart)
+ populateDateTimeRFC3339(objectMap, "signedExpiry", s.SharedAccessExpiryTime)
+ populateDateTimeRFC3339(objectMap, "signedStart", s.SharedAccessStartTime)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type ServiceSasParameters.
+func (s *ServiceSasParameters) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "rscc":
+ err = unpopulate(val, "CacheControl", &s.CacheControl)
+ delete(rawMsg, key)
+ case "canonicalizedResource":
+ err = unpopulate(val, "CanonicalizedResource", &s.CanonicalizedResource)
+ delete(rawMsg, key)
+ case "rscd":
+ err = unpopulate(val, "ContentDisposition", &s.ContentDisposition)
+ delete(rawMsg, key)
+ case "rsce":
err = unpopulate(val, "ContentEncoding", &s.ContentEncoding)
delete(rawMsg, key)
- case "rscl":
- err = unpopulate(val, "ContentLanguage", &s.ContentLanguage)
+ case "rscl":
+ err = unpopulate(val, "ContentLanguage", &s.ContentLanguage)
+ delete(rawMsg, key)
+ case "rsct":
+ err = unpopulate(val, "ContentType", &s.ContentType)
+ delete(rawMsg, key)
+ case "signedIp":
+ err = unpopulate(val, "IPAddressOrRange", &s.IPAddressOrRange)
+ delete(rawMsg, key)
+ case "signedIdentifier":
+ err = unpopulate(val, "Identifier", &s.Identifier)
+ delete(rawMsg, key)
+ case "keyToSign":
+ err = unpopulate(val, "KeyToSign", &s.KeyToSign)
+ delete(rawMsg, key)
+ case "endPk":
+ err = unpopulate(val, "PartitionKeyEnd", &s.PartitionKeyEnd)
+ delete(rawMsg, key)
+ case "startPk":
+ err = unpopulate(val, "PartitionKeyStart", &s.PartitionKeyStart)
+ delete(rawMsg, key)
+ case "signedPermission":
+ err = unpopulate(val, "Permissions", &s.Permissions)
+ delete(rawMsg, key)
+ case "signedProtocol":
+ err = unpopulate(val, "Protocols", &s.Protocols)
+ delete(rawMsg, key)
+ case "signedResource":
+ err = unpopulate(val, "Resource", &s.Resource)
+ delete(rawMsg, key)
+ case "endRk":
+ err = unpopulate(val, "RowKeyEnd", &s.RowKeyEnd)
+ delete(rawMsg, key)
+ case "startRk":
+ err = unpopulate(val, "RowKeyStart", &s.RowKeyStart)
+ delete(rawMsg, key)
+ case "signedExpiry":
+ err = unpopulateDateTimeRFC3339(val, "SharedAccessExpiryTime", &s.SharedAccessExpiryTime)
+ delete(rawMsg, key)
+ case "signedStart":
+ err = unpopulateDateTimeRFC3339(val, "SharedAccessStartTime", &s.SharedAccessStartTime)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type ServiceSpecification.
+func (s ServiceSpecification) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "metricSpecifications", s.MetricSpecifications)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type ServiceSpecification.
+func (s *ServiceSpecification) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "metricSpecifications":
+ err = unpopulate(val, "MetricSpecifications", &s.MetricSpecifications)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type SignedIdentifier.
+func (s SignedIdentifier) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "accessPolicy", s.AccessPolicy)
+ populate(objectMap, "id", s.ID)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type SignedIdentifier.
+func (s *SignedIdentifier) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "accessPolicy":
+ err = unpopulate(val, "AccessPolicy", &s.AccessPolicy)
+ delete(rawMsg, key)
+ case "id":
+ err = unpopulate(val, "ID", &s.ID)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type SmbSetting.
+func (s SmbSetting) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "authenticationMethods", s.AuthenticationMethods)
+ populate(objectMap, "channelEncryption", s.ChannelEncryption)
+ populate(objectMap, "kerberosTicketEncryption", s.KerberosTicketEncryption)
+ populate(objectMap, "multichannel", s.Multichannel)
+ populate(objectMap, "versions", s.Versions)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type SmbSetting.
+func (s *SmbSetting) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "authenticationMethods":
+ err = unpopulate(val, "AuthenticationMethods", &s.AuthenticationMethods)
+ delete(rawMsg, key)
+ case "channelEncryption":
+ err = unpopulate(val, "ChannelEncryption", &s.ChannelEncryption)
+ delete(rawMsg, key)
+ case "kerberosTicketEncryption":
+ err = unpopulate(val, "KerberosTicketEncryption", &s.KerberosTicketEncryption)
+ delete(rawMsg, key)
+ case "multichannel":
+ err = unpopulate(val, "Multichannel", &s.Multichannel)
+ delete(rawMsg, key)
+ case "versions":
+ err = unpopulate(val, "Versions", &s.Versions)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type SystemData.
+func (s SystemData) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populateDateTimeRFC3339(objectMap, "createdAt", s.CreatedAt)
+ populate(objectMap, "createdBy", s.CreatedBy)
+ populate(objectMap, "createdByType", s.CreatedByType)
+ populateDateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt)
+ populate(objectMap, "lastModifiedBy", s.LastModifiedBy)
+ populate(objectMap, "lastModifiedByType", s.LastModifiedByType)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.
+func (s *SystemData) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "createdAt":
+ err = unpopulateDateTimeRFC3339(val, "CreatedAt", &s.CreatedAt)
+ delete(rawMsg, key)
+ case "createdBy":
+ err = unpopulate(val, "CreatedBy", &s.CreatedBy)
+ delete(rawMsg, key)
+ case "createdByType":
+ err = unpopulate(val, "CreatedByType", &s.CreatedByType)
+ delete(rawMsg, key)
+ case "lastModifiedAt":
+ err = unpopulateDateTimeRFC3339(val, "LastModifiedAt", &s.LastModifiedAt)
+ delete(rawMsg, key)
+ case "lastModifiedBy":
+ err = unpopulate(val, "LastModifiedBy", &s.LastModifiedBy)
+ delete(rawMsg, key)
+ case "lastModifiedByType":
+ err = unpopulate(val, "LastModifiedByType", &s.LastModifiedByType)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type Table.
+func (t Table) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "id", t.ID)
+ populate(objectMap, "name", t.Name)
+ populate(objectMap, "properties", t.TableProperties)
+ populate(objectMap, "type", t.Type)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type Table.
+func (t *Table) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", t, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "id":
+ err = unpopulate(val, "ID", &t.ID)
+ delete(rawMsg, key)
+ case "name":
+ err = unpopulate(val, "Name", &t.Name)
+ delete(rawMsg, key)
+ case "properties":
+ err = unpopulate(val, "TableProperties", &t.TableProperties)
+ delete(rawMsg, key)
+ case "type":
+ err = unpopulate(val, "Type", &t.Type)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", t, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type TableAccessPolicy.
+func (t TableAccessPolicy) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populateDateTimeRFC3339(objectMap, "expiryTime", t.ExpiryTime)
+ populate(objectMap, "permission", t.Permission)
+ populateDateTimeRFC3339(objectMap, "startTime", t.StartTime)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type TableAccessPolicy.
+func (t *TableAccessPolicy) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", t, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "expiryTime":
+ err = unpopulateDateTimeRFC3339(val, "ExpiryTime", &t.ExpiryTime)
+ delete(rawMsg, key)
+ case "permission":
+ err = unpopulate(val, "Permission", &t.Permission)
+ delete(rawMsg, key)
+ case "startTime":
+ err = unpopulateDateTimeRFC3339(val, "StartTime", &t.StartTime)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", t, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type TableProperties.
+func (t TableProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "signedIdentifiers", t.SignedIdentifiers)
+ populate(objectMap, "tableName", t.TableName)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type TableProperties.
+func (t *TableProperties) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", t, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "signedIdentifiers":
+ err = unpopulate(val, "SignedIdentifiers", &t.SignedIdentifiers)
+ delete(rawMsg, key)
+ case "tableName":
+ err = unpopulate(val, "TableName", &t.TableName)
delete(rawMsg, key)
- case "rsct":
- err = unpopulate(val, "ContentType", &s.ContentType)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", t, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type TableServiceProperties.
+func (t TableServiceProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "id", t.ID)
+ populate(objectMap, "name", t.Name)
+ populate(objectMap, "properties", t.TableServiceProperties)
+ populate(objectMap, "type", t.Type)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type TableServiceProperties.
+func (t *TableServiceProperties) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", t, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "id":
+ err = unpopulate(val, "ID", &t.ID)
delete(rawMsg, key)
- case "signedIp":
- err = unpopulate(val, "IPAddressOrRange", &s.IPAddressOrRange)
+ case "name":
+ err = unpopulate(val, "Name", &t.Name)
delete(rawMsg, key)
- case "signedIdentifier":
- err = unpopulate(val, "Identifier", &s.Identifier)
+ case "properties":
+ err = unpopulate(val, "TableServiceProperties", &t.TableServiceProperties)
delete(rawMsg, key)
- case "keyToSign":
- err = unpopulate(val, "KeyToSign", &s.KeyToSign)
+ case "type":
+ err = unpopulate(val, "Type", &t.Type)
delete(rawMsg, key)
- case "endPk":
- err = unpopulate(val, "PartitionKeyEnd", &s.PartitionKeyEnd)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", t, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type TableServicePropertiesProperties.
+func (t TableServicePropertiesProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "cors", t.Cors)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type TableServicePropertiesProperties.
+func (t *TableServicePropertiesProperties) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", t, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "cors":
+ err = unpopulate(val, "Cors", &t.Cors)
delete(rawMsg, key)
- case "startPk":
- err = unpopulate(val, "PartitionKeyStart", &s.PartitionKeyStart)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", t, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type TableSignedIdentifier.
+func (t TableSignedIdentifier) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "accessPolicy", t.AccessPolicy)
+ populate(objectMap, "id", t.ID)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type TableSignedIdentifier.
+func (t *TableSignedIdentifier) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", t, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "accessPolicy":
+ err = unpopulate(val, "AccessPolicy", &t.AccessPolicy)
delete(rawMsg, key)
- case "signedPermission":
- err = unpopulate(val, "Permissions", &s.Permissions)
+ case "id":
+ err = unpopulate(val, "ID", &t.ID)
delete(rawMsg, key)
- case "signedProtocol":
- err = unpopulate(val, "Protocols", &s.Protocols)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", t, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type TagFilter.
+func (t TagFilter) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "name", t.Name)
+ populate(objectMap, "op", t.Op)
+ populate(objectMap, "value", t.Value)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type TagFilter.
+func (t *TagFilter) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", t, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "name":
+ err = unpopulate(val, "Name", &t.Name)
delete(rawMsg, key)
- case "signedResource":
- err = unpopulate(val, "Resource", &s.Resource)
+ case "op":
+ err = unpopulate(val, "Op", &t.Op)
delete(rawMsg, key)
- case "endRk":
- err = unpopulate(val, "RowKeyEnd", &s.RowKeyEnd)
+ case "value":
+ err = unpopulate(val, "Value", &t.Value)
delete(rawMsg, key)
- case "startRk":
- err = unpopulate(val, "RowKeyStart", &s.RowKeyStart)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", t, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type TagProperty.
+func (t TagProperty) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "objectIdentifier", t.ObjectIdentifier)
+ populate(objectMap, "tag", t.Tag)
+ populate(objectMap, "tenantId", t.TenantID)
+ populateDateTimeRFC3339(objectMap, "timestamp", t.Timestamp)
+ populate(objectMap, "upn", t.Upn)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type TagProperty.
+func (t *TagProperty) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", t, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "objectIdentifier":
+ err = unpopulate(val, "ObjectIdentifier", &t.ObjectIdentifier)
delete(rawMsg, key)
- case "signedExpiry":
- err = unpopulateDateTimeRFC3339(val, "SharedAccessExpiryTime", &s.SharedAccessExpiryTime)
+ case "tag":
+ err = unpopulate(val, "Tag", &t.Tag)
+ delete(rawMsg, key)
+ case "tenantId":
+ err = unpopulate(val, "TenantID", &t.TenantID)
+ delete(rawMsg, key)
+ case "timestamp":
+ err = unpopulateDateTimeRFC3339(val, "Timestamp", &t.Timestamp)
+ delete(rawMsg, key)
+ case "upn":
+ err = unpopulate(val, "Upn", &t.Upn)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", t, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type TaskAssignment.
+func (t TaskAssignment) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "id", t.ID)
+ populate(objectMap, "name", t.Name)
+ populate(objectMap, "properties", t.Properties)
+ populate(objectMap, "type", t.Type)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type TaskAssignment.
+func (t *TaskAssignment) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", t, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "id":
+ err = unpopulate(val, "ID", &t.ID)
+ delete(rawMsg, key)
+ case "name":
+ err = unpopulate(val, "Name", &t.Name)
+ delete(rawMsg, key)
+ case "properties":
+ err = unpopulate(val, "Properties", &t.Properties)
+ delete(rawMsg, key)
+ case "type":
+ err = unpopulate(val, "Type", &t.Type)
+ delete(rawMsg, key)
+ }
+ if err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", t, err)
+ }
+ }
+ return nil
+}
+
+// MarshalJSON implements the json.Marshaller interface for type TaskAssignmentExecutionContext.
+func (t TaskAssignmentExecutionContext) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]any)
+ populate(objectMap, "target", t.Target)
+ populate(objectMap, "trigger", t.Trigger)
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON implements the json.Unmarshaller interface for type TaskAssignmentExecutionContext.
+func (t *TaskAssignmentExecutionContext) UnmarshalJSON(data []byte) error {
+ var rawMsg map[string]json.RawMessage
+ if err := json.Unmarshal(data, &rawMsg); err != nil {
+ return fmt.Errorf("unmarshalling type %T: %v", t, err)
+ }
+ for key, val := range rawMsg {
+ var err error
+ switch key {
+ case "target":
+ err = unpopulate(val, "Target", &t.Target)
delete(rawMsg, key)
- case "signedStart":
- err = unpopulateDateTimeRFC3339(val, "SharedAccessStartTime", &s.SharedAccessStartTime)
+ case "trigger":
+ err = unpopulate(val, "Trigger", &t.Trigger)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ return fmt.Errorf("unmarshalling type %T: %v", t, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type ServiceSpecification.
-func (s ServiceSpecification) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type TaskAssignmentProperties.
+func (t TaskAssignmentProperties) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "metricSpecifications", s.MetricSpecifications)
+ populate(objectMap, "description", t.Description)
+ populate(objectMap, "enabled", t.Enabled)
+ populate(objectMap, "executionContext", t.ExecutionContext)
+ populate(objectMap, "provisioningState", t.ProvisioningState)
+ populate(objectMap, "report", t.Report)
+ populate(objectMap, "runStatus", t.RunStatus)
+ populate(objectMap, "taskId", t.TaskID)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type ServiceSpecification.
-func (s *ServiceSpecification) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type TaskAssignmentProperties.
+func (t *TaskAssignmentProperties) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ return fmt.Errorf("unmarshalling type %T: %v", t, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "metricSpecifications":
- err = unpopulate(val, "MetricSpecifications", &s.MetricSpecifications)
+ case "description":
+ err = unpopulate(val, "Description", &t.Description)
+ delete(rawMsg, key)
+ case "enabled":
+ err = unpopulate(val, "Enabled", &t.Enabled)
+ delete(rawMsg, key)
+ case "executionContext":
+ err = unpopulate(val, "ExecutionContext", &t.ExecutionContext)
+ delete(rawMsg, key)
+ case "provisioningState":
+ err = unpopulate(val, "ProvisioningState", &t.ProvisioningState)
+ delete(rawMsg, key)
+ case "report":
+ err = unpopulate(val, "Report", &t.Report)
+ delete(rawMsg, key)
+ case "runStatus":
+ err = unpopulate(val, "RunStatus", &t.RunStatus)
+ delete(rawMsg, key)
+ case "taskId":
+ err = unpopulate(val, "TaskID", &t.TaskID)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ return fmt.Errorf("unmarshalling type %T: %v", t, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type SignedIdentifier.
-func (s SignedIdentifier) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type TaskAssignmentReport.
+func (t TaskAssignmentReport) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "accessPolicy", s.AccessPolicy)
- populate(objectMap, "id", s.ID)
+ populate(objectMap, "prefix", t.Prefix)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type SignedIdentifier.
-func (s *SignedIdentifier) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type TaskAssignmentReport.
+func (t *TaskAssignmentReport) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ return fmt.Errorf("unmarshalling type %T: %v", t, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "accessPolicy":
- err = unpopulate(val, "AccessPolicy", &s.AccessPolicy)
- delete(rawMsg, key)
- case "id":
- err = unpopulate(val, "ID", &s.ID)
+ case "prefix":
+ err = unpopulate(val, "Prefix", &t.Prefix)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ return fmt.Errorf("unmarshalling type %T: %v", t, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type SmbSetting.
-func (s SmbSetting) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type TaskAssignmentUpdateExecutionContext.
+func (t TaskAssignmentUpdateExecutionContext) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "authenticationMethods", s.AuthenticationMethods)
- populate(objectMap, "channelEncryption", s.ChannelEncryption)
- populate(objectMap, "kerberosTicketEncryption", s.KerberosTicketEncryption)
- populate(objectMap, "multichannel", s.Multichannel)
- populate(objectMap, "versions", s.Versions)
+ populate(objectMap, "target", t.Target)
+ populate(objectMap, "trigger", t.Trigger)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type SmbSetting.
-func (s *SmbSetting) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type TaskAssignmentUpdateExecutionContext.
+func (t *TaskAssignmentUpdateExecutionContext) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ return fmt.Errorf("unmarshalling type %T: %v", t, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "authenticationMethods":
- err = unpopulate(val, "AuthenticationMethods", &s.AuthenticationMethods)
- delete(rawMsg, key)
- case "channelEncryption":
- err = unpopulate(val, "ChannelEncryption", &s.ChannelEncryption)
- delete(rawMsg, key)
- case "kerberosTicketEncryption":
- err = unpopulate(val, "KerberosTicketEncryption", &s.KerberosTicketEncryption)
- delete(rawMsg, key)
- case "multichannel":
- err = unpopulate(val, "Multichannel", &s.Multichannel)
+ case "target":
+ err = unpopulate(val, "Target", &t.Target)
delete(rawMsg, key)
- case "versions":
- err = unpopulate(val, "Versions", &s.Versions)
+ case "trigger":
+ err = unpopulate(val, "Trigger", &t.Trigger)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ return fmt.Errorf("unmarshalling type %T: %v", t, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type SystemData.
-func (s SystemData) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type TaskAssignmentUpdateParameters.
+func (t TaskAssignmentUpdateParameters) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populateDateTimeRFC3339(objectMap, "createdAt", s.CreatedAt)
- populate(objectMap, "createdBy", s.CreatedBy)
- populate(objectMap, "createdByType", s.CreatedByType)
- populateDateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt)
- populate(objectMap, "lastModifiedBy", s.LastModifiedBy)
- populate(objectMap, "lastModifiedByType", s.LastModifiedByType)
+ populate(objectMap, "properties", t.Properties)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.
-func (s *SystemData) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type TaskAssignmentUpdateParameters.
+func (t *TaskAssignmentUpdateParameters) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ return fmt.Errorf("unmarshalling type %T: %v", t, err)
}
for key, val := range rawMsg {
var err error
switch key {
- case "createdAt":
- err = unpopulateDateTimeRFC3339(val, "CreatedAt", &s.CreatedAt)
- delete(rawMsg, key)
- case "createdBy":
- err = unpopulate(val, "CreatedBy", &s.CreatedBy)
- delete(rawMsg, key)
- case "createdByType":
- err = unpopulate(val, "CreatedByType", &s.CreatedByType)
- delete(rawMsg, key)
- case "lastModifiedAt":
- err = unpopulateDateTimeRFC3339(val, "LastModifiedAt", &s.LastModifiedAt)
- delete(rawMsg, key)
- case "lastModifiedBy":
- err = unpopulate(val, "LastModifiedBy", &s.LastModifiedBy)
- delete(rawMsg, key)
- case "lastModifiedByType":
- err = unpopulate(val, "LastModifiedByType", &s.LastModifiedByType)
+ case "properties":
+ err = unpopulate(val, "Properties", &t.Properties)
delete(rawMsg, key)
}
if err != nil {
- return fmt.Errorf("unmarshalling type %T: %v", s, err)
+ return fmt.Errorf("unmarshalling type %T: %v", t, err)
}
}
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type Table.
-func (t Table) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type TaskAssignmentUpdateProperties.
+func (t TaskAssignmentUpdateProperties) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "id", t.ID)
- populate(objectMap, "name", t.Name)
- populate(objectMap, "properties", t.TableProperties)
- populate(objectMap, "type", t.Type)
+ populate(objectMap, "description", t.Description)
+ populate(objectMap, "enabled", t.Enabled)
+ populate(objectMap, "executionContext", t.ExecutionContext)
+ populate(objectMap, "provisioningState", t.ProvisioningState)
+ populate(objectMap, "report", t.Report)
+ populate(objectMap, "runStatus", t.RunStatus)
+ populate(objectMap, "taskId", t.TaskID)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type Table.
-func (t *Table) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type TaskAssignmentUpdateProperties.
+func (t *TaskAssignmentUpdateProperties) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", t, err)
@@ -6298,17 +7387,26 @@ func (t *Table) UnmarshalJSON(data []byte) error {
for key, val := range rawMsg {
var err error
switch key {
- case "id":
- err = unpopulate(val, "ID", &t.ID)
+ case "description":
+ err = unpopulate(val, "Description", &t.Description)
delete(rawMsg, key)
- case "name":
- err = unpopulate(val, "Name", &t.Name)
+ case "enabled":
+ err = unpopulate(val, "Enabled", &t.Enabled)
delete(rawMsg, key)
- case "properties":
- err = unpopulate(val, "TableProperties", &t.TableProperties)
+ case "executionContext":
+ err = unpopulate(val, "ExecutionContext", &t.ExecutionContext)
delete(rawMsg, key)
- case "type":
- err = unpopulate(val, "Type", &t.Type)
+ case "provisioningState":
+ err = unpopulate(val, "ProvisioningState", &t.ProvisioningState)
+ delete(rawMsg, key)
+ case "report":
+ err = unpopulate(val, "Report", &t.Report)
+ delete(rawMsg, key)
+ case "runStatus":
+ err = unpopulate(val, "RunStatus", &t.RunStatus)
+ delete(rawMsg, key)
+ case "taskId":
+ err = unpopulate(val, "TaskID", &t.TaskID)
delete(rawMsg, key)
}
if err != nil {
@@ -6318,17 +7416,15 @@ func (t *Table) UnmarshalJSON(data []byte) error {
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type TableAccessPolicy.
-func (t TableAccessPolicy) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type TaskAssignmentUpdateReport.
+func (t TaskAssignmentUpdateReport) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populateDateTimeRFC3339(objectMap, "expiryTime", t.ExpiryTime)
- populate(objectMap, "permission", t.Permission)
- populateDateTimeRFC3339(objectMap, "startTime", t.StartTime)
+ populate(objectMap, "prefix", t.Prefix)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type TableAccessPolicy.
-func (t *TableAccessPolicy) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type TaskAssignmentUpdateReport.
+func (t *TaskAssignmentUpdateReport) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", t, err)
@@ -6336,14 +7432,8 @@ func (t *TableAccessPolicy) UnmarshalJSON(data []byte) error {
for key, val := range rawMsg {
var err error
switch key {
- case "expiryTime":
- err = unpopulateDateTimeRFC3339(val, "ExpiryTime", &t.ExpiryTime)
- delete(rawMsg, key)
- case "permission":
- err = unpopulate(val, "Permission", &t.Permission)
- delete(rawMsg, key)
- case "startTime":
- err = unpopulateDateTimeRFC3339(val, "StartTime", &t.StartTime)
+ case "prefix":
+ err = unpopulate(val, "Prefix", &t.Prefix)
delete(rawMsg, key)
}
if err != nil {
@@ -6353,16 +7443,16 @@ func (t *TableAccessPolicy) UnmarshalJSON(data []byte) error {
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type TableProperties.
-func (t TableProperties) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type TaskAssignmentsList.
+func (t TaskAssignmentsList) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "signedIdentifiers", t.SignedIdentifiers)
- populate(objectMap, "tableName", t.TableName)
+ populate(objectMap, "nextLink", t.NextLink)
+ populate(objectMap, "value", t.Value)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type TableProperties.
-func (t *TableProperties) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type TaskAssignmentsList.
+func (t *TaskAssignmentsList) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", t, err)
@@ -6370,11 +7460,11 @@ func (t *TableProperties) UnmarshalJSON(data []byte) error {
for key, val := range rawMsg {
var err error
switch key {
- case "signedIdentifiers":
- err = unpopulate(val, "SignedIdentifiers", &t.SignedIdentifiers)
+ case "nextLink":
+ err = unpopulate(val, "NextLink", &t.NextLink)
delete(rawMsg, key)
- case "tableName":
- err = unpopulate(val, "TableName", &t.TableName)
+ case "value":
+ err = unpopulate(val, "Value", &t.Value)
delete(rawMsg, key)
}
if err != nil {
@@ -6384,18 +7474,18 @@ func (t *TableProperties) UnmarshalJSON(data []byte) error {
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type TableServiceProperties.
-func (t TableServiceProperties) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type TaskReportInstance.
+func (t TaskReportInstance) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "id", t.ID)
populate(objectMap, "name", t.Name)
- populate(objectMap, "properties", t.TableServiceProperties)
+ populate(objectMap, "properties", t.Properties)
populate(objectMap, "type", t.Type)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type TableServiceProperties.
-func (t *TableServiceProperties) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type TaskReportInstance.
+func (t *TaskReportInstance) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", t, err)
@@ -6410,7 +7500,7 @@ func (t *TableServiceProperties) UnmarshalJSON(data []byte) error {
err = unpopulate(val, "Name", &t.Name)
delete(rawMsg, key)
case "properties":
- err = unpopulate(val, "TableServiceProperties", &t.TableServiceProperties)
+ err = unpopulate(val, "Properties", &t.Properties)
delete(rawMsg, key)
case "type":
err = unpopulate(val, "Type", &t.Type)
@@ -6423,15 +7513,28 @@ func (t *TableServiceProperties) UnmarshalJSON(data []byte) error {
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type TableServicePropertiesProperties.
-func (t TableServicePropertiesProperties) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type TaskReportProperties.
+func (t TaskReportProperties) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "cors", t.Cors)
+ populate(objectMap, "finishTime", t.FinishTime)
+ populate(objectMap, "objectFailedCount", t.ObjectFailedCount)
+ populate(objectMap, "objectsOperatedOnCount", t.ObjectsOperatedOnCount)
+ populate(objectMap, "objectsSucceededCount", t.ObjectsSucceededCount)
+ populate(objectMap, "objectsTargetedCount", t.ObjectsTargetedCount)
+ populate(objectMap, "runResult", t.RunResult)
+ populate(objectMap, "runStatusEnum", t.RunStatusEnum)
+ populate(objectMap, "runStatusError", t.RunStatusError)
+ populate(objectMap, "startTime", t.StartTime)
+ populate(objectMap, "storageAccountId", t.StorageAccountID)
+ populate(objectMap, "summaryReportPath", t.SummaryReportPath)
+ populate(objectMap, "taskAssignmentId", t.TaskAssignmentID)
+ populate(objectMap, "taskId", t.TaskID)
+ populate(objectMap, "taskVersion", t.TaskVersion)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type TableServicePropertiesProperties.
-func (t *TableServicePropertiesProperties) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type TaskReportProperties.
+func (t *TaskReportProperties) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", t, err)
@@ -6439,8 +7542,47 @@ func (t *TableServicePropertiesProperties) UnmarshalJSON(data []byte) error {
for key, val := range rawMsg {
var err error
switch key {
- case "cors":
- err = unpopulate(val, "Cors", &t.Cors)
+ case "finishTime":
+ err = unpopulate(val, "FinishTime", &t.FinishTime)
+ delete(rawMsg, key)
+ case "objectFailedCount":
+ err = unpopulate(val, "ObjectFailedCount", &t.ObjectFailedCount)
+ delete(rawMsg, key)
+ case "objectsOperatedOnCount":
+ err = unpopulate(val, "ObjectsOperatedOnCount", &t.ObjectsOperatedOnCount)
+ delete(rawMsg, key)
+ case "objectsSucceededCount":
+ err = unpopulate(val, "ObjectsSucceededCount", &t.ObjectsSucceededCount)
+ delete(rawMsg, key)
+ case "objectsTargetedCount":
+ err = unpopulate(val, "ObjectsTargetedCount", &t.ObjectsTargetedCount)
+ delete(rawMsg, key)
+ case "runResult":
+ err = unpopulate(val, "RunResult", &t.RunResult)
+ delete(rawMsg, key)
+ case "runStatusEnum":
+ err = unpopulate(val, "RunStatusEnum", &t.RunStatusEnum)
+ delete(rawMsg, key)
+ case "runStatusError":
+ err = unpopulate(val, "RunStatusError", &t.RunStatusError)
+ delete(rawMsg, key)
+ case "startTime":
+ err = unpopulate(val, "StartTime", &t.StartTime)
+ delete(rawMsg, key)
+ case "storageAccountId":
+ err = unpopulate(val, "StorageAccountID", &t.StorageAccountID)
+ delete(rawMsg, key)
+ case "summaryReportPath":
+ err = unpopulate(val, "SummaryReportPath", &t.SummaryReportPath)
+ delete(rawMsg, key)
+ case "taskAssignmentId":
+ err = unpopulate(val, "TaskAssignmentID", &t.TaskAssignmentID)
+ delete(rawMsg, key)
+ case "taskId":
+ err = unpopulate(val, "TaskID", &t.TaskID)
+ delete(rawMsg, key)
+ case "taskVersion":
+ err = unpopulate(val, "TaskVersion", &t.TaskVersion)
delete(rawMsg, key)
}
if err != nil {
@@ -6450,16 +7592,16 @@ func (t *TableServicePropertiesProperties) UnmarshalJSON(data []byte) error {
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type TableSignedIdentifier.
-func (t TableSignedIdentifier) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type TaskReportSummary.
+func (t TaskReportSummary) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "accessPolicy", t.AccessPolicy)
- populate(objectMap, "id", t.ID)
+ populate(objectMap, "nextLink", t.NextLink)
+ populate(objectMap, "value", t.Value)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type TableSignedIdentifier.
-func (t *TableSignedIdentifier) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type TaskReportSummary.
+func (t *TaskReportSummary) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", t, err)
@@ -6467,11 +7609,11 @@ func (t *TableSignedIdentifier) UnmarshalJSON(data []byte) error {
for key, val := range rawMsg {
var err error
switch key {
- case "accessPolicy":
- err = unpopulate(val, "AccessPolicy", &t.AccessPolicy)
+ case "nextLink":
+ err = unpopulate(val, "NextLink", &t.NextLink)
delete(rawMsg, key)
- case "id":
- err = unpopulate(val, "ID", &t.ID)
+ case "value":
+ err = unpopulate(val, "Value", &t.Value)
delete(rawMsg, key)
}
if err != nil {
@@ -6481,17 +7623,19 @@ func (t *TableSignedIdentifier) UnmarshalJSON(data []byte) error {
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type TagFilter.
-func (t TagFilter) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type TrackedResource.
+func (t TrackedResource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
+ populate(objectMap, "id", t.ID)
+ populate(objectMap, "location", t.Location)
populate(objectMap, "name", t.Name)
- populate(objectMap, "op", t.Op)
- populate(objectMap, "value", t.Value)
+ populate(objectMap, "tags", t.Tags)
+ populate(objectMap, "type", t.Type)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type TagFilter.
-func (t *TagFilter) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type TrackedResource.
+func (t *TrackedResource) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", t, err)
@@ -6499,14 +7643,20 @@ func (t *TagFilter) UnmarshalJSON(data []byte) error {
for key, val := range rawMsg {
var err error
switch key {
+ case "id":
+ err = unpopulate(val, "ID", &t.ID)
+ delete(rawMsg, key)
+ case "location":
+ err = unpopulate(val, "Location", &t.Location)
+ delete(rawMsg, key)
case "name":
err = unpopulate(val, "Name", &t.Name)
delete(rawMsg, key)
- case "op":
- err = unpopulate(val, "Op", &t.Op)
+ case "tags":
+ err = unpopulate(val, "Tags", &t.Tags)
delete(rawMsg, key)
- case "value":
- err = unpopulate(val, "Value", &t.Value)
+ case "type":
+ err = unpopulate(val, "Type", &t.Type)
delete(rawMsg, key)
}
if err != nil {
@@ -6516,19 +7666,19 @@ func (t *TagFilter) UnmarshalJSON(data []byte) error {
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type TagProperty.
-func (t TagProperty) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type TriggerParameters.
+func (t TriggerParameters) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "objectIdentifier", t.ObjectIdentifier)
- populate(objectMap, "tag", t.Tag)
- populate(objectMap, "tenantId", t.TenantID)
- populateDateTimeRFC3339(objectMap, "timestamp", t.Timestamp)
- populate(objectMap, "upn", t.Upn)
+ populateDateTimeRFC3339(objectMap, "endBy", t.EndBy)
+ populate(objectMap, "interval", t.Interval)
+ objectMap["intervalUnit"] = "Days"
+ populateDateTimeRFC3339(objectMap, "startFrom", t.StartFrom)
+ populateDateTimeRFC3339(objectMap, "startOn", t.StartOn)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type TagProperty.
-func (t *TagProperty) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type TriggerParameters.
+func (t *TriggerParameters) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", t, err)
@@ -6536,20 +7686,20 @@ func (t *TagProperty) UnmarshalJSON(data []byte) error {
for key, val := range rawMsg {
var err error
switch key {
- case "objectIdentifier":
- err = unpopulate(val, "ObjectIdentifier", &t.ObjectIdentifier)
+ case "endBy":
+ err = unpopulateDateTimeRFC3339(val, "EndBy", &t.EndBy)
delete(rawMsg, key)
- case "tag":
- err = unpopulate(val, "Tag", &t.Tag)
+ case "interval":
+ err = unpopulate(val, "Interval", &t.Interval)
delete(rawMsg, key)
- case "tenantId":
- err = unpopulate(val, "TenantID", &t.TenantID)
+ case "intervalUnit":
+ err = unpopulate(val, "IntervalUnit", &t.IntervalUnit)
delete(rawMsg, key)
- case "timestamp":
- err = unpopulateDateTimeRFC3339(val, "Timestamp", &t.Timestamp)
+ case "startFrom":
+ err = unpopulateDateTimeRFC3339(val, "StartFrom", &t.StartFrom)
delete(rawMsg, key)
- case "upn":
- err = unpopulate(val, "Upn", &t.Upn)
+ case "startOn":
+ err = unpopulateDateTimeRFC3339(val, "StartOn", &t.StartOn)
delete(rawMsg, key)
}
if err != nil {
@@ -6559,19 +7709,19 @@ func (t *TagProperty) UnmarshalJSON(data []byte) error {
return nil
}
-// MarshalJSON implements the json.Marshaller interface for type TrackedResource.
-func (t TrackedResource) MarshalJSON() ([]byte, error) {
+// MarshalJSON implements the json.Marshaller interface for type TriggerParametersUpdate.
+func (t TriggerParametersUpdate) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
- populate(objectMap, "id", t.ID)
- populate(objectMap, "location", t.Location)
- populate(objectMap, "name", t.Name)
- populate(objectMap, "tags", t.Tags)
- populate(objectMap, "type", t.Type)
+ populateDateTimeRFC3339(objectMap, "endBy", t.EndBy)
+ populate(objectMap, "interval", t.Interval)
+ objectMap["intervalUnit"] = "Days"
+ populateDateTimeRFC3339(objectMap, "startFrom", t.StartFrom)
+ populateDateTimeRFC3339(objectMap, "startOn", t.StartOn)
return json.Marshal(objectMap)
}
-// UnmarshalJSON implements the json.Unmarshaller interface for type TrackedResource.
-func (t *TrackedResource) UnmarshalJSON(data []byte) error {
+// UnmarshalJSON implements the json.Unmarshaller interface for type TriggerParametersUpdate.
+func (t *TriggerParametersUpdate) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", t, err)
@@ -6579,20 +7729,20 @@ func (t *TrackedResource) UnmarshalJSON(data []byte) error {
for key, val := range rawMsg {
var err error
switch key {
- case "id":
- err = unpopulate(val, "ID", &t.ID)
+ case "endBy":
+ err = unpopulateDateTimeRFC3339(val, "EndBy", &t.EndBy)
delete(rawMsg, key)
- case "location":
- err = unpopulate(val, "Location", &t.Location)
+ case "interval":
+ err = unpopulate(val, "Interval", &t.Interval)
delete(rawMsg, key)
- case "name":
- err = unpopulate(val, "Name", &t.Name)
+ case "intervalUnit":
+ err = unpopulate(val, "IntervalUnit", &t.IntervalUnit)
delete(rawMsg, key)
- case "tags":
- err = unpopulate(val, "Tags", &t.Tags)
+ case "startFrom":
+ err = unpopulateDateTimeRFC3339(val, "StartFrom", &t.StartFrom)
delete(rawMsg, key)
- case "type":
- err = unpopulate(val, "Type", &t.Type)
+ case "startOn":
+ err = unpopulateDateTimeRFC3339(val, "StartOn", &t.StartOn)
delete(rawMsg, key)
}
if err != nil {
@@ -6841,7 +7991,7 @@ func populateAny(m map[string]any, k string, v any) {
}
func unpopulate(data json.RawMessage, fn string, v any) error {
- if data == nil {
+ if data == nil || string(data) == "null" {
return nil
}
if err := json.Unmarshal(data, v); err != nil {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/networksecurityperimeterconfigurations_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/networksecurityperimeterconfigurations_client.go
new file mode 100644
index 0000000000..63c1116b44
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/networksecurityperimeterconfigurations_client.go
@@ -0,0 +1,265 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armstorage
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strings"
+)
+
+// NetworkSecurityPerimeterConfigurationsClient contains the methods for the NetworkSecurityPerimeterConfigurations group.
+// Don't use this type directly, use NewNetworkSecurityPerimeterConfigurationsClient() instead.
+type NetworkSecurityPerimeterConfigurationsClient struct {
+ internal *arm.Client
+ subscriptionID string
+}
+
+// NewNetworkSecurityPerimeterConfigurationsClient creates a new instance of NetworkSecurityPerimeterConfigurationsClient with the specified values.
+// - subscriptionID - The ID of the target subscription.
+// - credential - used to authorize requests. Usually a credential from azidentity.
+// - options - pass nil to accept the default values.
+func NewNetworkSecurityPerimeterConfigurationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*NetworkSecurityPerimeterConfigurationsClient, error) {
+ cl, err := arm.NewClient(moduleName, moduleVersion, credential, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &NetworkSecurityPerimeterConfigurationsClient{
+ subscriptionID: subscriptionID,
+ internal: cl,
+ }
+ return client, nil
+}
+
+// Get - Gets effective NetworkSecurityPerimeterConfiguration for association
+// If the operation fails it returns an *azcore.ResponseError type.
+//
+// Generated from API version 2023-05-01
+// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
+// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
+// 3 and 24 characters in length and use numbers and lower-case letters only.
+// - networkSecurityPerimeterConfigurationName - The name for Network Security Perimeter configuration
+// - options - NetworkSecurityPerimeterConfigurationsClientGetOptions contains the optional parameters for the NetworkSecurityPerimeterConfigurationsClient.Get
+// method.
+func (client *NetworkSecurityPerimeterConfigurationsClient) Get(ctx context.Context, resourceGroupName string, accountName string, networkSecurityPerimeterConfigurationName string, options *NetworkSecurityPerimeterConfigurationsClientGetOptions) (NetworkSecurityPerimeterConfigurationsClientGetResponse, error) {
+ var err error
+ const operationName = "NetworkSecurityPerimeterConfigurationsClient.Get"
+ ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName)
+ ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil)
+ defer func() { endSpan(err) }()
+ req, err := client.getCreateRequest(ctx, resourceGroupName, accountName, networkSecurityPerimeterConfigurationName, options)
+ if err != nil {
+ return NetworkSecurityPerimeterConfigurationsClientGetResponse{}, err
+ }
+ httpResp, err := client.internal.Pipeline().Do(req)
+ if err != nil {
+ return NetworkSecurityPerimeterConfigurationsClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(httpResp, http.StatusOK) {
+ err = runtime.NewResponseError(httpResp)
+ return NetworkSecurityPerimeterConfigurationsClientGetResponse{}, err
+ }
+ resp, err := client.getHandleResponse(httpResp)
+ return resp, err
+}
+
+// getCreateRequest creates the Get request.
+func (client *NetworkSecurityPerimeterConfigurationsClient) getCreateRequest(ctx context.Context, resourceGroupName string, accountName string, networkSecurityPerimeterConfigurationName string, options *NetworkSecurityPerimeterConfigurationsClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/networkSecurityPerimeterConfigurations/{networkSecurityPerimeterConfigurationName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if accountName == "" {
+ return nil, errors.New("parameter accountName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName))
+ if networkSecurityPerimeterConfigurationName == "" {
+ return nil, errors.New("parameter networkSecurityPerimeterConfigurationName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{networkSecurityPerimeterConfigurationName}", url.PathEscape(networkSecurityPerimeterConfigurationName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2023-05-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *NetworkSecurityPerimeterConfigurationsClient) getHandleResponse(resp *http.Response) (NetworkSecurityPerimeterConfigurationsClientGetResponse, error) {
+ result := NetworkSecurityPerimeterConfigurationsClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.NetworkSecurityPerimeterConfiguration); err != nil {
+ return NetworkSecurityPerimeterConfigurationsClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListPager - Gets list of effective NetworkSecurityPerimeterConfiguration for storage account
+//
+// Generated from API version 2023-05-01
+// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
+// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
+// 3 and 24 characters in length and use numbers and lower-case letters only.
+// - options - NetworkSecurityPerimeterConfigurationsClientListOptions contains the optional parameters for the NetworkSecurityPerimeterConfigurationsClient.NewListPager
+// method.
+func (client *NetworkSecurityPerimeterConfigurationsClient) NewListPager(resourceGroupName string, accountName string, options *NetworkSecurityPerimeterConfigurationsClientListOptions) *runtime.Pager[NetworkSecurityPerimeterConfigurationsClientListResponse] {
+ return runtime.NewPager(runtime.PagingHandler[NetworkSecurityPerimeterConfigurationsClientListResponse]{
+ More: func(page NetworkSecurityPerimeterConfigurationsClientListResponse) bool {
+ return false
+ },
+ Fetcher: func(ctx context.Context, page *NetworkSecurityPerimeterConfigurationsClientListResponse) (NetworkSecurityPerimeterConfigurationsClientListResponse, error) {
+ ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "NetworkSecurityPerimeterConfigurationsClient.NewListPager")
+ req, err := client.listCreateRequest(ctx, resourceGroupName, accountName, options)
+ if err != nil {
+ return NetworkSecurityPerimeterConfigurationsClientListResponse{}, err
+ }
+ resp, err := client.internal.Pipeline().Do(req)
+ if err != nil {
+ return NetworkSecurityPerimeterConfigurationsClientListResponse{}, err
+ }
+ if !runtime.HasStatusCode(resp, http.StatusOK) {
+ return NetworkSecurityPerimeterConfigurationsClientListResponse{}, runtime.NewResponseError(resp)
+ }
+ return client.listHandleResponse(resp)
+ },
+ Tracer: client.internal.Tracer(),
+ })
+}
+
+// listCreateRequest creates the List request.
+func (client *NetworkSecurityPerimeterConfigurationsClient) listCreateRequest(ctx context.Context, resourceGroupName string, accountName string, options *NetworkSecurityPerimeterConfigurationsClientListOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/networkSecurityPerimeterConfigurations"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if accountName == "" {
+ return nil, errors.New("parameter accountName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2023-05-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *NetworkSecurityPerimeterConfigurationsClient) listHandleResponse(resp *http.Response) (NetworkSecurityPerimeterConfigurationsClientListResponse, error) {
+ result := NetworkSecurityPerimeterConfigurationsClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.NetworkSecurityPerimeterConfigurationList); err != nil {
+ return NetworkSecurityPerimeterConfigurationsClientListResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginReconcile - Refreshes any information about the association.
+// If the operation fails it returns an *azcore.ResponseError type.
+//
+// Generated from API version 2023-05-01
+// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
+// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
+// 3 and 24 characters in length and use numbers and lower-case letters only.
+// - networkSecurityPerimeterConfigurationName - The name for Network Security Perimeter configuration
+// - options - NetworkSecurityPerimeterConfigurationsClientBeginReconcileOptions contains the optional parameters for the NetworkSecurityPerimeterConfigurationsClient.BeginReconcile
+// method.
+func (client *NetworkSecurityPerimeterConfigurationsClient) BeginReconcile(ctx context.Context, resourceGroupName string, accountName string, networkSecurityPerimeterConfigurationName string, options *NetworkSecurityPerimeterConfigurationsClientBeginReconcileOptions) (*runtime.Poller[NetworkSecurityPerimeterConfigurationsClientReconcileResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.reconcile(ctx, resourceGroupName, accountName, networkSecurityPerimeterConfigurationName, options)
+ if err != nil {
+ return nil, err
+ }
+ poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[NetworkSecurityPerimeterConfigurationsClientReconcileResponse]{
+ FinalStateVia: runtime.FinalStateViaLocation,
+ Tracer: client.internal.Tracer(),
+ })
+ return poller, err
+ } else {
+ return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[NetworkSecurityPerimeterConfigurationsClientReconcileResponse]{
+ Tracer: client.internal.Tracer(),
+ })
+ }
+}
+
+// Reconcile - Refreshes any information about the association.
+// If the operation fails it returns an *azcore.ResponseError type.
+//
+// Generated from API version 2023-05-01
+func (client *NetworkSecurityPerimeterConfigurationsClient) reconcile(ctx context.Context, resourceGroupName string, accountName string, networkSecurityPerimeterConfigurationName string, options *NetworkSecurityPerimeterConfigurationsClientBeginReconcileOptions) (*http.Response, error) {
+ var err error
+ const operationName = "NetworkSecurityPerimeterConfigurationsClient.BeginReconcile"
+ ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName)
+ ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil)
+ defer func() { endSpan(err) }()
+ req, err := client.reconcileCreateRequest(ctx, resourceGroupName, accountName, networkSecurityPerimeterConfigurationName, options)
+ if err != nil {
+ return nil, err
+ }
+ httpResp, err := client.internal.Pipeline().Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(httpResp, http.StatusAccepted) {
+ err = runtime.NewResponseError(httpResp)
+ return nil, err
+ }
+ return httpResp, nil
+}
+
+// reconcileCreateRequest creates the Reconcile request.
+func (client *NetworkSecurityPerimeterConfigurationsClient) reconcileCreateRequest(ctx context.Context, resourceGroupName string, accountName string, networkSecurityPerimeterConfigurationName string, options *NetworkSecurityPerimeterConfigurationsClientBeginReconcileOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/networkSecurityPerimeterConfigurations/{networkSecurityPerimeterConfigurationName}/reconcile"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if accountName == "" {
+ return nil, errors.New("parameter accountName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName))
+ if networkSecurityPerimeterConfigurationName == "" {
+ return nil, errors.New("parameter networkSecurityPerimeterConfigurationName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{networkSecurityPerimeterConfigurationName}", url.PathEscape(networkSecurityPerimeterConfigurationName))
+ req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2023-05-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/objectreplicationpolicies_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/objectreplicationpolicies_client.go
index dc91e8ca35..2cf592f475 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/objectreplicationpolicies_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/objectreplicationpolicies_client.go
@@ -46,7 +46,7 @@ func NewObjectReplicationPoliciesClient(subscriptionID string, credential azcore
// CreateOrUpdate - Create or update the object replication policy of the storage account.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -102,7 +102,7 @@ func (client *ObjectReplicationPoliciesClient) createOrUpdateCreateRequest(ctx c
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, properties); err != nil {
@@ -123,7 +123,7 @@ func (client *ObjectReplicationPoliciesClient) createOrUpdateHandleResponse(resp
// Delete - Deletes the object replication policy associated with the specified storage account.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -177,7 +177,7 @@ func (client *ObjectReplicationPoliciesClient) deleteCreateRequest(ctx context.C
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -186,7 +186,7 @@ func (client *ObjectReplicationPoliciesClient) deleteCreateRequest(ctx context.C
// Get - Get the object replication policy of the storage account by policy ID.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -241,7 +241,7 @@ func (client *ObjectReplicationPoliciesClient) getCreateRequest(ctx context.Cont
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -258,7 +258,7 @@ func (client *ObjectReplicationPoliciesClient) getHandleResponse(resp *http.Resp
// NewListPager - List the object replication policies associated with the storage account.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -308,7 +308,7 @@ func (client *ObjectReplicationPoliciesClient) listCreateRequest(ctx context.Con
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/operations_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/operations_client.go
index 74621df131..8ceebe5de3 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/operations_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/operations_client.go
@@ -39,7 +39,7 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO
// NewListPager - Lists all of the available Storage Rest API operations.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] {
return runtime.NewPager(runtime.PagingHandler[OperationsClientListResponse]{
@@ -73,7 +73,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options *
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/options.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/options.go
index d143bdb48b..fec991677c 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/options.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/options.go
@@ -392,7 +392,14 @@ type LocalUsersClientListKeysOptions struct {
// LocalUsersClientListOptions contains the optional parameters for the LocalUsersClient.NewListPager method.
type LocalUsersClientListOptions struct {
- // placeholder for future optional parameters
+ // Optional. When specified, only local user names starting with the filter will be listed.
+ Filter *string
+
+ // Optional, when specified, will list local users enabled for the specific protocol. Lists all users by default.
+ Include *ListLocalUserIncludeParam
+
+ // Optional, specifies the maximum number of local users that will be included in the list response.
+ Maxpagesize *int32
}
// LocalUsersClientRegeneratePasswordOptions contains the optional parameters for the LocalUsersClient.RegeneratePassword
@@ -417,6 +424,25 @@ type ManagementPoliciesClientGetOptions struct {
// placeholder for future optional parameters
}
+// NetworkSecurityPerimeterConfigurationsClientBeginReconcileOptions contains the optional parameters for the NetworkSecurityPerimeterConfigurationsClient.BeginReconcile
+// method.
+type NetworkSecurityPerimeterConfigurationsClientBeginReconcileOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// NetworkSecurityPerimeterConfigurationsClientGetOptions contains the optional parameters for the NetworkSecurityPerimeterConfigurationsClient.Get
+// method.
+type NetworkSecurityPerimeterConfigurationsClientGetOptions struct {
+ // placeholder for future optional parameters
+}
+
+// NetworkSecurityPerimeterConfigurationsClientListOptions contains the optional parameters for the NetworkSecurityPerimeterConfigurationsClient.NewListPager
+// method.
+type NetworkSecurityPerimeterConfigurationsClientListOptions struct {
+ // placeholder for future optional parameters
+}
+
// ObjectReplicationPoliciesClientCreateOrUpdateOptions contains the optional parameters for the ObjectReplicationPoliciesClient.CreateOrUpdate
// method.
type ObjectReplicationPoliciesClientCreateOrUpdateOptions struct {
@@ -571,6 +597,59 @@ type TableServicesClientSetServicePropertiesOptions struct {
// placeholder for future optional parameters
}
+// TaskAssignmentInstancesReportClientListOptions contains the optional parameters for the TaskAssignmentInstancesReportClient.NewListPager
+// method.
+type TaskAssignmentInstancesReportClientListOptions struct {
+ // Optional. When specified, it can be used to query using reporting properties. See Constructing Filter Strings
+ // [https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#constructing-filter-strings] for
+ // details.
+ Filter *string
+
+ // Optional, specifies the maximum number of storage task assignment instances to be included in the list response.
+ Maxpagesize *int32
+}
+
+// TaskAssignmentsClientBeginCreateOptions contains the optional parameters for the TaskAssignmentsClient.BeginCreate method.
+type TaskAssignmentsClientBeginCreateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// TaskAssignmentsClientBeginDeleteOptions contains the optional parameters for the TaskAssignmentsClient.BeginDelete method.
+type TaskAssignmentsClientBeginDeleteOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// TaskAssignmentsClientBeginUpdateOptions contains the optional parameters for the TaskAssignmentsClient.BeginUpdate method.
+type TaskAssignmentsClientBeginUpdateOptions struct {
+ // Resumes the LRO from the provided token.
+ ResumeToken string
+}
+
+// TaskAssignmentsClientGetOptions contains the optional parameters for the TaskAssignmentsClient.Get method.
+type TaskAssignmentsClientGetOptions struct {
+ // placeholder for future optional parameters
+}
+
+// TaskAssignmentsClientListOptions contains the optional parameters for the TaskAssignmentsClient.NewListPager method.
+type TaskAssignmentsClientListOptions struct {
+ // Optional, specifies the maximum number of storage task assignment Ids to be included in the list response.
+ Maxpagesize *int32
+}
+
+// TaskAssignmentsInstancesReportClientListOptions contains the optional parameters for the TaskAssignmentsInstancesReportClient.NewListPager
+// method.
+type TaskAssignmentsInstancesReportClientListOptions struct {
+ // Optional. When specified, it can be used to query using reporting properties. See Constructing Filter Strings
+ // [https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#constructing-filter-strings] for
+ // details.
+ Filter *string
+
+ // Optional, specifies the maximum number of storage task assignment instances to be included in the list response.
+ Maxpagesize *int32
+}
+
// UsagesClientListByLocationOptions contains the optional parameters for the UsagesClient.NewListByLocationPager method.
type UsagesClientListByLocationOptions struct {
// placeholder for future optional parameters
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/privateendpointconnections_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/privateendpointconnections_client.go
index cde0f2d21d..d55e9f5e3b 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/privateendpointconnections_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/privateendpointconnections_client.go
@@ -46,7 +46,7 @@ func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcor
// Delete - Deletes the specified private endpoint connection associated with the storage account.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -98,7 +98,7 @@ func (client *PrivateEndpointConnectionsClient) deleteCreateRequest(ctx context.
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -107,7 +107,7 @@ func (client *PrivateEndpointConnectionsClient) deleteCreateRequest(ctx context.
// Get - Gets the specified private endpoint connection associated with the storage account.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -160,7 +160,7 @@ func (client *PrivateEndpointConnectionsClient) getCreateRequest(ctx context.Con
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -177,7 +177,7 @@ func (client *PrivateEndpointConnectionsClient) getHandleResponse(resp *http.Res
// NewListPager - List all the private endpoint connections associated with the storage account.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -227,7 +227,7 @@ func (client *PrivateEndpointConnectionsClient) listCreateRequest(ctx context.Co
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -245,7 +245,7 @@ func (client *PrivateEndpointConnectionsClient) listHandleResponse(resp *http.Re
// Put - Update the state of specified private endpoint connection associated with the storage account.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -299,7 +299,7 @@ func (client *PrivateEndpointConnectionsClient) putCreateRequest(ctx context.Con
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, properties); err != nil {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/privatelinkresources_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/privatelinkresources_client.go
index 7127815f09..aa95c50474 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/privatelinkresources_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/privatelinkresources_client.go
@@ -46,7 +46,7 @@ func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.Toke
// ListByStorageAccount - Gets the private link resources that need to be created for a storage account.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -94,7 +94,7 @@ func (client *PrivateLinkResourcesClient) listByStorageAccountCreateRequest(ctx
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/queue_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/queue_client.go
index 743fcc983d..ce3553b8e0 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/queue_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/queue_client.go
@@ -46,7 +46,7 @@ func NewQueueClient(subscriptionID string, credential azcore.TokenCredential, op
// Create - Creates a new queue with the specified queue name, under the specified account.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -101,7 +101,7 @@ func (client *QueueClient) createCreateRequest(ctx context.Context, resourceGrou
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, queue); err != nil {
@@ -122,7 +122,7 @@ func (client *QueueClient) createHandleResponse(resp *http.Response) (QueueClien
// Delete - Deletes the queue with the specified queue name, under the specified account if it exists.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -175,7 +175,7 @@ func (client *QueueClient) deleteCreateRequest(ctx context.Context, resourceGrou
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -184,7 +184,7 @@ func (client *QueueClient) deleteCreateRequest(ctx context.Context, resourceGrou
// Get - Gets the queue with the specified queue name, under the specified account if it exists.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -238,7 +238,7 @@ func (client *QueueClient) getCreateRequest(ctx context.Context, resourceGroupNa
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -255,7 +255,7 @@ func (client *QueueClient) getHandleResponse(resp *http.Response) (QueueClientGe
// NewListPager - Gets a list of all the queues under the specified storage account
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -303,13 +303,13 @@ func (client *QueueClient) listCreateRequest(ctx context.Context, resourceGroupN
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
- if options != nil && options.Maxpagesize != nil {
- reqQP.Set("$maxpagesize", *options.Maxpagesize)
- }
if options != nil && options.Filter != nil {
reqQP.Set("$filter", *options.Filter)
}
+ if options != nil && options.Maxpagesize != nil {
+ reqQP.Set("$maxpagesize", *options.Maxpagesize)
+ }
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -327,7 +327,7 @@ func (client *QueueClient) listHandleResponse(resp *http.Response) (QueueClientL
// Update - Creates a new queue with the specified queue name, under the specified account.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -382,7 +382,7 @@ func (client *QueueClient) updateCreateRequest(ctx context.Context, resourceGrou
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, queue); err != nil {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/queueservices_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/queueservices_client.go
index 75786fe949..8d8cbc88ea 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/queueservices_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/queueservices_client.go
@@ -47,7 +47,7 @@ func NewQueueServicesClient(subscriptionID string, credential azcore.TokenCreden
// and CORS (Cross-Origin Resource Sharing) rules.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -96,7 +96,7 @@ func (client *QueueServicesClient) getServicePropertiesCreateRequest(ctx context
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -114,7 +114,7 @@ func (client *QueueServicesClient) getServicePropertiesHandleResponse(resp *http
// List - List all queue services for the storage account
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -161,7 +161,7 @@ func (client *QueueServicesClient) listCreateRequest(ctx context.Context, resour
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -180,7 +180,7 @@ func (client *QueueServicesClient) listHandleResponse(resp *http.Response) (Queu
// and CORS (Cross-Origin Resource Sharing) rules.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -231,7 +231,7 @@ func (client *QueueServicesClient) setServicePropertiesCreateRequest(ctx context
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/response_types.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/responses.go
similarity index 89%
rename from vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/response_types.go
rename to vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/responses.go
index e5b7eb742c..e014af80f8 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/response_types.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/responses.go
@@ -369,7 +369,7 @@ type LocalUsersClientListKeysResponse struct {
// LocalUsersClientListResponse contains the response from method LocalUsersClient.NewListPager.
type LocalUsersClientListResponse struct {
- // List storage account local users.
+ // List of local users requested, and if paging is required, a URL to the next page of local users.
LocalUsers
}
@@ -396,6 +396,23 @@ type ManagementPoliciesClientGetResponse struct {
ManagementPolicy
}
+// NetworkSecurityPerimeterConfigurationsClientGetResponse contains the response from method NetworkSecurityPerimeterConfigurationsClient.Get.
+type NetworkSecurityPerimeterConfigurationsClientGetResponse struct {
+ // The Network Security Perimeter configuration resource.
+ NetworkSecurityPerimeterConfiguration
+}
+
+// NetworkSecurityPerimeterConfigurationsClientListResponse contains the response from method NetworkSecurityPerimeterConfigurationsClient.NewListPager.
+type NetworkSecurityPerimeterConfigurationsClientListResponse struct {
+ // Result of the List Network Security Perimeter configuration operation.
+ NetworkSecurityPerimeterConfigurationList
+}
+
+// NetworkSecurityPerimeterConfigurationsClientReconcileResponse contains the response from method NetworkSecurityPerimeterConfigurationsClient.BeginReconcile.
+type NetworkSecurityPerimeterConfigurationsClientReconcileResponse struct {
+ // placeholder for future response values
+}
+
// ObjectReplicationPoliciesClientCreateOrUpdateResponse contains the response from method ObjectReplicationPoliciesClient.CreateOrUpdate.
type ObjectReplicationPoliciesClientCreateOrUpdateResponse struct {
// The replication policy between two storage accounts. Multiple rules can be defined in one policy.
@@ -550,6 +567,47 @@ type TableServicesClientSetServicePropertiesResponse struct {
TableServiceProperties
}
+// TaskAssignmentInstancesReportClientListResponse contains the response from method TaskAssignmentInstancesReportClient.NewListPager.
+type TaskAssignmentInstancesReportClientListResponse struct {
+ // Fetch Storage Tasks Run Summary.
+ TaskReportSummary
+}
+
+// TaskAssignmentsClientCreateResponse contains the response from method TaskAssignmentsClient.BeginCreate.
+type TaskAssignmentsClientCreateResponse struct {
+ // The storage task assignment.
+ TaskAssignment
+}
+
+// TaskAssignmentsClientDeleteResponse contains the response from method TaskAssignmentsClient.BeginDelete.
+type TaskAssignmentsClientDeleteResponse struct {
+ // placeholder for future response values
+}
+
+// TaskAssignmentsClientGetResponse contains the response from method TaskAssignmentsClient.Get.
+type TaskAssignmentsClientGetResponse struct {
+ // The storage task assignment.
+ TaskAssignment
+}
+
+// TaskAssignmentsClientListResponse contains the response from method TaskAssignmentsClient.NewListPager.
+type TaskAssignmentsClientListResponse struct {
+ // List of storage task assignments for the storage account
+ TaskAssignmentsList
+}
+
+// TaskAssignmentsClientUpdateResponse contains the response from method TaskAssignmentsClient.BeginUpdate.
+type TaskAssignmentsClientUpdateResponse struct {
+ // The storage task assignment.
+ TaskAssignment
+}
+
+// TaskAssignmentsInstancesReportClientListResponse contains the response from method TaskAssignmentsInstancesReportClient.NewListPager.
+type TaskAssignmentsInstancesReportClientListResponse struct {
+ // Fetch Storage Tasks Run Summary.
+ TaskReportSummary
+}
+
// UsagesClientListByLocationResponse contains the response from method UsagesClient.NewListByLocationPager.
type UsagesClientListByLocationResponse struct {
// The response from the List Usages operation.
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/skus_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/skus_client.go
index db7979df36..ff08406f10 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/skus_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/skus_client.go
@@ -45,7 +45,7 @@ func NewSKUsClient(subscriptionID string, credential azcore.TokenCredential, opt
// NewListPager - Lists the available SKUs supported by Microsoft.Storage for given subscription.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - options - SKUsClientListOptions contains the optional parameters for the SKUsClient.NewListPager method.
func (client *SKUsClient) NewListPager(options *SKUsClientListOptions) *runtime.Pager[SKUsClientListResponse] {
return runtime.NewPager(runtime.PagingHandler[SKUsClientListResponse]{
@@ -83,7 +83,7 @@ func (client *SKUsClient) listCreateRequest(ctx context.Context, options *SKUsCl
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/table_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/table_client.go
index 169dd385e6..e21c38e41b 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/table_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/table_client.go
@@ -46,7 +46,7 @@ func NewTableClient(subscriptionID string, credential azcore.TokenCredential, op
// Create - Creates a new table with the specified table name, under the specified account.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -99,7 +99,7 @@ func (client *TableClient) createCreateRequest(ctx context.Context, resourceGrou
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.Parameters != nil {
@@ -123,7 +123,7 @@ func (client *TableClient) createHandleResponse(resp *http.Response) (TableClien
// Delete - Deletes the table with the specified table name, under the specified account if it exists.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -175,7 +175,7 @@ func (client *TableClient) deleteCreateRequest(ctx context.Context, resourceGrou
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -184,7 +184,7 @@ func (client *TableClient) deleteCreateRequest(ctx context.Context, resourceGrou
// Get - Gets the table with the specified table name, under the specified account if it exists.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -237,7 +237,7 @@ func (client *TableClient) getCreateRequest(ctx context.Context, resourceGroupNa
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -254,7 +254,7 @@ func (client *TableClient) getHandleResponse(resp *http.Response) (TableClientGe
// NewListPager - Gets a list of all the tables under the specified storage account
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -302,7 +302,7 @@ func (client *TableClient) listCreateRequest(ctx context.Context, resourceGroupN
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -320,7 +320,7 @@ func (client *TableClient) listHandleResponse(resp *http.Response) (TableClientL
// Update - Creates a new table with the specified table name, under the specified account.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -373,7 +373,7 @@ func (client *TableClient) updateCreateRequest(ctx context.Context, resourceGrou
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.Parameters != nil {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/tableservices_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/tableservices_client.go
index f53f5f9824..eba9a122a7 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/tableservices_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/tableservices_client.go
@@ -47,7 +47,7 @@ func NewTableServicesClient(subscriptionID string, credential azcore.TokenCreden
// and CORS (Cross-Origin Resource Sharing) rules.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -96,7 +96,7 @@ func (client *TableServicesClient) getServicePropertiesCreateRequest(ctx context
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -114,7 +114,7 @@ func (client *TableServicesClient) getServicePropertiesHandleResponse(resp *http
// List - List all table services for the storage account.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -161,7 +161,7 @@ func (client *TableServicesClient) listCreateRequest(ctx context.Context, resour
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@@ -180,7 +180,7 @@ func (client *TableServicesClient) listHandleResponse(resp *http.Response) (Tabl
// and CORS (Cross-Origin Resource Sharing) rules.
// If the operation fails it returns an *azcore.ResponseError type.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
// 3 and 24 characters in length and use numbers and lower-case letters only.
@@ -231,7 +231,7 @@ func (client *TableServicesClient) setServicePropertiesCreateRequest(ctx context
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/taskassignmentinstancesreport_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/taskassignmentinstancesreport_client.go
new file mode 100644
index 0000000000..d5c0a50e73
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/taskassignmentinstancesreport_client.go
@@ -0,0 +1,123 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armstorage
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strconv"
+ "strings"
+)
+
+// TaskAssignmentInstancesReportClient contains the methods for the StorageTaskAssignmentInstancesReport group.
+// Don't use this type directly, use NewTaskAssignmentInstancesReportClient() instead.
+type TaskAssignmentInstancesReportClient struct {
+ internal *arm.Client
+ subscriptionID string
+}
+
+// NewTaskAssignmentInstancesReportClient creates a new instance of TaskAssignmentInstancesReportClient with the specified values.
+// - subscriptionID - The ID of the target subscription.
+// - credential - used to authorize requests. Usually a credential from azidentity.
+// - options - pass nil to accept the default values.
+func NewTaskAssignmentInstancesReportClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TaskAssignmentInstancesReportClient, error) {
+ cl, err := arm.NewClient(moduleName, moduleVersion, credential, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &TaskAssignmentInstancesReportClient{
+ subscriptionID: subscriptionID,
+ internal: cl,
+ }
+ return client, nil
+}
+
+// NewListPager - Fetch the report summary of a single storage task assignment's instances
+//
+// Generated from API version 2023-05-01
+// - resourceGroupName - The name of the resource group. The name is case insensitive.
+// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
+// 3 and 24 characters in length and use numbers and lower-case letters only.
+// - storageTaskAssignmentName - The name of the storage task assignment within the specified resource group. Storage task assignment
+// names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+// - options - TaskAssignmentInstancesReportClientListOptions contains the optional parameters for the TaskAssignmentInstancesReportClient.NewListPager
+// method.
+func (client *TaskAssignmentInstancesReportClient) NewListPager(resourceGroupName string, accountName string, storageTaskAssignmentName string, options *TaskAssignmentInstancesReportClientListOptions) *runtime.Pager[TaskAssignmentInstancesReportClientListResponse] {
+ return runtime.NewPager(runtime.PagingHandler[TaskAssignmentInstancesReportClientListResponse]{
+ More: func(page TaskAssignmentInstancesReportClientListResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *TaskAssignmentInstancesReportClientListResponse) (TaskAssignmentInstancesReportClientListResponse, error) {
+ ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "TaskAssignmentInstancesReportClient.NewListPager")
+ nextLink := ""
+ if page != nil {
+ nextLink = *page.NextLink
+ }
+ resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) {
+ return client.listCreateRequest(ctx, resourceGroupName, accountName, storageTaskAssignmentName, options)
+ }, nil)
+ if err != nil {
+ return TaskAssignmentInstancesReportClientListResponse{}, err
+ }
+ return client.listHandleResponse(resp)
+ },
+ Tracer: client.internal.Tracer(),
+ })
+}
+
+// listCreateRequest creates the List request.
+func (client *TaskAssignmentInstancesReportClient) listCreateRequest(ctx context.Context, resourceGroupName string, accountName string, storageTaskAssignmentName string, options *TaskAssignmentInstancesReportClientListOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments/{storageTaskAssignmentName}/reports"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if accountName == "" {
+ return nil, errors.New("parameter accountName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName))
+ if storageTaskAssignmentName == "" {
+ return nil, errors.New("parameter storageTaskAssignmentName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{storageTaskAssignmentName}", url.PathEscape(storageTaskAssignmentName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.Filter != nil {
+ reqQP.Set("$filter", *options.Filter)
+ }
+ if options != nil && options.Maxpagesize != nil {
+ reqQP.Set("$maxpagesize", strconv.FormatInt(int64(*options.Maxpagesize), 10))
+ }
+ reqQP.Set("api-version", "2023-05-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *TaskAssignmentInstancesReportClient) listHandleResponse(resp *http.Response) (TaskAssignmentInstancesReportClientListResponse, error) {
+ result := TaskAssignmentInstancesReportClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.TaskReportSummary); err != nil {
+ return TaskAssignmentInstancesReportClientListResponse{}, err
+ }
+ return result, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/taskassignments_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/taskassignments_client.go
new file mode 100644
index 0000000000..8312677be8
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/taskassignments_client.go
@@ -0,0 +1,453 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armstorage
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strconv"
+ "strings"
+)
+
+// TaskAssignmentsClient contains the methods for the StorageTaskAssignments group.
+// Don't use this type directly, use NewTaskAssignmentsClient() instead.
+type TaskAssignmentsClient struct {
+ internal *arm.Client
+ subscriptionID string
+}
+
+// NewTaskAssignmentsClient creates a new instance of TaskAssignmentsClient with the specified values.
+// - subscriptionID - The ID of the target subscription.
+// - credential - used to authorize requests. Usually a credential from azidentity.
+// - options - pass nil to accept the default values.
+func NewTaskAssignmentsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TaskAssignmentsClient, error) {
+ cl, err := arm.NewClient(moduleName, moduleVersion, credential, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &TaskAssignmentsClient{
+ subscriptionID: subscriptionID,
+ internal: cl,
+ }
+ return client, nil
+}
+
+// BeginCreate - Asynchronously creates a new storage task assignment sub-resource with the specified parameters. If a storage
+// task assignment is already created and a subsequent create request is issued with
+// different properties, the storage task assignment properties will be updated. If a storage task assignment is already created
+// and a subsequent create or update request is issued with the exact same
+// set of properties, the request will succeed.
+// If the operation fails it returns an *azcore.ResponseError type.
+//
+// Generated from API version 2023-05-01
+// - resourceGroupName - The name of the resource group. The name is case insensitive.
+// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
+// 3 and 24 characters in length and use numbers and lower-case letters only.
+// - storageTaskAssignmentName - The name of the storage task assignment within the specified resource group. Storage task assignment
+// names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+// - parameters - The parameters to create a Storage Task Assignment.
+// - options - TaskAssignmentsClientBeginCreateOptions contains the optional parameters for the TaskAssignmentsClient.BeginCreate
+// method.
+func (client *TaskAssignmentsClient) BeginCreate(ctx context.Context, resourceGroupName string, accountName string, storageTaskAssignmentName string, parameters TaskAssignment, options *TaskAssignmentsClientBeginCreateOptions) (*runtime.Poller[TaskAssignmentsClientCreateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.create(ctx, resourceGroupName, accountName, storageTaskAssignmentName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[TaskAssignmentsClientCreateResponse]{
+ FinalStateVia: runtime.FinalStateViaLocation,
+ Tracer: client.internal.Tracer(),
+ })
+ return poller, err
+ } else {
+ return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[TaskAssignmentsClientCreateResponse]{
+ Tracer: client.internal.Tracer(),
+ })
+ }
+}
+
+// Create - Asynchronously creates a new storage task assignment sub-resource with the specified parameters. If a storage
+// task assignment is already created and a subsequent create request is issued with
+// different properties, the storage task assignment properties will be updated. If a storage task assignment is already created
+// and a subsequent create or update request is issued with the exact same
+// set of properties, the request will succeed.
+// If the operation fails it returns an *azcore.ResponseError type.
+//
+// Generated from API version 2023-05-01
+func (client *TaskAssignmentsClient) create(ctx context.Context, resourceGroupName string, accountName string, storageTaskAssignmentName string, parameters TaskAssignment, options *TaskAssignmentsClientBeginCreateOptions) (*http.Response, error) {
+ var err error
+ const operationName = "TaskAssignmentsClient.BeginCreate"
+ ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName)
+ ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil)
+ defer func() { endSpan(err) }()
+ req, err := client.createCreateRequest(ctx, resourceGroupName, accountName, storageTaskAssignmentName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ httpResp, err := client.internal.Pipeline().Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated, http.StatusAccepted) {
+ err = runtime.NewResponseError(httpResp)
+ return nil, err
+ }
+ return httpResp, nil
+}
+
+// createCreateRequest creates the Create request.
+func (client *TaskAssignmentsClient) createCreateRequest(ctx context.Context, resourceGroupName string, accountName string, storageTaskAssignmentName string, parameters TaskAssignment, options *TaskAssignmentsClientBeginCreateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments/{storageTaskAssignmentName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if accountName == "" {
+ return nil, errors.New("parameter accountName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName))
+ if storageTaskAssignmentName == "" {
+ return nil, errors.New("parameter storageTaskAssignmentName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{storageTaskAssignmentName}", url.PathEscape(storageTaskAssignmentName))
+ req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2023-05-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ if err := runtime.MarshalAsJSON(req, parameters); err != nil {
+ return nil, err
+ }
+ return req, nil
+}
+
+// BeginDelete - Delete the storage task assignment sub-resource
+// If the operation fails it returns an *azcore.ResponseError type.
+//
+// Generated from API version 2023-05-01
+// - resourceGroupName - The name of the resource group. The name is case insensitive.
+// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
+// 3 and 24 characters in length and use numbers and lower-case letters only.
+// - storageTaskAssignmentName - The name of the storage task assignment within the specified resource group. Storage task assignment
+// names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+// - options - TaskAssignmentsClientBeginDeleteOptions contains the optional parameters for the TaskAssignmentsClient.BeginDelete
+// method.
+func (client *TaskAssignmentsClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, storageTaskAssignmentName string, options *TaskAssignmentsClientBeginDeleteOptions) (*runtime.Poller[TaskAssignmentsClientDeleteResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.deleteOperation(ctx, resourceGroupName, accountName, storageTaskAssignmentName, options)
+ if err != nil {
+ return nil, err
+ }
+ poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[TaskAssignmentsClientDeleteResponse]{
+ FinalStateVia: runtime.FinalStateViaLocation,
+ Tracer: client.internal.Tracer(),
+ })
+ return poller, err
+ } else {
+ return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[TaskAssignmentsClientDeleteResponse]{
+ Tracer: client.internal.Tracer(),
+ })
+ }
+}
+
+// Delete - Delete the storage task assignment sub-resource
+// If the operation fails it returns an *azcore.ResponseError type.
+//
+// Generated from API version 2023-05-01
+func (client *TaskAssignmentsClient) deleteOperation(ctx context.Context, resourceGroupName string, accountName string, storageTaskAssignmentName string, options *TaskAssignmentsClientBeginDeleteOptions) (*http.Response, error) {
+ var err error
+ const operationName = "TaskAssignmentsClient.BeginDelete"
+ ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName)
+ ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil)
+ defer func() { endSpan(err) }()
+ req, err := client.deleteCreateRequest(ctx, resourceGroupName, accountName, storageTaskAssignmentName, options)
+ if err != nil {
+ return nil, err
+ }
+ httpResp, err := client.internal.Pipeline().Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(httpResp, http.StatusAccepted, http.StatusNoContent) {
+ err = runtime.NewResponseError(httpResp)
+ return nil, err
+ }
+ return httpResp, nil
+}
+
+// deleteCreateRequest creates the Delete request.
+func (client *TaskAssignmentsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, accountName string, storageTaskAssignmentName string, options *TaskAssignmentsClientBeginDeleteOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments/{storageTaskAssignmentName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if accountName == "" {
+ return nil, errors.New("parameter accountName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName))
+ if storageTaskAssignmentName == "" {
+ return nil, errors.New("parameter storageTaskAssignmentName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{storageTaskAssignmentName}", url.PathEscape(storageTaskAssignmentName))
+ req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2023-05-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// Get - Get the storage task assignment properties
+// If the operation fails it returns an *azcore.ResponseError type.
+//
+// Generated from API version 2023-05-01
+// - resourceGroupName - The name of the resource group. The name is case insensitive.
+// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
+// 3 and 24 characters in length and use numbers and lower-case letters only.
+// - storageTaskAssignmentName - The name of the storage task assignment within the specified resource group. Storage task assignment
+// names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+// - options - TaskAssignmentsClientGetOptions contains the optional parameters for the TaskAssignmentsClient.Get method.
+func (client *TaskAssignmentsClient) Get(ctx context.Context, resourceGroupName string, accountName string, storageTaskAssignmentName string, options *TaskAssignmentsClientGetOptions) (TaskAssignmentsClientGetResponse, error) {
+ var err error
+ const operationName = "TaskAssignmentsClient.Get"
+ ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName)
+ ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil)
+ defer func() { endSpan(err) }()
+ req, err := client.getCreateRequest(ctx, resourceGroupName, accountName, storageTaskAssignmentName, options)
+ if err != nil {
+ return TaskAssignmentsClientGetResponse{}, err
+ }
+ httpResp, err := client.internal.Pipeline().Do(req)
+ if err != nil {
+ return TaskAssignmentsClientGetResponse{}, err
+ }
+ if !runtime.HasStatusCode(httpResp, http.StatusOK) {
+ err = runtime.NewResponseError(httpResp)
+ return TaskAssignmentsClientGetResponse{}, err
+ }
+ resp, err := client.getHandleResponse(httpResp)
+ return resp, err
+}
+
+// getCreateRequest creates the Get request.
+func (client *TaskAssignmentsClient) getCreateRequest(ctx context.Context, resourceGroupName string, accountName string, storageTaskAssignmentName string, options *TaskAssignmentsClientGetOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments/{storageTaskAssignmentName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if accountName == "" {
+ return nil, errors.New("parameter accountName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName))
+ if storageTaskAssignmentName == "" {
+ return nil, errors.New("parameter storageTaskAssignmentName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{storageTaskAssignmentName}", url.PathEscape(storageTaskAssignmentName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2023-05-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// getHandleResponse handles the Get response.
+func (client *TaskAssignmentsClient) getHandleResponse(resp *http.Response) (TaskAssignmentsClientGetResponse, error) {
+ result := TaskAssignmentsClientGetResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.TaskAssignment); err != nil {
+ return TaskAssignmentsClientGetResponse{}, err
+ }
+ return result, nil
+}
+
+// NewListPager - List all the storage task assignments in an account
+//
+// Generated from API version 2023-05-01
+// - resourceGroupName - The name of the resource group. The name is case insensitive.
+// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
+// 3 and 24 characters in length and use numbers and lower-case letters only.
+// - options - TaskAssignmentsClientListOptions contains the optional parameters for the TaskAssignmentsClient.NewListPager
+// method.
+func (client *TaskAssignmentsClient) NewListPager(resourceGroupName string, accountName string, options *TaskAssignmentsClientListOptions) *runtime.Pager[TaskAssignmentsClientListResponse] {
+ return runtime.NewPager(runtime.PagingHandler[TaskAssignmentsClientListResponse]{
+ More: func(page TaskAssignmentsClientListResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *TaskAssignmentsClientListResponse) (TaskAssignmentsClientListResponse, error) {
+ ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "TaskAssignmentsClient.NewListPager")
+ nextLink := ""
+ if page != nil {
+ nextLink = *page.NextLink
+ }
+ resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) {
+ return client.listCreateRequest(ctx, resourceGroupName, accountName, options)
+ }, nil)
+ if err != nil {
+ return TaskAssignmentsClientListResponse{}, err
+ }
+ return client.listHandleResponse(resp)
+ },
+ Tracer: client.internal.Tracer(),
+ })
+}
+
+// listCreateRequest creates the List request.
+func (client *TaskAssignmentsClient) listCreateRequest(ctx context.Context, resourceGroupName string, accountName string, options *TaskAssignmentsClientListOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if accountName == "" {
+ return nil, errors.New("parameter accountName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.Maxpagesize != nil {
+ reqQP.Set("$maxpagesize", strconv.FormatInt(int64(*options.Maxpagesize), 10))
+ }
+ reqQP.Set("api-version", "2023-05-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *TaskAssignmentsClient) listHandleResponse(resp *http.Response) (TaskAssignmentsClientListResponse, error) {
+ result := TaskAssignmentsClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.TaskAssignmentsList); err != nil {
+ return TaskAssignmentsClientListResponse{}, err
+ }
+ return result, nil
+}
+
+// BeginUpdate - Update storage task assignment properties
+// If the operation fails it returns an *azcore.ResponseError type.
+//
+// Generated from API version 2023-05-01
+// - resourceGroupName - The name of the resource group. The name is case insensitive.
+// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
+// 3 and 24 characters in length and use numbers and lower-case letters only.
+// - storageTaskAssignmentName - The name of the storage task assignment within the specified resource group. Storage task assignment
+// names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+// - parameters - The parameters to update a Storage Task Assignment.
+// - options - TaskAssignmentsClientBeginUpdateOptions contains the optional parameters for the TaskAssignmentsClient.BeginUpdate
+// method.
+func (client *TaskAssignmentsClient) BeginUpdate(ctx context.Context, resourceGroupName string, accountName string, storageTaskAssignmentName string, parameters TaskAssignmentUpdateParameters, options *TaskAssignmentsClientBeginUpdateOptions) (*runtime.Poller[TaskAssignmentsClientUpdateResponse], error) {
+ if options == nil || options.ResumeToken == "" {
+ resp, err := client.update(ctx, resourceGroupName, accountName, storageTaskAssignmentName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[TaskAssignmentsClientUpdateResponse]{
+ FinalStateVia: runtime.FinalStateViaLocation,
+ Tracer: client.internal.Tracer(),
+ })
+ return poller, err
+ } else {
+ return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[TaskAssignmentsClientUpdateResponse]{
+ Tracer: client.internal.Tracer(),
+ })
+ }
+}
+
+// Update - Update storage task assignment properties
+// If the operation fails it returns an *azcore.ResponseError type.
+//
+// Generated from API version 2023-05-01
+func (client *TaskAssignmentsClient) update(ctx context.Context, resourceGroupName string, accountName string, storageTaskAssignmentName string, parameters TaskAssignmentUpdateParameters, options *TaskAssignmentsClientBeginUpdateOptions) (*http.Response, error) {
+ var err error
+ const operationName = "TaskAssignmentsClient.BeginUpdate"
+ ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName)
+ ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil)
+ defer func() { endSpan(err) }()
+ req, err := client.updateCreateRequest(ctx, resourceGroupName, accountName, storageTaskAssignmentName, parameters, options)
+ if err != nil {
+ return nil, err
+ }
+ httpResp, err := client.internal.Pipeline().Do(req)
+ if err != nil {
+ return nil, err
+ }
+ if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) {
+ err = runtime.NewResponseError(httpResp)
+ return nil, err
+ }
+ return httpResp, nil
+}
+
+// updateCreateRequest creates the Update request.
+func (client *TaskAssignmentsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, accountName string, storageTaskAssignmentName string, parameters TaskAssignmentUpdateParameters, options *TaskAssignmentsClientBeginUpdateOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments/{storageTaskAssignmentName}"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if accountName == "" {
+ return nil, errors.New("parameter accountName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName))
+ if storageTaskAssignmentName == "" {
+ return nil, errors.New("parameter storageTaskAssignmentName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{storageTaskAssignmentName}", url.PathEscape(storageTaskAssignmentName))
+ req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ reqQP.Set("api-version", "2023-05-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ if err := runtime.MarshalAsJSON(req, parameters); err != nil {
+ return nil, err
+ }
+ return req, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/taskassignmentsinstancesreport_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/taskassignmentsinstancesreport_client.go
new file mode 100644
index 0000000000..28473744f1
--- /dev/null
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/taskassignmentsinstancesreport_client.go
@@ -0,0 +1,117 @@
+//go:build go1.18
+// +build go1.18
+
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+package armstorage
+
+import (
+ "context"
+ "errors"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
+ "net/http"
+ "net/url"
+ "strconv"
+ "strings"
+)
+
+// TaskAssignmentsInstancesReportClient contains the methods for the StorageTaskAssignmentsInstancesReport group.
+// Don't use this type directly, use NewTaskAssignmentsInstancesReportClient() instead.
+type TaskAssignmentsInstancesReportClient struct {
+ internal *arm.Client
+ subscriptionID string
+}
+
+// NewTaskAssignmentsInstancesReportClient creates a new instance of TaskAssignmentsInstancesReportClient with the specified values.
+// - subscriptionID - The ID of the target subscription.
+// - credential - used to authorize requests. Usually a credential from azidentity.
+// - options - pass nil to accept the default values.
+func NewTaskAssignmentsInstancesReportClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TaskAssignmentsInstancesReportClient, error) {
+ cl, err := arm.NewClient(moduleName, moduleVersion, credential, options)
+ if err != nil {
+ return nil, err
+ }
+ client := &TaskAssignmentsInstancesReportClient{
+ subscriptionID: subscriptionID,
+ internal: cl,
+ }
+ return client, nil
+}
+
+// NewListPager - Fetch the report summary of all the storage task assignments and instances in an account
+//
+// Generated from API version 2023-05-01
+// - resourceGroupName - The name of the resource group. The name is case insensitive.
+// - accountName - The name of the storage account within the specified resource group. Storage account names must be between
+// 3 and 24 characters in length and use numbers and lower-case letters only.
+// - options - TaskAssignmentsInstancesReportClientListOptions contains the optional parameters for the TaskAssignmentsInstancesReportClient.NewListPager
+// method.
+func (client *TaskAssignmentsInstancesReportClient) NewListPager(resourceGroupName string, accountName string, options *TaskAssignmentsInstancesReportClientListOptions) *runtime.Pager[TaskAssignmentsInstancesReportClientListResponse] {
+ return runtime.NewPager(runtime.PagingHandler[TaskAssignmentsInstancesReportClientListResponse]{
+ More: func(page TaskAssignmentsInstancesReportClientListResponse) bool {
+ return page.NextLink != nil && len(*page.NextLink) > 0
+ },
+ Fetcher: func(ctx context.Context, page *TaskAssignmentsInstancesReportClientListResponse) (TaskAssignmentsInstancesReportClientListResponse, error) {
+ ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "TaskAssignmentsInstancesReportClient.NewListPager")
+ nextLink := ""
+ if page != nil {
+ nextLink = *page.NextLink
+ }
+ resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) {
+ return client.listCreateRequest(ctx, resourceGroupName, accountName, options)
+ }, nil)
+ if err != nil {
+ return TaskAssignmentsInstancesReportClientListResponse{}, err
+ }
+ return client.listHandleResponse(resp)
+ },
+ Tracer: client.internal.Tracer(),
+ })
+}
+
+// listCreateRequest creates the List request.
+func (client *TaskAssignmentsInstancesReportClient) listCreateRequest(ctx context.Context, resourceGroupName string, accountName string, options *TaskAssignmentsInstancesReportClientListOptions) (*policy.Request, error) {
+ urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/reports"
+ if client.subscriptionID == "" {
+ return nil, errors.New("parameter client.subscriptionID cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
+ if resourceGroupName == "" {
+ return nil, errors.New("parameter resourceGroupName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
+ if accountName == "" {
+ return nil, errors.New("parameter accountName cannot be empty")
+ }
+ urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName))
+ req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath))
+ if err != nil {
+ return nil, err
+ }
+ reqQP := req.Raw().URL.Query()
+ if options != nil && options.Filter != nil {
+ reqQP.Set("$filter", *options.Filter)
+ }
+ if options != nil && options.Maxpagesize != nil {
+ reqQP.Set("$maxpagesize", strconv.FormatInt(int64(*options.Maxpagesize), 10))
+ }
+ reqQP.Set("api-version", "2023-05-01")
+ req.Raw().URL.RawQuery = reqQP.Encode()
+ req.Raw().Header["Accept"] = []string{"application/json"}
+ return req, nil
+}
+
+// listHandleResponse handles the List response.
+func (client *TaskAssignmentsInstancesReportClient) listHandleResponse(resp *http.Response) (TaskAssignmentsInstancesReportClientListResponse, error) {
+ result := TaskAssignmentsInstancesReportClientListResponse{}
+ if err := runtime.UnmarshalAsJSON(resp, &result.TaskReportSummary); err != nil {
+ return TaskAssignmentsInstancesReportClientListResponse{}, err
+ }
+ return result, nil
+}
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/time_rfc3339.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/time_rfc3339.go
index 201ffd2553..14fb2098b5 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/time_rfc3339.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/time_rfc3339.go
@@ -19,12 +19,16 @@ import (
)
// Azure reports time in UTC but it doesn't include the 'Z' time zone suffix in some cases.
-var tzOffsetRegex = regexp.MustCompile(`(Z|z|\+|-)(\d+:\d+)*"*$`)
+var tzOffsetRegex = regexp.MustCompile(`(?:Z|z|\+|-)(?:\d+:\d+)*"*$`)
const (
- utcDateTimeJSON = `"2006-01-02T15:04:05.999999999"`
- utcDateTime = "2006-01-02T15:04:05.999999999"
- dateTimeJSON = `"` + time.RFC3339Nano + `"`
+ utcDateTime = "2006-01-02T15:04:05.999999999"
+ utcDateTimeJSON = `"` + utcDateTime + `"`
+ utcDateTimeNoT = "2006-01-02 15:04:05.999999999"
+ utcDateTimeJSONNoT = `"` + utcDateTimeNoT + `"`
+ dateTimeNoT = `2006-01-02 15:04:05.999999999Z07:00`
+ dateTimeJSON = `"` + time.RFC3339Nano + `"`
+ dateTimeJSONNoT = `"` + dateTimeNoT + `"`
)
type dateTimeRFC3339 time.Time
@@ -40,17 +44,33 @@ func (t dateTimeRFC3339) MarshalText() ([]byte, error) {
}
func (t *dateTimeRFC3339) UnmarshalJSON(data []byte) error {
- layout := utcDateTimeJSON
- if tzOffsetRegex.Match(data) {
+ tzOffset := tzOffsetRegex.Match(data)
+ hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t")
+ var layout string
+ if tzOffset && hasT {
layout = dateTimeJSON
+ } else if tzOffset {
+ layout = dateTimeJSONNoT
+ } else if hasT {
+ layout = utcDateTimeJSON
+ } else {
+ layout = utcDateTimeJSONNoT
}
return t.Parse(layout, string(data))
}
func (t *dateTimeRFC3339) UnmarshalText(data []byte) error {
- layout := utcDateTime
- if tzOffsetRegex.Match(data) {
+ tzOffset := tzOffsetRegex.Match(data)
+ hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t")
+ var layout string
+ if tzOffset && hasT {
layout = time.RFC3339Nano
+ } else if tzOffset {
+ layout = dateTimeNoT
+ } else if hasT {
+ layout = utcDateTime
+ } else {
+ layout = utcDateTimeNoT
}
return t.Parse(layout, string(data))
}
@@ -61,6 +81,10 @@ func (t *dateTimeRFC3339) Parse(layout, value string) error {
return err
}
+func (t dateTimeRFC3339) String() string {
+ return time.Time(t).Format(time.RFC3339Nano)
+}
+
func populateDateTimeRFC3339(m map[string]any, k string, t *time.Time) {
if t == nil {
return
@@ -74,7 +98,7 @@ func populateDateTimeRFC3339(m map[string]any, k string, t *time.Time) {
}
func unpopulateDateTimeRFC3339(data json.RawMessage, fn string, t **time.Time) error {
- if data == nil || strings.EqualFold(string(data), "null") {
+ if data == nil || string(data) == "null" {
return nil
}
var aux dateTimeRFC3339
diff --git a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/usages_client.go b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/usages_client.go
index 2f4a974fa0..e00dba24d5 100644
--- a/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/usages_client.go
+++ b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/usages_client.go
@@ -45,7 +45,7 @@ func NewUsagesClient(subscriptionID string, credential azcore.TokenCredential, o
// NewListByLocationPager - Gets the current usage count and the limit for the resources of the location under the subscription.
//
-// Generated from API version 2023-01-01
+// Generated from API version 2023-05-01
// - location - The location of the Azure Storage resource.
// - options - UsagesClientListByLocationOptions contains the optional parameters for the UsagesClient.NewListByLocationPager
// method.
@@ -89,7 +89,7 @@ func (client *UsagesClient) listByLocationCreateRequest(ctx context.Context, loc
return nil, err
}
reqQP := req.Raw().URL.Query()
- reqQP.Set("api-version", "2023-01-01")
+ reqQP.Set("api-version", "2023-05-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
diff --git a/vendor/github.com/go-task/slim-sprig/.editorconfig b/vendor/github.com/go-task/slim-sprig/v3/.editorconfig
similarity index 100%
rename from vendor/github.com/go-task/slim-sprig/.editorconfig
rename to vendor/github.com/go-task/slim-sprig/v3/.editorconfig
diff --git a/vendor/github.com/go-task/slim-sprig/.gitattributes b/vendor/github.com/go-task/slim-sprig/v3/.gitattributes
similarity index 100%
rename from vendor/github.com/go-task/slim-sprig/.gitattributes
rename to vendor/github.com/go-task/slim-sprig/v3/.gitattributes
diff --git a/vendor/github.com/go-task/slim-sprig/.gitignore b/vendor/github.com/go-task/slim-sprig/v3/.gitignore
similarity index 100%
rename from vendor/github.com/go-task/slim-sprig/.gitignore
rename to vendor/github.com/go-task/slim-sprig/v3/.gitignore
diff --git a/vendor/github.com/go-task/slim-sprig/CHANGELOG.md b/vendor/github.com/go-task/slim-sprig/v3/CHANGELOG.md
similarity index 95%
rename from vendor/github.com/go-task/slim-sprig/CHANGELOG.md
rename to vendor/github.com/go-task/slim-sprig/v3/CHANGELOG.md
index 61d8ebffc3..2ce45dd4ec 100644
--- a/vendor/github.com/go-task/slim-sprig/CHANGELOG.md
+++ b/vendor/github.com/go-task/slim-sprig/v3/CHANGELOG.md
@@ -1,5 +1,24 @@
# Changelog
+## Release 3.2.3 (2022-11-29)
+
+### Changed
+
+- Updated docs (thanks @book987 @aJetHorn @neelayu @pellizzetti @apricote @SaigyoujiYuyuko233 @AlekSi)
+- #348: Updated huandu/xstrings which fixed a snake case bug (thanks @yxxhero)
+- #353: Updated masterminds/semver which included bug fixes
+- #354: Updated golang.org/x/crypto which included bug fixes
+
+## Release 3.2.2 (2021-02-04)
+
+This is a re-release of 3.2.1 to satisfy something with the Go module system.
+
+## Release 3.2.1 (2021-02-04)
+
+### Changed
+
+- Upgraded `Masterminds/goutils` to `v1.1.1`. see the [Security Advisory](https://github.com/Masterminds/goutils/security/advisories/GHSA-xg2h-wx96-xgxr)
+
## Release 3.2.0 (2020-12-14)
### Added
diff --git a/vendor/github.com/go-task/slim-sprig/LICENSE.txt b/vendor/github.com/go-task/slim-sprig/v3/LICENSE.txt
similarity index 100%
rename from vendor/github.com/go-task/slim-sprig/LICENSE.txt
rename to vendor/github.com/go-task/slim-sprig/v3/LICENSE.txt
diff --git a/vendor/github.com/go-task/slim-sprig/README.md b/vendor/github.com/go-task/slim-sprig/v3/README.md
similarity index 88%
rename from vendor/github.com/go-task/slim-sprig/README.md
rename to vendor/github.com/go-task/slim-sprig/v3/README.md
index 72579471ff..b5ab564254 100644
--- a/vendor/github.com/go-task/slim-sprig/README.md
+++ b/vendor/github.com/go-task/slim-sprig/v3/README.md
@@ -1,4 +1,4 @@
-# Slim-Sprig: Template functions for Go templates [![GoDoc](https://godoc.org/github.com/go-task/slim-sprig?status.svg)](https://godoc.org/github.com/go-task/slim-sprig) [![Go Report Card](https://goreportcard.com/badge/github.com/go-task/slim-sprig)](https://goreportcard.com/report/github.com/go-task/slim-sprig)
+# Slim-Sprig: Template functions for Go templates [![Go Reference](https://pkg.go.dev/badge/github.com/go-task/slim-sprig/v3.svg)](https://pkg.go.dev/github.com/go-task/slim-sprig/v3)
Slim-Sprig is a fork of [Sprig](https://github.com/Masterminds/sprig), but with
all functions that depend on external (non standard library) or crypto packages
diff --git a/vendor/github.com/go-task/slim-sprig/Taskfile.yml b/vendor/github.com/go-task/slim-sprig/v3/Taskfile.yml
similarity index 89%
rename from vendor/github.com/go-task/slim-sprig/Taskfile.yml
rename to vendor/github.com/go-task/slim-sprig/v3/Taskfile.yml
index cdcfd223b7..8e6346bb19 100644
--- a/vendor/github.com/go-task/slim-sprig/Taskfile.yml
+++ b/vendor/github.com/go-task/slim-sprig/v3/Taskfile.yml
@@ -1,6 +1,6 @@
# https://taskfile.dev
-version: '2'
+version: '3'
tasks:
default:
diff --git a/vendor/github.com/go-task/slim-sprig/crypto.go b/vendor/github.com/go-task/slim-sprig/v3/crypto.go
similarity index 100%
rename from vendor/github.com/go-task/slim-sprig/crypto.go
rename to vendor/github.com/go-task/slim-sprig/v3/crypto.go
diff --git a/vendor/github.com/go-task/slim-sprig/date.go b/vendor/github.com/go-task/slim-sprig/v3/date.go
similarity index 100%
rename from vendor/github.com/go-task/slim-sprig/date.go
rename to vendor/github.com/go-task/slim-sprig/v3/date.go
diff --git a/vendor/github.com/go-task/slim-sprig/defaults.go b/vendor/github.com/go-task/slim-sprig/v3/defaults.go
similarity index 100%
rename from vendor/github.com/go-task/slim-sprig/defaults.go
rename to vendor/github.com/go-task/slim-sprig/v3/defaults.go
diff --git a/vendor/github.com/go-task/slim-sprig/dict.go b/vendor/github.com/go-task/slim-sprig/v3/dict.go
similarity index 100%
rename from vendor/github.com/go-task/slim-sprig/dict.go
rename to vendor/github.com/go-task/slim-sprig/v3/dict.go
diff --git a/vendor/github.com/go-task/slim-sprig/doc.go b/vendor/github.com/go-task/slim-sprig/v3/doc.go
similarity index 100%
rename from vendor/github.com/go-task/slim-sprig/doc.go
rename to vendor/github.com/go-task/slim-sprig/v3/doc.go
diff --git a/vendor/github.com/go-task/slim-sprig/functions.go b/vendor/github.com/go-task/slim-sprig/v3/functions.go
similarity index 100%
rename from vendor/github.com/go-task/slim-sprig/functions.go
rename to vendor/github.com/go-task/slim-sprig/v3/functions.go
diff --git a/vendor/github.com/go-task/slim-sprig/list.go b/vendor/github.com/go-task/slim-sprig/v3/list.go
similarity index 100%
rename from vendor/github.com/go-task/slim-sprig/list.go
rename to vendor/github.com/go-task/slim-sprig/v3/list.go
diff --git a/vendor/github.com/go-task/slim-sprig/network.go b/vendor/github.com/go-task/slim-sprig/v3/network.go
similarity index 100%
rename from vendor/github.com/go-task/slim-sprig/network.go
rename to vendor/github.com/go-task/slim-sprig/v3/network.go
diff --git a/vendor/github.com/go-task/slim-sprig/numeric.go b/vendor/github.com/go-task/slim-sprig/v3/numeric.go
similarity index 100%
rename from vendor/github.com/go-task/slim-sprig/numeric.go
rename to vendor/github.com/go-task/slim-sprig/v3/numeric.go
diff --git a/vendor/github.com/go-task/slim-sprig/reflect.go b/vendor/github.com/go-task/slim-sprig/v3/reflect.go
similarity index 100%
rename from vendor/github.com/go-task/slim-sprig/reflect.go
rename to vendor/github.com/go-task/slim-sprig/v3/reflect.go
diff --git a/vendor/github.com/go-task/slim-sprig/regex.go b/vendor/github.com/go-task/slim-sprig/v3/regex.go
similarity index 100%
rename from vendor/github.com/go-task/slim-sprig/regex.go
rename to vendor/github.com/go-task/slim-sprig/v3/regex.go
diff --git a/vendor/github.com/go-task/slim-sprig/strings.go b/vendor/github.com/go-task/slim-sprig/v3/strings.go
similarity index 100%
rename from vendor/github.com/go-task/slim-sprig/strings.go
rename to vendor/github.com/go-task/slim-sprig/v3/strings.go
diff --git a/vendor/github.com/go-task/slim-sprig/url.go b/vendor/github.com/go-task/slim-sprig/v3/url.go
similarity index 100%
rename from vendor/github.com/go-task/slim-sprig/url.go
rename to vendor/github.com/go-task/slim-sprig/v3/url.go
diff --git a/vendor/github.com/google/pprof/profile/encode.go b/vendor/github.com/google/pprof/profile/encode.go
index 182c926b90..860bb304c3 100644
--- a/vendor/github.com/google/pprof/profile/encode.go
+++ b/vendor/github.com/google/pprof/profile/encode.go
@@ -530,6 +530,7 @@ func (p *Line) decoder() []decoder {
func (p *Line) encode(b *buffer) {
encodeUint64Opt(b, 1, p.functionIDX)
encodeInt64Opt(b, 2, p.Line)
+ encodeInt64Opt(b, 3, p.Column)
}
var lineDecoder = []decoder{
@@ -538,6 +539,8 @@ var lineDecoder = []decoder{
func(b *buffer, m message) error { return decodeUint64(b, &m.(*Line).functionIDX) },
// optional int64 line = 2
func(b *buffer, m message) error { return decodeInt64(b, &m.(*Line).Line) },
+ // optional int64 column = 3
+ func(b *buffer, m message) error { return decodeInt64(b, &m.(*Line).Column) },
}
func (p *Function) decoder() []decoder {
diff --git a/vendor/github.com/google/pprof/profile/legacy_java_profile.go b/vendor/github.com/google/pprof/profile/legacy_java_profile.go
index 91f45e53c6..4580bab183 100644
--- a/vendor/github.com/google/pprof/profile/legacy_java_profile.go
+++ b/vendor/github.com/google/pprof/profile/legacy_java_profile.go
@@ -56,7 +56,7 @@ func javaCPUProfile(b []byte, period int64, parse func(b []byte) (uint64, []byte
}
// Strip out addresses for better merge.
- if err = p.Aggregate(true, true, true, true, false); err != nil {
+ if err = p.Aggregate(true, true, true, true, false, false); err != nil {
return nil, err
}
@@ -99,7 +99,7 @@ func parseJavaProfile(b []byte) (*Profile, error) {
}
// Strip out addresses for better merge.
- if err = p.Aggregate(true, true, true, true, false); err != nil {
+ if err = p.Aggregate(true, true, true, true, false, false); err != nil {
return nil, err
}
diff --git a/vendor/github.com/google/pprof/profile/merge.go b/vendor/github.com/google/pprof/profile/merge.go
index 4b66282cb8..eee0132e74 100644
--- a/vendor/github.com/google/pprof/profile/merge.go
+++ b/vendor/github.com/google/pprof/profile/merge.go
@@ -326,12 +326,13 @@ func (l *Location) key() locationKey {
key.addr -= l.Mapping.Start
key.mappingID = l.Mapping.ID
}
- lines := make([]string, len(l.Line)*2)
+ lines := make([]string, len(l.Line)*3)
for i, line := range l.Line {
if line.Function != nil {
lines[i*2] = strconv.FormatUint(line.Function.ID, 16)
}
lines[i*2+1] = strconv.FormatInt(line.Line, 16)
+ lines[i*2+2] = strconv.FormatInt(line.Column, 16)
}
key.lines = strings.Join(lines, "|")
return key
@@ -418,6 +419,7 @@ func (pm *profileMerger) mapLine(src Line) Line {
ln := Line{
Function: pm.mapFunction(src.Function),
Line: src.Line,
+ Column: src.Column,
}
return ln
}
diff --git a/vendor/github.com/google/pprof/profile/profile.go b/vendor/github.com/google/pprof/profile/profile.go
index 60ef7e9268..62df80a556 100644
--- a/vendor/github.com/google/pprof/profile/profile.go
+++ b/vendor/github.com/google/pprof/profile/profile.go
@@ -145,6 +145,7 @@ type Location struct {
type Line struct {
Function *Function
Line int64
+ Column int64
functionIDX uint64
}
@@ -436,7 +437,7 @@ func (p *Profile) CheckValid() error {
// Aggregate merges the locations in the profile into equivalence
// classes preserving the request attributes. It also updates the
// samples to point to the merged locations.
-func (p *Profile) Aggregate(inlineFrame, function, filename, linenumber, address bool) error {
+func (p *Profile) Aggregate(inlineFrame, function, filename, linenumber, columnnumber, address bool) error {
for _, m := range p.Mapping {
m.HasInlineFrames = m.HasInlineFrames && inlineFrame
m.HasFunctions = m.HasFunctions && function
@@ -458,7 +459,7 @@ func (p *Profile) Aggregate(inlineFrame, function, filename, linenumber, address
}
// Aggregate locations
- if !inlineFrame || !address || !linenumber {
+ if !inlineFrame || !address || !linenumber || !columnnumber {
for _, l := range p.Location {
if !inlineFrame && len(l.Line) > 1 {
l.Line = l.Line[len(l.Line)-1:]
@@ -466,6 +467,12 @@ func (p *Profile) Aggregate(inlineFrame, function, filename, linenumber, address
if !linenumber {
for i := range l.Line {
l.Line[i].Line = 0
+ l.Line[i].Column = 0
+ }
+ }
+ if !columnnumber {
+ for i := range l.Line {
+ l.Line[i].Column = 0
}
}
if !address {
@@ -627,10 +634,11 @@ func (l *Location) string() string {
for li := range l.Line {
lnStr := "??"
if fn := l.Line[li].Function; fn != nil {
- lnStr = fmt.Sprintf("%s %s:%d s=%d",
+ lnStr = fmt.Sprintf("%s %s:%d:%d s=%d",
fn.Name,
fn.Filename,
l.Line[li].Line,
+ l.Line[li].Column,
fn.StartLine)
if fn.Name != fn.SystemName {
lnStr = lnStr + "(" + fn.SystemName + ")"
diff --git a/vendor/github.com/onsi/ginkgo/v2/CHANGELOG.md b/vendor/github.com/onsi/ginkgo/v2/CHANGELOG.md
index 44222220a3..76577dc78e 100644
--- a/vendor/github.com/onsi/ginkgo/v2/CHANGELOG.md
+++ b/vendor/github.com/onsi/ginkgo/v2/CHANGELOG.md
@@ -1,3 +1,48 @@
+## 2.19.0
+
+### Features
+
+[Label Sets](https://onsi.github.io/ginkgo/#label-sets) allow for more expressive and flexible label filtering.
+
+## 2.18.0
+
+### Features
+- Add --slience-skips and --force-newlines [f010b65]
+- fail when no tests were run and --fail-on-empty was set [d80eebe]
+
+### Fixes
+- Fix table entry context edge case [42013d6]
+
+### Maintenance
+- Bump golang.org/x/tools from 0.20.0 to 0.21.0 (#1406) [fcf1fd7]
+- Bump github.com/onsi/gomega from 1.33.0 to 1.33.1 (#1399) [8bb14fd]
+- Bump golang.org/x/net from 0.24.0 to 0.25.0 (#1407) [04bfad7]
+
+## 2.17.3
+
+### Fixes
+`ginkgo watch` now ignores hidden files [bde6e00]
+
+## 2.17.2
+
+### Fixes
+- fix: close files [32259c8]
+- fix github output log level for skipped specs [780e7a3]
+
+### Maintenance
+- Bump github.com/google/pprof [d91fe4e]
+- Bump github.com/go-task/slim-sprig to v3 [8cb662e]
+- Bump golang.org/x/net in /integration/_fixtures/version_mismatch_fixture (#1391) [3134422]
+- Bump github-pages from 230 to 231 in /docs (#1384) [eca81b4]
+- Bump golang.org/x/tools from 0.19.0 to 0.20.0 (#1383) [760def8]
+- Bump golang.org/x/net from 0.23.0 to 0.24.0 (#1381) [4ce33f4]
+- Fix test for gomega version bump [f2fcd97]
+- Bump github.com/onsi/gomega from 1.30.0 to 1.33.0 (#1390) [fd622d2]
+- Bump golang.org/x/tools from 0.17.0 to 0.19.0 (#1368) [5474a26]
+- Bump github-pages from 229 to 230 in /docs (#1359) [e6d1170]
+- Bump google.golang.org/protobuf from 1.28.0 to 1.33.0 (#1374) [7f447b2]
+- Bump golang.org/x/net from 0.20.0 to 0.23.0 (#1380) [f15239a]
+
## 2.17.1
### Fixes
diff --git a/vendor/github.com/onsi/ginkgo/v2/CONTRIBUTING.md b/vendor/github.com/onsi/ginkgo/v2/CONTRIBUTING.md
index 1da92fe7ee..80de566a52 100644
--- a/vendor/github.com/onsi/ginkgo/v2/CONTRIBUTING.md
+++ b/vendor/github.com/onsi/ginkgo/v2/CONTRIBUTING.md
@@ -6,8 +6,10 @@ Your contributions to Ginkgo are essential for its long-term maintenance and imp
- Ensure adequate test coverage:
- When adding to the Ginkgo library, add unit and/or integration tests (under the `integration` folder).
- When adding to the Ginkgo CLI, note that there are very few unit tests. Please add an integration test.
-- Make sure all the tests succeed via `ginkgo -r -p`
-- Vet your changes via `go vet ./...`
-- Update the documentation. Ginkgo uses `godoc` comments and documentation in `docs/index.md`. You can run `bundle exec jekyll serve` in the `docs` directory to preview your changes.
+- Run `make` or:
+ - Install ginkgo locally via `go install ./...`
+ - Make sure all the tests succeed via `ginkgo -r -p`
+ - Vet your changes via `go vet ./...`
+- Update the documentation. Ginkgo uses `godoc` comments and documentation in `docs/index.md`. You can run `bundle && bundle exec jekyll serve` in the `docs` directory to preview your changes.
-Thanks for supporting Ginkgo!
\ No newline at end of file
+Thanks for supporting Ginkgo!
diff --git a/vendor/github.com/onsi/ginkgo/v2/Makefile b/vendor/github.com/onsi/ginkgo/v2/Makefile
new file mode 100644
index 0000000000..cb099aff95
--- /dev/null
+++ b/vendor/github.com/onsi/ginkgo/v2/Makefile
@@ -0,0 +1,11 @@
+# default task since it's first
+.PHONY: all
+all: vet test
+
+.PHONY: test
+test:
+ go run github.com/onsi/ginkgo/v2/ginkgo -r -p
+
+.PHONY: vet
+vet:
+ go vet ./...
diff --git a/vendor/github.com/onsi/ginkgo/v2/ginkgo/generators/bootstrap_command.go b/vendor/github.com/onsi/ginkgo/v2/ginkgo/generators/bootstrap_command.go
index 73aff0b7a1..b2dc59be66 100644
--- a/vendor/github.com/onsi/ginkgo/v2/ginkgo/generators/bootstrap_command.go
+++ b/vendor/github.com/onsi/ginkgo/v2/ginkgo/generators/bootstrap_command.go
@@ -7,7 +7,7 @@ import (
"os"
"text/template"
- sprig "github.com/go-task/slim-sprig"
+ sprig "github.com/go-task/slim-sprig/v3"
"github.com/onsi/ginkgo/v2/ginkgo/command"
"github.com/onsi/ginkgo/v2/ginkgo/internal"
"github.com/onsi/ginkgo/v2/types"
diff --git a/vendor/github.com/onsi/ginkgo/v2/ginkgo/generators/generate_command.go b/vendor/github.com/onsi/ginkgo/v2/ginkgo/generators/generate_command.go
index be01dec979..cf3b7cb6d6 100644
--- a/vendor/github.com/onsi/ginkgo/v2/ginkgo/generators/generate_command.go
+++ b/vendor/github.com/onsi/ginkgo/v2/ginkgo/generators/generate_command.go
@@ -10,7 +10,7 @@ import (
"strings"
"text/template"
- sprig "github.com/go-task/slim-sprig"
+ sprig "github.com/go-task/slim-sprig/v3"
"github.com/onsi/ginkgo/v2/ginkgo/command"
"github.com/onsi/ginkgo/v2/ginkgo/internal"
"github.com/onsi/ginkgo/v2/types"
@@ -174,6 +174,7 @@ func moduleName(modRoot string) string {
if err != nil {
return ""
}
+ defer modFile.Close()
mod := make([]byte, 128)
_, err = modFile.Read(mod)
diff --git a/vendor/github.com/onsi/ginkgo/v2/ginkgo/internal/profiles_and_reports.go b/vendor/github.com/onsi/ginkgo/v2/ginkgo/internal/profiles_and_reports.go
index 5f35864ddb..8e16d2bb03 100644
--- a/vendor/github.com/onsi/ginkgo/v2/ginkgo/internal/profiles_and_reports.go
+++ b/vendor/github.com/onsi/ginkgo/v2/ginkgo/internal/profiles_and_reports.go
@@ -161,6 +161,7 @@ func MergeAndCleanupCoverProfiles(profiles []string, destination string) error {
if err != nil {
return err
}
+ defer dst.Close()
err = DumpCoverProfiles(merged, dst)
if err != nil {
return err
@@ -196,6 +197,7 @@ func MergeProfiles(profilePaths []string, destination string) error {
return fmt.Errorf("Could not open profile: %s\n%s", profilePath, err.Error())
}
prof, err := profile.Parse(proFile)
+ _ = proFile.Close()
if err != nil {
return fmt.Errorf("Could not parse profile: %s\n%s", profilePath, err.Error())
}
diff --git a/vendor/github.com/onsi/ginkgo/v2/ginkgo/watch/package_hash.go b/vendor/github.com/onsi/ginkgo/v2/ginkgo/watch/package_hash.go
index 17d052bdc3..0e6ae1f290 100644
--- a/vendor/github.com/onsi/ginkgo/v2/ginkgo/watch/package_hash.go
+++ b/vendor/github.com/onsi/ginkgo/v2/ginkgo/watch/package_hash.go
@@ -4,6 +4,7 @@ import (
"fmt"
"os"
"regexp"
+ "strings"
"time"
)
@@ -79,6 +80,10 @@ func (p *PackageHash) computeHashes() (codeHash string, codeModifiedTime time.Ti
continue
}
+ if isHiddenFile(info) {
+ continue
+ }
+
if goTestRegExp.MatchString(info.Name()) {
testHash += p.hashForFileInfo(info)
if info.ModTime().After(testModifiedTime) {
@@ -103,6 +108,10 @@ func (p *PackageHash) computeHashes() (codeHash string, codeModifiedTime time.Ti
return
}
+func isHiddenFile(info os.FileInfo) bool {
+ return strings.HasPrefix(info.Name(), ".") || strings.HasPrefix(info.Name(), "_")
+}
+
func (p *PackageHash) hashForFileInfo(info os.FileInfo) string {
return fmt.Sprintf("%s_%d_%d", info.Name(), info.Size(), info.ModTime().UnixNano())
}
diff --git a/vendor/github.com/onsi/ginkgo/v2/internal/suite.go b/vendor/github.com/onsi/ginkgo/v2/internal/suite.go
index a994ee3d67..a3c9e6bf18 100644
--- a/vendor/github.com/onsi/ginkgo/v2/internal/suite.go
+++ b/vendor/github.com/onsi/ginkgo/v2/internal/suite.go
@@ -489,10 +489,15 @@ func (suite *Suite) runSpecs(description string, suiteLabels Labels, suitePath s
newGroup(suite).run(specs.AtIndices(groupedSpecIndices[groupedSpecIdx]))
}
- if specs.HasAnySpecsMarkedPending() && suite.config.FailOnPending {
+ if suite.config.FailOnPending && specs.HasAnySpecsMarkedPending() {
suite.report.SpecialSuiteFailureReasons = append(suite.report.SpecialSuiteFailureReasons, "Detected pending specs and --fail-on-pending is set")
suite.report.SuiteSucceeded = false
}
+
+ if suite.config.FailOnEmpty && specs.CountWithoutSkip() == 0 {
+ suite.report.SpecialSuiteFailureReasons = append(suite.report.SpecialSuiteFailureReasons, "Detected no specs ran and --fail-on-empty is set")
+ suite.report.SuiteSucceeded = false
+ }
}
if ranBeforeSuite {
diff --git a/vendor/github.com/onsi/ginkgo/v2/reporters/default_reporter.go b/vendor/github.com/onsi/ginkgo/v2/reporters/default_reporter.go
index 4026859ec3..480730486a 100644
--- a/vendor/github.com/onsi/ginkgo/v2/reporters/default_reporter.go
+++ b/vendor/github.com/onsi/ginkgo/v2/reporters/default_reporter.go
@@ -202,6 +202,11 @@ func (r *DefaultReporter) DidRun(report types.SpecReport) {
v := r.conf.Verbosity()
inParallel := report.RunningInParallel
+ //should we completely omit this spec?
+ if report.State.Is(types.SpecStateSkipped) && r.conf.SilenceSkips {
+ return
+ }
+
header := r.specDenoter
if report.LeafNodeType.Is(types.NodeTypesForSuiteLevelNodes) {
header = fmt.Sprintf("[%s]", report.LeafNodeType)
@@ -278,9 +283,12 @@ func (r *DefaultReporter) DidRun(report types.SpecReport) {
}
}
- // If we have no content to show, jsut emit the header and return
+ // If we have no content to show, just emit the header and return
if !reportHasContent {
r.emit(r.f(highlightColor + header + "{{/}}"))
+ if r.conf.ForceNewlines {
+ r.emit("\n")
+ }
return
}
@@ -419,7 +427,11 @@ func (r *DefaultReporter) emitFailure(indent uint, state types.SpecState, failur
highlightColor := r.highlightColorForState(state)
r.emitBlock(r.fi(indent, highlightColor+"[%s] %s{{/}}", r.humanReadableState(state), failure.Message))
if r.conf.GithubOutput {
- r.emitBlock(r.fi(indent, "::error file=%s,line=%d::%s %s", failure.Location.FileName, failure.Location.LineNumber, failure.FailureNodeType, failure.TimelineLocation.Time.Format(types.GINKGO_TIME_FORMAT)))
+ level := "error"
+ if state.Is(types.SpecStateSkipped) {
+ level = "notice"
+ }
+ r.emitBlock(r.fi(indent, "::%s file=%s,line=%d::%s %s", level, failure.Location.FileName, failure.Location.LineNumber, failure.FailureNodeType, failure.TimelineLocation.Time.Format(types.GINKGO_TIME_FORMAT)))
} else {
r.emitBlock(r.fi(indent, highlightColor+"In {{bold}}[%s]{{/}}"+highlightColor+" at: {{bold}}%s{{/}} {{gray}}@ %s{{/}}\n", failure.FailureNodeType, failure.Location, failure.TimelineLocation.Time.Format(types.GINKGO_TIME_FORMAT)))
}
diff --git a/vendor/github.com/onsi/ginkgo/v2/reporters/junit_report.go b/vendor/github.com/onsi/ginkgo/v2/reporters/junit_report.go
index 43244a9bd5..562e0f62ba 100644
--- a/vendor/github.com/onsi/ginkgo/v2/reporters/junit_report.go
+++ b/vendor/github.com/onsi/ginkgo/v2/reporters/junit_report.go
@@ -177,6 +177,7 @@ func GenerateJUnitReportWithConfig(report types.Report, dst string, config Junit
{"FocusFiles", strings.Join(report.SuiteConfig.FocusFiles, ";")},
{"SkipFiles", strings.Join(report.SuiteConfig.SkipFiles, ";")},
{"FailOnPending", fmt.Sprintf("%t", report.SuiteConfig.FailOnPending)},
+ {"FailOnEmpty", fmt.Sprintf("%t", report.SuiteConfig.FailOnEmpty)},
{"FailFast", fmt.Sprintf("%t", report.SuiteConfig.FailFast)},
{"FlakeAttempts", fmt.Sprintf("%d", report.SuiteConfig.FlakeAttempts)},
{"DryRun", fmt.Sprintf("%t", report.SuiteConfig.DryRun)},
@@ -324,6 +325,7 @@ func MergeAndCleanupJUnitReports(sources []string, dst string) ([]string, error)
continue
}
err = xml.NewDecoder(f).Decode(&report)
+ _ = f.Close()
if err != nil {
messages = append(messages, fmt.Sprintf("Could not decode %s:\n%s", source, err.Error()))
continue
diff --git a/vendor/github.com/onsi/ginkgo/v2/table_dsl.go b/vendor/github.com/onsi/ginkgo/v2/table_dsl.go
index a3aef821bf..c7de7a8be0 100644
--- a/vendor/github.com/onsi/ginkgo/v2/table_dsl.go
+++ b/vendor/github.com/onsi/ginkgo/v2/table_dsl.go
@@ -269,11 +269,15 @@ func generateTable(description string, isSubtree bool, args ...interface{}) {
internalNodeArgs = append(internalNodeArgs, entry.decorations...)
hasContext := false
- if internalBodyType.NumIn() > 0. {
+ if internalBodyType.NumIn() > 0 {
if internalBodyType.In(0).Implements(specContextType) {
hasContext = true
- } else if internalBodyType.In(0).Implements(contextType) && (len(entry.parameters) == 0 || !reflect.TypeOf(entry.parameters[0]).Implements(contextType)) {
+ } else if internalBodyType.In(0).Implements(contextType) {
hasContext = true
+ if len(entry.parameters) > 0 && reflect.TypeOf(entry.parameters[0]) != nil && reflect.TypeOf(entry.parameters[0]).Implements(contextType) {
+ // we allow you to pass in a non-nil context
+ hasContext = false
+ }
}
}
diff --git a/vendor/github.com/onsi/ginkgo/v2/types/config.go b/vendor/github.com/onsi/ginkgo/v2/types/config.go
index cef273ee1f..66463cf5ea 100644
--- a/vendor/github.com/onsi/ginkgo/v2/types/config.go
+++ b/vendor/github.com/onsi/ginkgo/v2/types/config.go
@@ -25,6 +25,7 @@ type SuiteConfig struct {
SkipFiles []string
LabelFilter string
FailOnPending bool
+ FailOnEmpty bool
FailFast bool
FlakeAttempts int
MustPassRepeatedly int
@@ -90,6 +91,8 @@ type ReporterConfig struct {
FullTrace bool
ShowNodeEvents bool
GithubOutput bool
+ SilenceSkips bool
+ ForceNewlines bool
JSONReport string
JUnitReport string
@@ -275,6 +278,8 @@ var SuiteConfigFlags = GinkgoFlags{
Usage: "If set, ginkgo will stop running a test suite after a failure occurs."},
{KeyPath: "S.FlakeAttempts", Name: "flake-attempts", SectionKey: "failure", UsageDefaultValue: "0 - failed tests are not retried", DeprecatedName: "flakeAttempts", DeprecatedDocLink: "changed-command-line-flags",
Usage: "Make up to this many attempts to run each spec. If any of the attempts succeed, the suite will not be failed."},
+ {KeyPath: "S.FailOnEmpty", Name: "fail-on-empty", SectionKey: "failure",
+ Usage: "If set, ginkgo will mark the test suite as failed if no specs are run."},
{KeyPath: "S.DryRun", Name: "dry-run", SectionKey: "debug", DeprecatedName: "dryRun", DeprecatedDocLink: "changed-command-line-flags",
Usage: "If set, ginkgo will walk the test hierarchy without actually running anything. Best paired with -v."},
@@ -334,6 +339,10 @@ var ReporterConfigFlags = GinkgoFlags{
Usage: "If set, default reporter prints node > Enter and < Exit events when specs fail"},
{KeyPath: "R.GithubOutput", Name: "github-output", SectionKey: "output",
Usage: "If set, default reporter prints easier to manage output in Github Actions."},
+ {KeyPath: "R.SilenceSkips", Name: "silence-skips", SectionKey: "output",
+ Usage: "If set, default reporter will not print out skipped tests."},
+ {KeyPath: "R.ForceNewlines", Name: "force-newlines", SectionKey: "output",
+ Usage: "If set, default reporter will ensure a newline appears after each test."},
{KeyPath: "R.JSONReport", Name: "json-report", UsageArgument: "filename.json", SectionKey: "output",
Usage: "If set, Ginkgo will generate a JSON-formatted test report at the specified location."},
diff --git a/vendor/github.com/onsi/ginkgo/v2/types/label_filter.go b/vendor/github.com/onsi/ginkgo/v2/types/label_filter.go
index b0d3b651e7..7fdc8aa23f 100644
--- a/vendor/github.com/onsi/ginkgo/v2/types/label_filter.go
+++ b/vendor/github.com/onsi/ginkgo/v2/types/label_filter.go
@@ -45,6 +45,83 @@ func orAction(a, b LabelFilter) LabelFilter {
return func(labels []string) bool { return a(labels) || b(labels) }
}
+func labelSetFor(key string, labels []string) map[string]bool {
+ key = strings.ToLower(strings.TrimSpace(key))
+ out := map[string]bool{}
+ for _, label := range labels {
+ components := strings.SplitN(label, ":", 2)
+ if len(components) < 2 {
+ continue
+ }
+ if key == strings.ToLower(strings.TrimSpace(components[0])) {
+ out[strings.ToLower(strings.TrimSpace(components[1]))] = true
+ }
+ }
+
+ return out
+}
+
+func isEmptyLabelSetAction(key string) LabelFilter {
+ return func(labels []string) bool {
+ return len(labelSetFor(key, labels)) == 0
+ }
+}
+
+func containsAnyLabelSetAction(key string, expectedValues []string) LabelFilter {
+ return func(labels []string) bool {
+ set := labelSetFor(key, labels)
+ for _, value := range expectedValues {
+ if set[value] {
+ return true
+ }
+ }
+ return false
+ }
+}
+
+func containsAllLabelSetAction(key string, expectedValues []string) LabelFilter {
+ return func(labels []string) bool {
+ set := labelSetFor(key, labels)
+ for _, value := range expectedValues {
+ if !set[value] {
+ return false
+ }
+ }
+ return true
+ }
+}
+
+func consistsOfLabelSetAction(key string, expectedValues []string) LabelFilter {
+ return func(labels []string) bool {
+ set := labelSetFor(key, labels)
+ if len(set) != len(expectedValues) {
+ return false
+ }
+ for _, value := range expectedValues {
+ if !set[value] {
+ return false
+ }
+ }
+ return true
+ }
+}
+
+func isSubsetOfLabelSetAction(key string, expectedValues []string) LabelFilter {
+ expectedSet := map[string]bool{}
+ for _, value := range expectedValues {
+ expectedSet[value] = true
+ }
+ return func(labels []string) bool {
+ set := labelSetFor(key, labels)
+ for value := range set {
+ if !expectedSet[value] {
+ return false
+ }
+ }
+ return true
+ }
+}
+
type lfToken uint
const (
@@ -58,6 +135,9 @@ const (
lfTokenOr
lfTokenRegexp
lfTokenLabel
+ lfTokenSetKey
+ lfTokenSetOperation
+ lfTokenSetArgument
lfTokenEOF
)
@@ -71,6 +151,8 @@ func (l lfToken) Precedence() int {
return 2
case lfTokenNot:
return 3
+ case lfTokenSetOperation:
+ return 4
}
return -1
}
@@ -93,6 +175,12 @@ func (l lfToken) String() string {
return "/regexp/"
case lfTokenLabel:
return "label"
+ case lfTokenSetKey:
+ return "set_key"
+ case lfTokenSetOperation:
+ return "set_operation"
+ case lfTokenSetArgument:
+ return "set_argument"
case lfTokenEOF:
return "EOF"
}
@@ -148,6 +236,35 @@ func (tn *treeNode) constructLabelFilter(input string) (LabelFilter, error) {
return nil, GinkgoErrors.SyntaxErrorParsingLabelFilter(input, tn.location, fmt.Sprintf("RegExp compilation error: %s", err))
}
return matchLabelRegexAction(re), nil
+ case lfTokenSetOperation:
+ tokenSetOperation := strings.ToLower(tn.value)
+ if tokenSetOperation == "isempty" {
+ return isEmptyLabelSetAction(tn.leftNode.value), nil
+ }
+ if tn.rightNode == nil {
+ return nil, GinkgoErrors.SyntaxErrorParsingLabelFilter(input, tn.location, fmt.Sprintf("Set operation '%s' is missing an argument.", tn.value))
+ }
+
+ rawValues := strings.Split(tn.rightNode.value, ",")
+ values := make([]string, len(rawValues))
+ for i := range rawValues {
+ values[i] = strings.ToLower(strings.TrimSpace(rawValues[i]))
+ if strings.ContainsAny(values[i], "&|!,()/") {
+ return nil, GinkgoErrors.SyntaxErrorParsingLabelFilter(input, tn.rightNode.location, fmt.Sprintf("Invalid label value '%s' in set operation argument.", values[i]))
+ } else if values[i] == "" {
+ return nil, GinkgoErrors.SyntaxErrorParsingLabelFilter(input, tn.rightNode.location, "Empty label value in set operation argument.")
+ }
+ }
+ switch tokenSetOperation {
+ case "containsany":
+ return containsAnyLabelSetAction(tn.leftNode.value, values), nil
+ case "containsall":
+ return containsAllLabelSetAction(tn.leftNode.value, values), nil
+ case "consistsof":
+ return consistsOfLabelSetAction(tn.leftNode.value, values), nil
+ case "issubsetof":
+ return isSubsetOfLabelSetAction(tn.leftNode.value, values), nil
+ }
}
if tn.rightNode == nil {
@@ -203,7 +320,17 @@ func (tn *treeNode) toString(indent int) string {
return out
}
+var validSetOperations = map[string]string{
+ "containsany": "containsAny",
+ "containsall": "containsAll",
+ "consistsof": "consistsOf",
+ "issubsetof": "isSubsetOf",
+ "isempty": "isEmpty",
+}
+
func tokenize(input string) func() (*treeNode, error) {
+ lastToken := lfTokenInvalid
+ lastValue := ""
runes, i := []rune(input), 0
peekIs := func(r rune) bool {
@@ -233,6 +360,53 @@ func tokenize(input string) func() (*treeNode, error) {
}
node := &treeNode{location: i}
+ defer func() {
+ lastToken = node.token
+ lastValue = node.value
+ }()
+
+ if lastToken == lfTokenSetKey {
+ //we should get a valid set operation next
+ value, n := consumeUntil(" )")
+ if validSetOperations[strings.ToLower(value)] == "" {
+ return &treeNode{}, GinkgoErrors.SyntaxErrorParsingLabelFilter(input, i, fmt.Sprintf("Invalid set operation '%s'.", value))
+ }
+ i += n
+ node.token, node.value = lfTokenSetOperation, value
+ return node, nil
+ }
+ if lastToken == lfTokenSetOperation {
+ //we should get an argument next, if we aren't isempty
+ var arg = ""
+ origI := i
+ if runes[i] == '{' {
+ i += 1
+ value, n := consumeUntil("}")
+ if i+n >= len(runes) {
+ return &treeNode{}, GinkgoErrors.SyntaxErrorParsingLabelFilter(input, i-1, "Missing closing '}' in set operation argument?")
+ }
+ i += n + 1
+ arg = value
+ } else {
+ value, n := consumeUntil("&|!,()/")
+ i += n
+ arg = strings.TrimSpace(value)
+ }
+ if strings.ToLower(lastValue) == "isempty" && arg != "" {
+ return &treeNode{}, GinkgoErrors.SyntaxErrorParsingLabelFilter(input, origI, fmt.Sprintf("isEmpty does not take arguments, was passed '%s'.", arg))
+ }
+ if arg == "" && strings.ToLower(lastValue) != "isempty" {
+ if i < len(runes) && runes[i] == '/' {
+ return &treeNode{}, GinkgoErrors.SyntaxErrorParsingLabelFilter(input, origI, "Set operations do not support regular expressions.")
+ } else {
+ return &treeNode{}, GinkgoErrors.SyntaxErrorParsingLabelFilter(input, origI, fmt.Sprintf("Set operation '%s' requires an argument.", lastValue))
+ }
+ }
+ // note that we sent an empty SetArgument token if we are isempty
+ node.token, node.value = lfTokenSetArgument, arg
+ return node, nil
+ }
+
switch runes[i] {
case '&':
if !peekIs('&') {
@@ -264,8 +438,38 @@ func tokenize(input string) func() (*treeNode, error) {
i += n + 1
node.token, node.value = lfTokenRegexp, value
default:
- value, n := consumeUntil("&|!,()/")
+ value, n := consumeUntil("&|!,()/:")
i += n
+ value = strings.TrimSpace(value)
+
+ //are we the beginning of a set operation?
+ if i < len(runes) && runes[i] == ':' {
+ if peekIs(' ') {
+ if value == "" {
+ return &treeNode{}, GinkgoErrors.SyntaxErrorParsingLabelFilter(input, i, "Missing set key.")
+ }
+ i += 1
+ //we are the beginning of a set operation
+ node.token, node.value = lfTokenSetKey, value
+ return node, nil
+ }
+ additionalValue, n := consumeUntil("&|!,()/")
+ additionalValue = strings.TrimSpace(additionalValue)
+ if additionalValue == ":" {
+ return &treeNode{}, GinkgoErrors.SyntaxErrorParsingLabelFilter(input, i, "Missing set operation.")
+ }
+ i += n
+ value += additionalValue
+ }
+
+ valueToCheckForSetOperation := strings.ToLower(value)
+ for setOperation := range validSetOperations {
+ idx := strings.Index(valueToCheckForSetOperation, " "+setOperation)
+ if idx > 0 {
+ return &treeNode{}, GinkgoErrors.SyntaxErrorParsingLabelFilter(input, i-n+idx+1, fmt.Sprintf("Looks like you are using the set operator '%s' but did not provide a set key. Did you forget the ':'?", validSetOperations[setOperation]))
+ }
+ }
+
node.token, node.value = lfTokenLabel, strings.TrimSpace(value)
}
return node, nil
@@ -307,7 +511,7 @@ LOOP:
switch node.token {
case lfTokenEOF:
break LOOP
- case lfTokenLabel, lfTokenRegexp:
+ case lfTokenLabel, lfTokenRegexp, lfTokenSetKey:
if current.rightNode != nil {
return nil, GinkgoErrors.SyntaxErrorParsingLabelFilter(input, node.location, "Found two adjacent labels. You need an operator between them.")
}
@@ -326,6 +530,18 @@ LOOP:
node.setLeftNode(nodeToStealFrom.rightNode)
nodeToStealFrom.setRightNode(node)
current = node
+ case lfTokenSetOperation:
+ if current.rightNode == nil {
+ return nil, GinkgoErrors.SyntaxErrorParsingLabelFilter(input, node.location, fmt.Sprintf("Set operation '%s' missing left hand operand.", node.value))
+ }
+ node.setLeftNode(current.rightNode)
+ current.setRightNode(node)
+ current = node
+ case lfTokenSetArgument:
+ if current.rightNode != nil {
+ return nil, GinkgoErrors.SyntaxErrorParsingLabelFilter(input, node.location, fmt.Sprintf("Unexpected set argument '%s'.", node.token))
+ }
+ current.setRightNode(node)
case lfTokenCloseGroup:
firstUnmatchedOpenNode := current.firstUnmatchedOpenNode()
if firstUnmatchedOpenNode == nil {
@@ -354,5 +570,14 @@ func ValidateAndCleanupLabel(label string, cl CodeLocation) (string, error) {
if strings.ContainsAny(out, "&|!,()/") {
return "", GinkgoErrors.InvalidLabel(label, cl)
}
+ if out[0] == ':' {
+ return "", GinkgoErrors.InvalidLabel(label, cl)
+ }
+ if strings.Contains(out, ":") {
+ components := strings.SplitN(out, ":", 2)
+ if len(components) < 2 || components[1] == "" {
+ return "", GinkgoErrors.InvalidLabel(label, cl)
+ }
+ }
return out, nil
}
diff --git a/vendor/github.com/onsi/ginkgo/v2/types/version.go b/vendor/github.com/onsi/ginkgo/v2/types/version.go
index 851d42b456..acab03492a 100644
--- a/vendor/github.com/onsi/ginkgo/v2/types/version.go
+++ b/vendor/github.com/onsi/ginkgo/v2/types/version.go
@@ -1,3 +1,3 @@
package types
-const VERSION = "2.17.1"
+const VERSION = "2.19.0"
diff --git a/vendor/github.com/onsi/gomega/CHANGELOG.md b/vendor/github.com/onsi/gomega/CHANGELOG.md
index 01ec5245cd..62af14ad2f 100644
--- a/vendor/github.com/onsi/gomega/CHANGELOG.md
+++ b/vendor/github.com/onsi/gomega/CHANGELOG.md
@@ -1,3 +1,22 @@
+## 1.33.1
+
+### Fixes
+- fix confusing eventually docs [3a66379]
+
+### Maintenance
+- Bump github.com/onsi/ginkgo/v2 from 2.17.1 to 2.17.2 [e9bc35a]
+
+## 1.33.0
+
+### Features
+
+`Receive` not accepts `Receive(, MATCHER>)`, allowing you to pick out a specific value on the channel that satisfies the provided matcher and is stored in the provided pointer.
+
+### Maintenance
+- Bump github.com/onsi/ginkgo/v2 from 2.15.0 to 2.17.1 (#745) [9999deb]
+- Bump github-pages from 229 to 230 in /docs (#735) [cb5ff21]
+- Bump golang.org/x/net from 0.20.0 to 0.23.0 (#746) [bac6596]
+
## 1.32.0
### Maintenance
diff --git a/vendor/github.com/onsi/gomega/gomega_dsl.go b/vendor/github.com/onsi/gomega/gomega_dsl.go
index ffb81b1feb..9697d5134f 100644
--- a/vendor/github.com/onsi/gomega/gomega_dsl.go
+++ b/vendor/github.com/onsi/gomega/gomega_dsl.go
@@ -22,7 +22,7 @@ import (
"github.com/onsi/gomega/types"
)
-const GOMEGA_VERSION = "1.32.0"
+const GOMEGA_VERSION = "1.33.1"
const nilGomegaPanic = `You are trying to make an assertion, but haven't registered Gomega's fail handler.
If you're using Ginkgo then you probably forgot to put your assertion in an It().
@@ -372,11 +372,11 @@ You can ensure that you get a number of consecutive successful tries before succ
Finally, in addition to passing timeouts and a context to Eventually you can be more explicit with Eventually's chaining configuration methods:
- Eventually(..., "1s", "2s", ctx).Should(...)
+ Eventually(..., "10s", "2s", ctx).Should(...)
is equivalent to
- Eventually(...).WithTimeout(time.Second).WithPolling(2*time.Second).WithContext(ctx).Should(...)
+ Eventually(...).WithTimeout(10*time.Second).WithPolling(2*time.Second).WithContext(ctx).Should(...)
*/
func Eventually(actualOrCtx interface{}, args ...interface{}) AsyncAssertion {
ensureDefaultGomegaIsConfigured()
diff --git a/vendor/github.com/onsi/gomega/matchers.go b/vendor/github.com/onsi/gomega/matchers.go
index 8860d677fc..7ef27dc9c9 100644
--- a/vendor/github.com/onsi/gomega/matchers.go
+++ b/vendor/github.com/onsi/gomega/matchers.go
@@ -194,20 +194,21 @@ func BeClosed() types.GomegaMatcher {
//
// will repeatedly attempt to pull values out of `c` until a value matching "bar" is received.
//
-// Finally, if you want to have a reference to the value *sent* to the channel you can pass the `Receive` matcher a pointer to a variable of the appropriate type:
+// Furthermore, if you want to have a reference to the value *sent* to the channel you can pass the `Receive` matcher a pointer to a variable of the appropriate type:
//
// var myThing thing
// Eventually(thingChan).Should(Receive(&myThing))
// Expect(myThing.Sprocket).Should(Equal("foo"))
// Expect(myThing.IsValid()).Should(BeTrue())
+//
+// Finally, if you want to match the received object as well as get the actual received value into a variable, so you can reason further about the value received,
+// you can pass a pointer to a variable of the approriate type first, and second a matcher:
+//
+// var myThing thing
+// Eventually(thingChan).Should(Receive(&myThing, ContainSubstring("bar")))
func Receive(args ...interface{}) types.GomegaMatcher {
- var arg interface{}
- if len(args) > 0 {
- arg = args[0]
- }
-
return &matchers.ReceiveMatcher{
- Arg: arg,
+ Args: args,
}
}
diff --git a/vendor/github.com/onsi/gomega/matchers/receive_matcher.go b/vendor/github.com/onsi/gomega/matchers/receive_matcher.go
index 1936a2ba52..948164eaf8 100644
--- a/vendor/github.com/onsi/gomega/matchers/receive_matcher.go
+++ b/vendor/github.com/onsi/gomega/matchers/receive_matcher.go
@@ -3,6 +3,7 @@
package matchers
import (
+ "errors"
"fmt"
"reflect"
@@ -10,7 +11,7 @@ import (
)
type ReceiveMatcher struct {
- Arg interface{}
+ Args []interface{}
receivedValue reflect.Value
channelClosed bool
}
@@ -29,15 +30,38 @@ func (matcher *ReceiveMatcher) Match(actual interface{}) (success bool, err erro
var subMatcher omegaMatcher
var hasSubMatcher bool
-
- if matcher.Arg != nil {
- subMatcher, hasSubMatcher = (matcher.Arg).(omegaMatcher)
+ var resultReference interface{}
+
+ // Valid arg formats are as follows, always with optional POINTER before
+ // optional MATCHER:
+ // - Receive()
+ // - Receive(POINTER)
+ // - Receive(MATCHER)
+ // - Receive(POINTER, MATCHER)
+ args := matcher.Args
+ if len(args) > 0 {
+ arg := args[0]
+ _, isSubMatcher := arg.(omegaMatcher)
+ if !isSubMatcher && reflect.ValueOf(arg).Kind() == reflect.Ptr {
+ // Consume optional POINTER arg first, if it ain't no matcher ;)
+ resultReference = arg
+ args = args[1:]
+ }
+ }
+ if len(args) > 0 {
+ arg := args[0]
+ subMatcher, hasSubMatcher = arg.(omegaMatcher)
if !hasSubMatcher {
- argType := reflect.TypeOf(matcher.Arg)
- if argType.Kind() != reflect.Ptr {
- return false, fmt.Errorf("Cannot assign a value from the channel:\n%s\nTo:\n%s\nYou need to pass a pointer!", format.Object(actual, 1), format.Object(matcher.Arg, 1))
- }
+ // At this point we assume the dev user wanted to assign a received
+ // value, so [POINTER,]MATCHER.
+ return false, fmt.Errorf("Cannot assign a value from the channel:\n%s\nTo:\n%s\nYou need to pass a pointer!", format.Object(actual, 1), format.Object(arg, 1))
}
+ // Consume optional MATCHER arg.
+ args = args[1:]
+ }
+ if len(args) > 0 {
+ // If there are still args present, reject all.
+ return false, errors.New("Receive matcher expects at most an optional pointer and/or an optional matcher")
}
winnerIndex, value, open := reflect.Select([]reflect.SelectCase{
@@ -58,16 +82,20 @@ func (matcher *ReceiveMatcher) Match(actual interface{}) (success bool, err erro
}
if hasSubMatcher {
- if didReceive {
- matcher.receivedValue = value
- return subMatcher.Match(matcher.receivedValue.Interface())
+ if !didReceive {
+ return false, nil
}
- return false, nil
+ matcher.receivedValue = value
+ if match, err := subMatcher.Match(matcher.receivedValue.Interface()); err != nil || !match {
+ return match, err
+ }
+ // if we received a match, then fall through in order to handle an
+ // optional assignment of the received value to the specified reference.
}
if didReceive {
- if matcher.Arg != nil {
- outValue := reflect.ValueOf(matcher.Arg)
+ if resultReference != nil {
+ outValue := reflect.ValueOf(resultReference)
if value.Type().AssignableTo(outValue.Elem().Type()) {
outValue.Elem().Set(value)
@@ -77,7 +105,7 @@ func (matcher *ReceiveMatcher) Match(actual interface{}) (success bool, err erro
outValue.Elem().Set(value.Elem())
return true, nil
} else {
- return false, fmt.Errorf("Cannot assign a value from the channel:\n%s\nType:\n%s\nTo:\n%s", format.Object(actual, 1), format.Object(value.Interface(), 1), format.Object(matcher.Arg, 1))
+ return false, fmt.Errorf("Cannot assign a value from the channel:\n%s\nType:\n%s\nTo:\n%s", format.Object(actual, 1), format.Object(value.Interface(), 1), format.Object(resultReference, 1))
}
}
@@ -88,7 +116,11 @@ func (matcher *ReceiveMatcher) Match(actual interface{}) (success bool, err erro
}
func (matcher *ReceiveMatcher) FailureMessage(actual interface{}) (message string) {
- subMatcher, hasSubMatcher := (matcher.Arg).(omegaMatcher)
+ var matcherArg interface{}
+ if len(matcher.Args) > 0 {
+ matcherArg = matcher.Args[len(matcher.Args)-1]
+ }
+ subMatcher, hasSubMatcher := (matcherArg).(omegaMatcher)
closedAddendum := ""
if matcher.channelClosed {
@@ -105,7 +137,11 @@ func (matcher *ReceiveMatcher) FailureMessage(actual interface{}) (message strin
}
func (matcher *ReceiveMatcher) NegatedFailureMessage(actual interface{}) (message string) {
- subMatcher, hasSubMatcher := (matcher.Arg).(omegaMatcher)
+ var matcherArg interface{}
+ if len(matcher.Args) > 0 {
+ matcherArg = matcher.Args[len(matcher.Args)-1]
+ }
+ subMatcher, hasSubMatcher := (matcherArg).(omegaMatcher)
closedAddendum := ""
if matcher.channelClosed {
diff --git a/vendor/k8s.io/utils/net/multi_listen.go b/vendor/k8s.io/utils/net/multi_listen.go
new file mode 100644
index 0000000000..7cb7795bec
--- /dev/null
+++ b/vendor/k8s.io/utils/net/multi_listen.go
@@ -0,0 +1,195 @@
+/*
+Copyright 2024 The Kubernetes Authors.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package net
+
+import (
+ "context"
+ "fmt"
+ "net"
+ "sync"
+)
+
+// connErrPair pairs conn and error which is returned by accept on sub-listeners.
+type connErrPair struct {
+ conn net.Conn
+ err error
+}
+
+// multiListener implements net.Listener
+type multiListener struct {
+ listeners []net.Listener
+ wg sync.WaitGroup
+
+ // connCh passes accepted connections, from child listeners to parent.
+ connCh chan connErrPair
+ // stopCh communicates from parent to child listeners.
+ stopCh chan struct{}
+}
+
+// compile time check to ensure *multiListener implements net.Listener
+var _ net.Listener = &multiListener{}
+
+// MultiListen returns net.Listener which can listen on and accept connections for
+// the given network on multiple addresses. Internally it uses stdlib to create
+// sub-listener and multiplexes connection requests using go-routines.
+// The network must be "tcp", "tcp4" or "tcp6".
+// It follows the semantics of net.Listen that primarily means:
+// 1. If the host is an unspecified/zero IP address with "tcp" network, MultiListen
+// listens on all available unicast and anycast IP addresses of the local system.
+// 2. Use "tcp4" or "tcp6" to exclusively listen on IPv4 or IPv6 family, respectively.
+// 3. The host can accept names (e.g, localhost) and it will create a listener for at
+// most one of the host's IP.
+func MultiListen(ctx context.Context, network string, addrs ...string) (net.Listener, error) {
+ var lc net.ListenConfig
+ return multiListen(
+ ctx,
+ network,
+ addrs,
+ func(ctx context.Context, network, address string) (net.Listener, error) {
+ return lc.Listen(ctx, network, address)
+ })
+}
+
+// multiListen implements MultiListen by consuming stdlib functions as dependency allowing
+// mocking for unit-testing.
+func multiListen(
+ ctx context.Context,
+ network string,
+ addrs []string,
+ listenFunc func(ctx context.Context, network, address string) (net.Listener, error),
+) (net.Listener, error) {
+ if !(network == "tcp" || network == "tcp4" || network == "tcp6") {
+ return nil, fmt.Errorf("network %q not supported", network)
+ }
+ if len(addrs) == 0 {
+ return nil, fmt.Errorf("no address provided to listen on")
+ }
+
+ ml := &multiListener{
+ connCh: make(chan connErrPair),
+ stopCh: make(chan struct{}),
+ }
+ for _, addr := range addrs {
+ l, err := listenFunc(ctx, network, addr)
+ if err != nil {
+ // close all the sub-listeners and exit
+ _ = ml.Close()
+ return nil, err
+ }
+ ml.listeners = append(ml.listeners, l)
+ }
+
+ for _, l := range ml.listeners {
+ ml.wg.Add(1)
+ go func(l net.Listener) {
+ defer ml.wg.Done()
+ for {
+ // Accept() is blocking, unless ml.Close() is called, in which
+ // case it will return immediately with an error.
+ conn, err := l.Accept()
+ // This assumes that ANY error from Accept() will terminate the
+ // sub-listener. We could maybe be more precise, but it
+ // doesn't seem necessary.
+ terminate := err != nil
+
+ select {
+ case ml.connCh <- connErrPair{conn: conn, err: err}:
+ case <-ml.stopCh:
+ // In case we accepted a connection AND were stopped, and
+ // this select-case was chosen, just throw away the
+ // connection. This avoids potentially blocking on connCh
+ // or leaking a connection.
+ if conn != nil {
+ _ = conn.Close()
+ }
+ terminate = true
+ }
+ // Make sure we don't loop on Accept() returning an error and
+ // the select choosing the channel case.
+ if terminate {
+ return
+ }
+ }
+ }(l)
+ }
+ return ml, nil
+}
+
+// Accept implements net.Listener. It waits for and returns a connection from
+// any of the sub-listener.
+func (ml *multiListener) Accept() (net.Conn, error) {
+ // wait for any sub-listener to enqueue an accepted connection
+ connErr, ok := <-ml.connCh
+ if !ok {
+ // The channel will be closed only when Close() is called on the
+ // multiListener. Closing of this channel implies that all
+ // sub-listeners are also closed, which causes a "use of closed
+ // network connection" error on their Accept() calls. We return the
+ // same error for multiListener.Accept() if multiListener.Close()
+ // has already been called.
+ return nil, fmt.Errorf("use of closed network connection")
+ }
+ return connErr.conn, connErr.err
+}
+
+// Close implements net.Listener. It will close all sub-listeners and wait for
+// the go-routines to exit.
+func (ml *multiListener) Close() error {
+ // Make sure this can be called repeatedly without explosions.
+ select {
+ case <-ml.stopCh:
+ return fmt.Errorf("use of closed network connection")
+ default:
+ }
+
+ // Tell all sub-listeners to stop.
+ close(ml.stopCh)
+
+ // Closing the listeners causes Accept() to immediately return an error in
+ // the sub-listener go-routines.
+ for _, l := range ml.listeners {
+ _ = l.Close()
+ }
+
+ // Wait for all the sub-listener go-routines to exit.
+ ml.wg.Wait()
+ close(ml.connCh)
+
+ // Drain any already-queued connections.
+ for connErr := range ml.connCh {
+ if connErr.conn != nil {
+ _ = connErr.conn.Close()
+ }
+ }
+ return nil
+}
+
+// Addr is an implementation of the net.Listener interface. It always returns
+// the address of the first listener. Callers should use conn.LocalAddr() to
+// obtain the actual local address of the sub-listener.
+func (ml *multiListener) Addr() net.Addr {
+ return ml.listeners[0].Addr()
+}
+
+// Addrs is like Addr, but returns the address for all registered listeners.
+func (ml *multiListener) Addrs() []net.Addr {
+ var ret []net.Addr
+ for _, l := range ml.listeners {
+ ret = append(ret, l.Addr())
+ }
+ return ret
+}
diff --git a/vendor/k8s.io/utils/trace/trace.go b/vendor/k8s.io/utils/trace/trace.go
index 187eb5d8c5..559aebb59a 100644
--- a/vendor/k8s.io/utils/trace/trace.go
+++ b/vendor/k8s.io/utils/trace/trace.go
@@ -192,7 +192,7 @@ func (t *Trace) Log() {
t.endTime = &endTime
t.lock.Unlock()
// an explicit logging request should dump all the steps out at the higher level
- if t.parentTrace == nil { // We don't start logging until Log or LogIfLong is called on the root trace
+ if t.parentTrace == nil && klogV(2) { // We don't start logging until Log or LogIfLong is called on the root trace
t.logTrace()
}
}
diff --git a/vendor/modules.txt b/vendor/modules.txt
index bc59dfa823..1f4510643d 100644
--- a/vendor/modules.txt
+++ b/vendor/modules.txt
@@ -29,11 +29,11 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime
github.com/Azure/azure-sdk-for-go/sdk/azcore/streaming
github.com/Azure/azure-sdk-for-go/sdk/azcore/to
github.com/Azure/azure-sdk-for-go/sdk/azcore/tracing
-# github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.6.0
+# github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.7.0
## explicit; go 1.18
github.com/Azure/azure-sdk-for-go/sdk/azidentity
github.com/Azure/azure-sdk-for-go/sdk/azidentity/internal
-# github.com/Azure/azure-sdk-for-go/sdk/internal v1.9.0
+# github.com/Azure/azure-sdk-for-go/sdk/internal v1.9.1
## explicit; go 1.18
github.com/Azure/azure-sdk-for-go/sdk/internal/diag
github.com/Azure/azure-sdk-for-go/sdk/internal/errorinfo
@@ -42,7 +42,13 @@ github.com/Azure/azure-sdk-for-go/sdk/internal/log
github.com/Azure/azure-sdk-for-go/sdk/internal/poller
github.com/Azure/azure-sdk-for-go/sdk/internal/temporal
github.com/Azure/azure-sdk-for-go/sdk/internal/uuid
-# github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5 v5.6.0
+# github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets v0.12.0
+## explicit; go 1.18
+github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets
+# github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.1
+## explicit; go 1.18
+github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal
+# github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5 v5.7.0
## explicit; go 1.18
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5
# github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry v1.2.0
@@ -63,7 +69,7 @@ github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/privatedns/armprivatedns
# github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0
## explicit; go 1.18
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources
-# github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage v1.5.0
+# github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage v1.6.0
## explicit; go 1.18
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage
# github.com/Azure/go-autorest v14.2.0+incompatible
@@ -189,9 +195,9 @@ github.com/go-openapi/jsonreference/internal
# github.com/go-openapi/swag v0.22.4
## explicit; go 1.18
github.com/go-openapi/swag
-# github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572
-## explicit; go 1.13
-github.com/go-task/slim-sprig
+# github.com/go-task/slim-sprig/v3 v3.0.0
+## explicit; go 1.20
+github.com/go-task/slim-sprig/v3
# github.com/gogo/protobuf v1.3.2
## explicit; go 1.15
github.com/gogo/protobuf/gogoproto
@@ -259,7 +265,7 @@ github.com/google/go-cmp/cmp/internal/value
## explicit; go 1.12
github.com/google/gofuzz
github.com/google/gofuzz/bytesource
-# github.com/google/pprof v0.0.0-20230602010524-ada837c32108
+# github.com/google/pprof v0.0.0-20240424215950-a892ee059fd6
## explicit; go 1.19
github.com/google/pprof/profile
# github.com/google/uuid v1.6.0
@@ -346,7 +352,7 @@ github.com/munnerz/goautoneg
# github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f
## explicit
github.com/mxk/go-flowrate/flowrate
-# github.com/onsi/ginkgo/v2 v2.17.1
+# github.com/onsi/ginkgo/v2 v2.19.0
## explicit; go 1.20
github.com/onsi/ginkgo/v2
github.com/onsi/ginkgo/v2/config
@@ -368,7 +374,7 @@ github.com/onsi/ginkgo/v2/internal/parallel_support
github.com/onsi/ginkgo/v2/internal/testingtproxy
github.com/onsi/ginkgo/v2/reporters
github.com/onsi/ginkgo/v2/types
-# github.com/onsi/gomega v1.32.0
+# github.com/onsi/gomega v1.33.1
## explicit; go 1.20
github.com/onsi/gomega
github.com/onsi/gomega/format
@@ -1535,7 +1541,7 @@ k8s.io/mount-utils
## explicit; go 1.21
k8s.io/pod-security-admission/api
k8s.io/pod-security-admission/policy
-# k8s.io/utils v0.0.0-20231127182322-b307cd553661
+# k8s.io/utils v0.0.0-20240711033017-18e509b52bc8
## explicit; go 1.18
k8s.io/utils/buffer
k8s.io/utils/clock
@@ -1619,10 +1625,11 @@ sigs.k8s.io/cloud-provider-azure/pkg/util/string
sigs.k8s.io/cloud-provider-azure/pkg/util/taints
sigs.k8s.io/cloud-provider-azure/pkg/util/vm
sigs.k8s.io/cloud-provider-azure/pkg/version
-# sigs.k8s.io/cloud-provider-azure/pkg/azclient v0.0.7
+# sigs.k8s.io/cloud-provider-azure/pkg/azclient v0.0.31
## explicit; go 1.20
sigs.k8s.io/cloud-provider-azure/pkg/azclient
sigs.k8s.io/cloud-provider-azure/pkg/azclient/accountclient
+sigs.k8s.io/cloud-provider-azure/pkg/azclient/armauth
sigs.k8s.io/cloud-provider-azure/pkg/azclient/availabilitysetclient
sigs.k8s.io/cloud-provider-azure/pkg/azclient/blobcontainerclient
sigs.k8s.io/cloud-provider-azure/pkg/azclient/blobservicepropertiesclient
diff --git a/vendor/sigs.k8s.io/cloud-provider-azure/pkg/azclient/arm_conf.go b/vendor/sigs.k8s.io/cloud-provider-azure/pkg/azclient/arm_conf.go
index e533cf6696..d2e654c85f 100644
--- a/vendor/sigs.k8s.io/cloud-provider-azure/pkg/azclient/arm_conf.go
+++ b/vendor/sigs.k8s.io/cloud-provider-azure/pkg/azclient/arm_conf.go
@@ -62,3 +62,7 @@ func GetAzCoreClientOption(armConfig *ARMClientConfig) (*policy.ClientOptions, e
}
return &azCoreClientConfig, nil
}
+
+func IsMultiTenant(armConfig *ARMClientConfig) bool {
+ return armConfig != nil && armConfig.NetworkResourceTenantID != "" && !strings.EqualFold(armConfig.NetworkResourceTenantID, armConfig.GetTenantID())
+}
diff --git a/vendor/sigs.k8s.io/cloud-provider-azure/pkg/azclient/armauth/auxiliary_auth_policy.go b/vendor/sigs.k8s.io/cloud-provider-azure/pkg/azclient/armauth/auxiliary_auth_policy.go
new file mode 100644
index 0000000000..0af24a8bf9
--- /dev/null
+++ b/vendor/sigs.k8s.io/cloud-provider-azure/pkg/azclient/armauth/auxiliary_auth_policy.go
@@ -0,0 +1,59 @@
+/*
+Copyright 2024 The Kubernetes Authors.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package armauth
+
+import (
+ "context"
+ "fmt"
+ "net/http"
+ "strings"
+
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+)
+
+const (
+ HeaderAuthorizationAuxiliary = "x-ms-authorization-auxiliary"
+)
+
+type AuxiliaryAuthPolicy struct {
+ credentials []azcore.TokenCredential
+ scope string
+}
+
+func NewAuxiliaryAuthPolicy(credentials []azcore.TokenCredential, scope string) *AuxiliaryAuthPolicy {
+ return &AuxiliaryAuthPolicy{
+ credentials: credentials,
+ scope: scope,
+ }
+}
+
+func (p *AuxiliaryAuthPolicy) Do(req *policy.Request) (*http.Response, error) {
+ tokens := make([]string, 0, len(p.credentials))
+
+ for _, cred := range p.credentials {
+ token, err := cred.GetToken(context.TODO(), policy.TokenRequestOptions{
+ Scopes: []string{p.scope},
+ })
+ if err != nil {
+ return nil, err
+ }
+ tokens = append(tokens, fmt.Sprintf("Bearer %s", token.Token))
+ }
+ req.Raw().Header.Set(HeaderAuthorizationAuxiliary, strings.Join(tokens, ", "))
+ return req.Next()
+}
diff --git a/vendor/sigs.k8s.io/cloud-provider-azure/pkg/azclient/armauth/expire_early_wrapper.go b/vendor/sigs.k8s.io/cloud-provider-azure/pkg/azclient/armauth/expire_early_wrapper.go
new file mode 100644
index 0000000000..843be4aa56
--- /dev/null
+++ b/vendor/sigs.k8s.io/cloud-provider-azure/pkg/azclient/armauth/expire_early_wrapper.go
@@ -0,0 +1,57 @@
+/*
+Copyright 2024 The Kubernetes Authors.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package armauth
+
+import (
+ "context"
+ "time"
+
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+)
+
+// expireEarlyTokenCredential is a wrapper around the azcore.TokenCredential that
+// returns an earlier ExpiresOn timestamp to avoid conditions like clockSkew, or a race
+// condition during polling.
+// See: https://github.com/hashicorp/terraform-provider-azurerm/issues/20834 for more details
+type expireEarlyTokenCredential struct {
+ cred azcore.TokenCredential
+}
+
+func NewExpireEarlyTokenWrapper(cred azcore.TokenCredential) azcore.TokenCredential {
+ return &expireEarlyTokenCredential{
+ cred: cred,
+ }
+}
+
+func (w *expireEarlyTokenCredential) GetToken(ctx context.Context, options policy.TokenRequestOptions) (azcore.AccessToken, error) {
+ token, err := w.cred.GetToken(ctx, options)
+ if err != nil {
+ return azcore.AccessToken{}, err
+ }
+
+ twoHoursFromNow := time.Now().Add(2 * time.Hour)
+ // IMDS may have the MI token already, and have an expiration of less than 2h when we receive the token. We don't want to set that value beyond the ExpiresOn time and potentially miss a refresh
+ // So we just return earlier here. See discussion here: https://github.com/Azure/karpenter-provider-azure/pull/391/files#r1648633051
+ if token.ExpiresOn.Before(twoHoursFromNow) {
+ return token, nil
+ }
+ // If the token expires in more than 2 hours, this means we are taking in a new token with a fresh 24h expiration time or one already in the cache that hasn't been modified by us, so we want to set that to two hours so
+ // we can refresh it early to avoid the polling bugs mentioned in the above issue
+ token.ExpiresOn = twoHoursFromNow
+ return token, nil
+}
diff --git a/vendor/sigs.k8s.io/cloud-provider-azure/pkg/azclient/armauth/keyvault_credential.go b/vendor/sigs.k8s.io/cloud-provider-azure/pkg/azclient/armauth/keyvault_credential.go
new file mode 100644
index 0000000000..5e9ab48fa4
--- /dev/null
+++ b/vendor/sigs.k8s.io/cloud-provider-azure/pkg/azclient/armauth/keyvault_credential.go
@@ -0,0 +1,165 @@
+/*
+Copyright 2024 The Kubernetes Authors.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package armauth
+
+import (
+ "context"
+ "encoding/json"
+ "fmt"
+ "sync"
+ "time"
+
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
+ "github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets"
+
+ "sigs.k8s.io/cloud-provider-azure/pkg/azclient/utils"
+ "sigs.k8s.io/cloud-provider-azure/pkg/azclient/vaultclient"
+)
+
+type SecretResourceID struct {
+ SubscriptionID string
+ ResourceGroup string
+ VaultName string
+ SecretName string
+}
+
+func (s SecretResourceID) String() string {
+ return fmt.Sprintf("/subscriptions/%s/resourceGroups/%s/providers/Microsoft.KeyVault/vaults/%s/secrets/%s", s.SubscriptionID, s.ResourceGroup, s.VaultName, s.SecretName)
+}
+
+type KeyVaultCredential struct {
+ secretClient *azsecrets.Client
+ vaultURI string
+ secretResourceID SecretResourceID
+
+ mtx sync.RWMutex
+ token *azcore.AccessToken
+}
+
+type KeyVaultCredentialSecret struct {
+ AccessToken string `json:"access_token"`
+ ExpiresOn time.Time `json:"expires_on"`
+}
+
+func NewKeyVaultCredential(
+ msiCredential azcore.TokenCredential,
+ secretResourceID SecretResourceID,
+) (*KeyVaultCredential, error) {
+ ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
+ defer cancel()
+
+ // Get KeyVault URI
+ var vaultURI string
+ {
+ vaultCli, err := vaultclient.New(secretResourceID.SubscriptionID, msiCredential, utils.GetDefaultOption())
+ if err != nil {
+ return nil, fmt.Errorf("create KeyVault client: %w", err)
+ }
+
+ vault, err := vaultCli.Get(ctx, secretResourceID.ResourceGroup, secretResourceID.VaultName)
+ if err != nil {
+ return nil, fmt.Errorf("get vault %s: %w", secretResourceID.VaultName, err)
+ }
+
+ if vault.Properties == nil || vault.Properties.VaultURI == nil {
+ return nil, fmt.Errorf("vault uri is nil")
+ }
+ vaultURI = *vault.Properties.VaultURI
+ }
+
+ cli, err := azsecrets.NewClient(vaultURI, msiCredential, nil)
+ if err != nil {
+ return nil, fmt.Errorf("create secret client: %w", err)
+ }
+
+ rv := &KeyVaultCredential{
+ secretClient: cli,
+ mtx: sync.RWMutex{},
+ secretResourceID: secretResourceID,
+ }
+
+ if _, err := rv.refreshToken(ctx); err != nil {
+ return nil, fmt.Errorf("refresh token from %s: %w", secretResourceID, err)
+ }
+
+ return rv, nil
+}
+
+func (c *KeyVaultCredential) refreshToken(ctx context.Context) (*azcore.AccessToken, error) {
+ const (
+ LatestVersion = ""
+ RefreshTokenOffset = 5 * time.Minute
+ )
+
+ cloneAccessToken := func(token *azcore.AccessToken) *azcore.AccessToken {
+ return &azcore.AccessToken{
+ Token: token.Token,
+ ExpiresOn: token.ExpiresOn,
+ }
+ }
+
+ {
+ c.mtx.RLock()
+ if c.token != nil && c.token.ExpiresOn.Add(RefreshTokenOffset).Before(time.Now()) {
+ c.mtx.RUnlock()
+ return cloneAccessToken(c.token), nil
+ }
+ c.mtx.RUnlock()
+ }
+
+ c.mtx.Lock()
+ defer c.mtx.Unlock()
+
+ if c.token != nil && c.token.ExpiresOn.Add(RefreshTokenOffset).Before(time.Now()) {
+ return cloneAccessToken(c.token), nil
+ }
+
+ var secret KeyVaultCredentialSecret
+ {
+ resp, err := c.secretClient.GetSecret(ctx, c.secretResourceID.SecretName, LatestVersion, nil)
+ if err != nil {
+ return nil, err
+ } else if resp.Value == nil {
+ return nil, fmt.Errorf("secret value is nil")
+ }
+
+ // Parse secret value
+ if err := json.Unmarshal([]byte(*resp.Value), &secret); err != nil {
+ return nil, fmt.Errorf("unmarshal secret value `%s`: %w", *resp.Value, err)
+ } else if secret.AccessToken == "" {
+ return nil, fmt.Errorf("access token is empty")
+ }
+ }
+
+ c.token = &azcore.AccessToken{
+ Token: secret.AccessToken,
+ ExpiresOn: secret.ExpiresOn,
+ }
+
+ // Return a copy of the token to avoid concurrent modification
+ return cloneAccessToken(c.token), nil
+}
+
+func (c *KeyVaultCredential) GetToken(ctx context.Context, opts policy.TokenRequestOptions) (azcore.AccessToken, error) {
+ token, err := c.refreshToken(ctx)
+ if err != nil {
+ return azcore.AccessToken{}, fmt.Errorf("refresh token: %w", err)
+ }
+
+ return *token, nil
+}
diff --git a/vendor/sigs.k8s.io/cloud-provider-azure/pkg/azclient/auth.go b/vendor/sigs.k8s.io/cloud-provider-azure/pkg/azclient/auth.go
index 503efd3db9..f73d50f347 100644
--- a/vendor/sigs.k8s.io/cloud-provider-azure/pkg/azclient/auth.go
+++ b/vendor/sigs.k8s.io/cloud-provider-azure/pkg/azclient/auth.go
@@ -22,17 +22,26 @@ import (
"strings"
"github.com/Azure/azure-sdk-for-go/sdk/azcore"
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
+
+ "sigs.k8s.io/cloud-provider-azure/pkg/azclient/armauth"
)
type AuthProvider struct {
- FederatedIdentityCredential azcore.TokenCredential
- ManagedIdentityCredential azcore.TokenCredential
- ClientSecretCredential azcore.TokenCredential
+ FederatedIdentityCredential azcore.TokenCredential
+
+ ManagedIdentityCredential azcore.TokenCredential
+ ClientSecretCredential azcore.TokenCredential
+ ClientCertificateCredential azcore.TokenCredential
+
+ NetworkTokenCredential azcore.TokenCredential
NetworkClientSecretCredential azcore.TokenCredential
- MultiTenantCredential azcore.TokenCredential
- ClientCertificateCredential azcore.TokenCredential
+
+ MultiTenantCredential azcore.TokenCredential
+
+ ClientOptions *policy.ClientOptions
}
func NewAuthProvider(armConfig *ARMClientConfig, config *AzureAuthConfig, clientOptionsMutFn ...func(option *policy.ClientOptions)) (*AuthProvider, error) {
@@ -74,6 +83,20 @@ func NewAuthProvider(armConfig *ARMClientConfig, config *AzureAuthConfig, client
if err != nil {
return nil, err
}
+ managedIdentityCredential = armauth.NewExpireEarlyTokenWrapper(managedIdentityCredential)
+ }
+
+ var (
+ networkTokenCredential azcore.TokenCredential
+ )
+ if config.UseManagedIdentityExtension && config.AuxiliaryTokenProvider != nil && IsMultiTenant(armConfig) {
+ networkTokenCredential, err = armauth.NewKeyVaultCredential(
+ managedIdentityCredential,
+ config.AuxiliaryTokenProvider.SecretResourceID(),
+ )
+ if err != nil {
+ return nil, fmt.Errorf("create KeyVaultCredential for auxiliary token provider: %w", err)
+ }
}
// ClientSecretCredential is used for client secret
@@ -88,7 +111,7 @@ func NewAuthProvider(armConfig *ARMClientConfig, config *AzureAuthConfig, client
if err != nil {
return nil, err
}
- if len(armConfig.NetworkResourceTenantID) > 0 && !strings.EqualFold(armConfig.NetworkResourceTenantID, armConfig.GetTenantID()) {
+ if IsMultiTenant(armConfig) {
credOptions := &azidentity.ClientSecretCredentialOptions{
ClientOptions: *clientOption,
}
@@ -128,7 +151,7 @@ func NewAuthProvider(armConfig *ARMClientConfig, config *AzureAuthConfig, client
if err != nil {
return nil, err
}
- if len(armConfig.NetworkResourceTenantID) > 0 && !strings.EqualFold(armConfig.NetworkResourceTenantID, armConfig.GetTenantID()) {
+ if IsMultiTenant(armConfig) {
networkClientSecretCredential, err = azidentity.NewClientCertificateCredential(armConfig.NetworkResourceTenantID, config.GetAADClientID(), certificate, privateKey, credOptions)
if err != nil {
return nil, err
@@ -150,7 +173,10 @@ func NewAuthProvider(armConfig *ARMClientConfig, config *AzureAuthConfig, client
ClientSecretCredential: clientSecretCredential,
ClientCertificateCredential: clientCertificateCredential,
NetworkClientSecretCredential: networkClientSecretCredential,
+ NetworkTokenCredential: networkTokenCredential,
MultiTenantCredential: multiTenantCredential,
+
+ ClientOptions: clientOption,
}, nil
}
@@ -173,6 +199,9 @@ func (factory *AuthProvider) GetNetworkAzIdentity() azcore.TokenCredential {
if factory.NetworkClientSecretCredential != nil {
return factory.NetworkClientSecretCredential
}
+ if factory.NetworkTokenCredential != nil {
+ return factory.NetworkTokenCredential
+ }
return nil
}
@@ -186,3 +215,8 @@ func (factory *AuthProvider) GetMultiTenantIdentity() azcore.TokenCredential {
func (factory *AuthProvider) IsMultiTenantModeEnabled() bool {
return factory.MultiTenantCredential != nil
}
+
+func (factory *AuthProvider) DefaultTokenScope() string {
+ audience := factory.ClientOptions.Cloud.Services[cloud.ResourceManager].Audience
+ return fmt.Sprintf("%s/.default", strings.TrimRight(audience, "/"))
+}
diff --git a/vendor/sigs.k8s.io/cloud-provider-azure/pkg/azclient/auth_conf.go b/vendor/sigs.k8s.io/cloud-provider-azure/pkg/azclient/auth_conf.go
index 46a66e94f3..09979f4c44 100644
--- a/vendor/sigs.k8s.io/cloud-provider-azure/pkg/azclient/auth_conf.go
+++ b/vendor/sigs.k8s.io/cloud-provider-azure/pkg/azclient/auth_conf.go
@@ -19,6 +19,7 @@ package azclient
import (
"os"
+ "sigs.k8s.io/cloud-provider-azure/pkg/azclient/armauth"
"sigs.k8s.io/cloud-provider-azure/pkg/azclient/utils"
)
@@ -42,6 +43,16 @@ type AzureAuthConfig struct {
AADFederatedTokenFile string `json:"aadFederatedTokenFile,omitempty" yaml:"aadFederatedTokenFile,omitempty"`
// Use workload identity federation for the virtual machine to access Azure ARM APIs
UseFederatedWorkloadIdentityExtension bool `json:"useFederatedWorkloadIdentityExtension,omitempty" yaml:"useFederatedWorkloadIdentityExtension,omitempty"`
+ // Auxiliary token provider for accessing resources from network tenant
+ // Require MSI to be enabled and have permission to access the KeyVault
+ AuxiliaryTokenProvider *AzureAuthAuxiliaryTokenProvider `json:"auxiliaryTokenProvider,omitempty" yaml:"auxiliaryTokenProvider,omitempty"`
+}
+
+type AzureAuthAuxiliaryTokenProvider struct {
+ SubscriptionID string `json:"subscriptionID,omitempty"`
+ ResourceGroup string `json:"resourceGroup,omitempty"`
+ VaultName string `json:"vaultName,omitempty"`
+ SecretName string `json:"secretName,omitempty"`
}
func (config *AzureAuthConfig) GetAADClientID() string {
@@ -67,3 +78,12 @@ func (config *AzureAuthConfig) GetAzureFederatedTokenFile() (string, bool) {
}
return config.AADFederatedTokenFile, config.UseFederatedWorkloadIdentityExtension
}
+
+func (config *AzureAuthAuxiliaryTokenProvider) SecretResourceID() armauth.SecretResourceID {
+ return armauth.SecretResourceID{
+ SubscriptionID: config.SubscriptionID,
+ ResourceGroup: config.ResourceGroup,
+ VaultName: config.VaultName,
+ SecretName: config.SecretName,
+ }
+}