diff --git a/go.mod b/go.mod
index db505eea4..34cad815a 100644
--- a/go.mod
+++ b/go.mod
@@ -5,10 +5,10 @@ go 1.22
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/azidentity v1.6.0
+ github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.7.0
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault v1.4.0
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0
- 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
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.3.2
github.com/Azure/go-autorest/autorest v0.11.29
github.com/Azure/go-autorest/autorest/adal v0.9.24
@@ -24,7 +24,7 @@ require (
github.com/satori/go.uuid v1.2.0
github.com/stretchr/testify v1.9.0
go.uber.org/mock v0.4.0
- golang.org/x/net v0.26.0
+ golang.org/x/net v0.27.0
google.golang.org/grpc v1.59.0
google.golang.org/protobuf v1.34.1
k8s.io/api v0.30.1
@@ -34,14 +34,14 @@ require (
k8s.io/klog/v2 v2.120.1
k8s.io/kubernetes v1.29.4
k8s.io/mount-utils v0.29.4
- k8s.io/utils v0.0.0-20231127182322-b307cd553661
+ k8s.io/utils v0.0.0-20240711033017-18e509b52bc8
sigs.k8s.io/cloud-provider-azure v1.27.1-0.20240418020948-86cfc443b48c
sigs.k8s.io/cloud-provider-azure/pkg/azclient/configloader v0.0.12
sigs.k8s.io/yaml v1.4.0
)
require (
- github.com/Azure/azure-sdk-for-go/sdk/internal v1.9.0 // indirect
+ github.com/Azure/azure-sdk-for-go/sdk/internal v1.9.1 // indirect
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5 v5.7.0 // 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
@@ -125,12 +125,12 @@ require (
go.uber.org/atomic v1.10.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.19.0 // indirect
- golang.org/x/crypto v0.24.0 // indirect
+ golang.org/x/crypto v0.25.0 // indirect
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect
golang.org/x/oauth2 v0.11.0 // indirect
golang.org/x/sync v0.7.0
- golang.org/x/sys v0.21.0 // indirect
- golang.org/x/term v0.21.0 // indirect
+ golang.org/x/sys v0.22.0 // indirect
+ golang.org/x/term v0.22.0 // indirect
golang.org/x/text v0.16.0 // indirect
golang.org/x/time v0.5.0 // indirect
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
@@ -153,7 +153,7 @@ require (
k8s.io/kubelet v0.29.3 // indirect
k8s.io/pod-security-admission v0.29.4
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.28.0 // indirect
- sigs.k8s.io/cloud-provider-azure/pkg/azclient v0.0.24
+ sigs.k8s.io/cloud-provider-azure/pkg/azclient v0.0.31
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
)
diff --git a/go.sum b/go.sum
index 60063e190..d6a380a17 100644
--- a/go.sum
+++ b/go.sum
@@ -7,10 +7,10 @@ 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/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=
@@ -23,6 +23,8 @@ github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerservice/armcontai
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=
@@ -33,8 +35,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/azure-sdk-for-go/sdk/storage/azblob v1.3.2 h1:YUUxeiOWgdAQE3pXt2H7QXzZs0q8UBjgRbl56qo8GYM=
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.3.2/go.mod h1:dmXQgZuiSubAecswZE+Sm8jkvEa7kQgTPVRvwL/nd0E=
github.com/Azure/go-autorest v14.2.0+incompatible h1:V5VMDjClD3GiElqLWO7mz2MxNAK/vTfRHdAubSIPRgs=
@@ -327,8 +329,8 @@ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5y
golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58=
golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4=
-golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI=
-golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM=
+golang.org/x/crypto v0.25.0 h1:ypSNr+bnYL2YhwoMt2zPxHFmbAN1KZs/njMG3hxUp30=
+golang.org/x/crypto v0.25.0/go.mod h1:T+wALwcMOSE0kXgUAnPAHqTLW+XHgcELELW8VaDgm/M=
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 h1:GoHiUyI/Tp2nVkLI2mCxVkOjsbSXD66ic0XW0js0R9g=
golang.org/x/exp v0.0.0-20230905200255-921286631fa9/go.mod h1:S2oDrQGGwySpoQPVqRShND87VCbxmc6bL1Yd2oYrm6k=
golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
@@ -347,8 +349,8 @@ golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qx
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
-golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ=
-golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE=
+golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys=
+golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE=
golang.org/x/oauth2 v0.11.0 h1:vPL4xzxBM4niKCW6g9whtaWVXTJf1U5e4aZxxFx/gbU=
golang.org/x/oauth2 v0.11.0/go.mod h1:LdF7O/8bLR/qWK9DrpXmbHLTouvRHK0SgJl0GmDBchk=
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
@@ -371,15 +373,15 @@ golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
-golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws=
-golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
+golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI=
+golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo=
golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0=
-golang.org/x/term v0.21.0 h1:WVXCp+/EBEHOj53Rvu+7KiT/iElMrO8ACK16SMZ3jaA=
-golang.org/x/term v0.21.0/go.mod h1:ooXLefLobQVslOqselCNF4SxFAaoS6KujMbsGzSDmX0=
+golang.org/x/term v0.22.0 h1:BbsgPEJULsl2fV/AT3v15Mjva5yXKQDyKf+TbDz7QJk=
+golang.org/x/term v0.22.0/go.mod h1:F3qCibpT5AMpCRfhfT53vVJwhLtIVHhB9XDjfFvnMI4=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
@@ -472,14 +474,14 @@ k8s.io/mount-utils v0.29.4 h1:tW/URea4gtXlaVW7VObr52NQhS+z3SXTg1GUaFZjRL4=
k8s.io/mount-utils v0.29.4/go.mod h1:SHUMR9n3b6tLgEmlyT36cL6fV6Sjwa5CJhc0guCXvb0=
k8s.io/pod-security-admission v0.29.4 h1:XatfG2zbye9SRaHQhE7EdiIu462ak3TctnkvdrUVk7I=
k8s.io/pod-security-admission v0.29.4/go.mod h1:PNErt3eRnzVx2zxIdYmgk7vBos5Qm4c8U5QXKvXFfxQ=
-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=
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.28.0 h1:TgtAeesdhpm2SGwkQasmbeqDo8th5wOBA5h/AjTKA4I=
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.28.0/go.mod h1:VHVDI/KrK4fjnV61bE2g3sA7tiETLn8sooImelsCx3Y=
sigs.k8s.io/cloud-provider-azure v1.27.1-0.20240418020948-86cfc443b48c h1:jiFjp43Ayaz78K+yK0bVrOVMvQ6QrIW/XTi0r3uAA5g=
sigs.k8s.io/cloud-provider-azure v1.27.1-0.20240418020948-86cfc443b48c/go.mod h1:1vNSbzbKZwTZFc/kcVGFpcTjcys3qcRtPT3ZZtmg2WA=
-sigs.k8s.io/cloud-provider-azure/pkg/azclient v0.0.24 h1:pssrhDI3Rri3rRH9zBvEHBLONFLei7A++tKLqBB2tAI=
-sigs.k8s.io/cloud-provider-azure/pkg/azclient v0.0.24/go.mod h1:U5U/d7iNXH32DAgAESmUFJfuHF8WMQRVwYg9X/poJoc=
+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.12 h1:98yaRNtRAgCDkO4Uz6sKNN2PlR3aQs4/N9IbyCclEE0=
sigs.k8s.io/cloud-provider-azure/pkg/azclient/configloader v0.0.12/go.mod h1:ShLy1+CWj4OQylhXsavXpiTveJbqx+iHy9DPvoxN56Q=
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 6d4b6feb8..a8c2feb6d 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 b5acff0e6..7e201ea2f 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 f9cc48943..fbaa29220 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 3564e685e..54016a070 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 2655543ae..80c1806bb 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 698650bbb..35fa01d13 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 459ef64c6..4305b5d3d 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/resourcemanager/storage/armstorage/CHANGELOG.md b/vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/CHANGELOG.md
index c9aefb399..5faf165f4 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 81c6bc011..fe5f1fc98 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 799f7afd7..152c3b451 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 2a581188e..ae18e9939 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 666afdcd8..286c363e7 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 5fd736aae..a0e56a472 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 18122f925..8ccf18a9c 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 56efca76c..674a186be 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 d0da80d15..027e030f6 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 bfd1b531c..48f529576 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 438fc77ee..6602acba4 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 1aaa4eaf0..d757bde91 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 238ba98c8..c7d4dcc5e 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 df9e8df21..16823750e 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 614a876e4..00586070b 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 4f3f96365..0c8174540 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 3a9b23aab..a893299da 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 0c96a0902..ac6d6f180 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 000000000..63c1116b4
--- /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 dc91e8ca3..2cf592f47 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 74621df13..8ceebe5de 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 d143bdb48..fec991677 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 cde0f2d21..d55e9f5e3 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 7127815f0..aa95c5047 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 743fcc983..ce3553b8e 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 75786fe94..8d8cbc88e 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 e5b7eb742..e014af80f 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 db7979df3..ff08406f1 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 169dd385e..e21c38e41 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 f53f5f982..eba9a122a 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 000000000..d5c0a50e7
--- /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 000000000..8312677be
--- /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 000000000..28473744f
--- /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 201ffd255..14fb2098b 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 2f4a974fa..e00dba24d 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/golang.org/x/crypto/blowfish/cipher.go b/vendor/golang.org/x/crypto/blowfish/cipher.go
index 213bf204a..089895680 100644
--- a/vendor/golang.org/x/crypto/blowfish/cipher.go
+++ b/vendor/golang.org/x/crypto/blowfish/cipher.go
@@ -11,7 +11,7 @@
// Deprecated: any new system should use AES (from crypto/aes, if necessary in
// an AEAD mode like crypto/cipher.NewGCM) or XChaCha20-Poly1305 (from
// golang.org/x/crypto/chacha20poly1305).
-package blowfish // import "golang.org/x/crypto/blowfish"
+package blowfish
// The code is a port of Bruce Schneier's C implementation.
// See https://www.schneier.com/blowfish.html.
diff --git a/vendor/golang.org/x/crypto/cryptobyte/asn1/asn1.go b/vendor/golang.org/x/crypto/cryptobyte/asn1/asn1.go
index cda8e3edf..90ef6a241 100644
--- a/vendor/golang.org/x/crypto/cryptobyte/asn1/asn1.go
+++ b/vendor/golang.org/x/crypto/cryptobyte/asn1/asn1.go
@@ -4,7 +4,7 @@
// Package asn1 contains supporting types for parsing and building ASN.1
// messages with the cryptobyte package.
-package asn1 // import "golang.org/x/crypto/cryptobyte/asn1"
+package asn1
// Tag represents an ASN.1 identifier octet, consisting of a tag number
// (indicating a type) and class (such as context-specific or constructed).
diff --git a/vendor/golang.org/x/crypto/cryptobyte/string.go b/vendor/golang.org/x/crypto/cryptobyte/string.go
index 10692a8a3..4b0f8097f 100644
--- a/vendor/golang.org/x/crypto/cryptobyte/string.go
+++ b/vendor/golang.org/x/crypto/cryptobyte/string.go
@@ -15,7 +15,7 @@
//
// See the documentation and examples for the Builder and String types to get
// started.
-package cryptobyte // import "golang.org/x/crypto/cryptobyte"
+package cryptobyte
// String represents a string of bytes. It provides methods for parsing
// fixed-length and length-prefixed values from it.
diff --git a/vendor/golang.org/x/crypto/curve25519/curve25519.go b/vendor/golang.org/x/crypto/curve25519/curve25519.go
index 00f963ea2..21ca3b2ee 100644
--- a/vendor/golang.org/x/crypto/curve25519/curve25519.go
+++ b/vendor/golang.org/x/crypto/curve25519/curve25519.go
@@ -6,9 +6,11 @@
// performs scalar multiplication on the elliptic curve known as Curve25519.
// See RFC 7748.
//
-// Starting in Go 1.20, this package is a wrapper for the X25519 implementation
+// This package is a wrapper for the X25519 implementation
// in the crypto/ecdh package.
-package curve25519 // import "golang.org/x/crypto/curve25519"
+package curve25519
+
+import "crypto/ecdh"
// ScalarMult sets dst to the product scalar * point.
//
@@ -16,7 +18,13 @@ package curve25519 // import "golang.org/x/crypto/curve25519"
// zeroes, irrespective of the scalar. Instead, use the X25519 function, which
// will return an error.
func ScalarMult(dst, scalar, point *[32]byte) {
- scalarMult(dst, scalar, point)
+ if _, err := x25519(dst, scalar[:], point[:]); err != nil {
+ // The only error condition for x25519 when the inputs are 32 bytes long
+ // is if the output would have been the all-zero value.
+ for i := range dst {
+ dst[i] = 0
+ }
+ }
}
// ScalarBaseMult sets dst to the product scalar * base where base is the
@@ -25,7 +33,12 @@ func ScalarMult(dst, scalar, point *[32]byte) {
// It is recommended to use the X25519 function with Basepoint instead, as
// copying into fixed size arrays can lead to unexpected bugs.
func ScalarBaseMult(dst, scalar *[32]byte) {
- scalarBaseMult(dst, scalar)
+ curve := ecdh.X25519()
+ priv, err := curve.NewPrivateKey(scalar[:])
+ if err != nil {
+ panic("curve25519: internal error: scalarBaseMult was not 32 bytes")
+ }
+ copy(dst[:], priv.PublicKey().Bytes())
}
const (
@@ -57,3 +70,21 @@ func X25519(scalar, point []byte) ([]byte, error) {
var dst [32]byte
return x25519(&dst, scalar, point)
}
+
+func x25519(dst *[32]byte, scalar, point []byte) ([]byte, error) {
+ curve := ecdh.X25519()
+ pub, err := curve.NewPublicKey(point)
+ if err != nil {
+ return nil, err
+ }
+ priv, err := curve.NewPrivateKey(scalar)
+ if err != nil {
+ return nil, err
+ }
+ out, err := priv.ECDH(pub)
+ if err != nil {
+ return nil, err
+ }
+ copy(dst[:], out)
+ return dst[:], nil
+}
diff --git a/vendor/golang.org/x/crypto/curve25519/curve25519_compat.go b/vendor/golang.org/x/crypto/curve25519/curve25519_compat.go
deleted file mode 100644
index ba647e8d7..000000000
--- a/vendor/golang.org/x/crypto/curve25519/curve25519_compat.go
+++ /dev/null
@@ -1,105 +0,0 @@
-// Copyright 2019 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-//go:build !go1.20
-
-package curve25519
-
-import (
- "crypto/subtle"
- "errors"
- "strconv"
-
- "golang.org/x/crypto/curve25519/internal/field"
-)
-
-func scalarMult(dst, scalar, point *[32]byte) {
- var e [32]byte
-
- copy(e[:], scalar[:])
- e[0] &= 248
- e[31] &= 127
- e[31] |= 64
-
- var x1, x2, z2, x3, z3, tmp0, tmp1 field.Element
- x1.SetBytes(point[:])
- x2.One()
- x3.Set(&x1)
- z3.One()
-
- swap := 0
- for pos := 254; pos >= 0; pos-- {
- b := e[pos/8] >> uint(pos&7)
- b &= 1
- swap ^= int(b)
- x2.Swap(&x3, swap)
- z2.Swap(&z3, swap)
- swap = int(b)
-
- tmp0.Subtract(&x3, &z3)
- tmp1.Subtract(&x2, &z2)
- x2.Add(&x2, &z2)
- z2.Add(&x3, &z3)
- z3.Multiply(&tmp0, &x2)
- z2.Multiply(&z2, &tmp1)
- tmp0.Square(&tmp1)
- tmp1.Square(&x2)
- x3.Add(&z3, &z2)
- z2.Subtract(&z3, &z2)
- x2.Multiply(&tmp1, &tmp0)
- tmp1.Subtract(&tmp1, &tmp0)
- z2.Square(&z2)
-
- z3.Mult32(&tmp1, 121666)
- x3.Square(&x3)
- tmp0.Add(&tmp0, &z3)
- z3.Multiply(&x1, &z2)
- z2.Multiply(&tmp1, &tmp0)
- }
-
- x2.Swap(&x3, swap)
- z2.Swap(&z3, swap)
-
- z2.Invert(&z2)
- x2.Multiply(&x2, &z2)
- copy(dst[:], x2.Bytes())
-}
-
-func scalarBaseMult(dst, scalar *[32]byte) {
- checkBasepoint()
- scalarMult(dst, scalar, &basePoint)
-}
-
-func x25519(dst *[32]byte, scalar, point []byte) ([]byte, error) {
- var in [32]byte
- if l := len(scalar); l != 32 {
- return nil, errors.New("bad scalar length: " + strconv.Itoa(l) + ", expected 32")
- }
- if l := len(point); l != 32 {
- return nil, errors.New("bad point length: " + strconv.Itoa(l) + ", expected 32")
- }
- copy(in[:], scalar)
- if &point[0] == &Basepoint[0] {
- scalarBaseMult(dst, &in)
- } else {
- var base, zero [32]byte
- copy(base[:], point)
- scalarMult(dst, &in, &base)
- if subtle.ConstantTimeCompare(dst[:], zero[:]) == 1 {
- return nil, errors.New("bad input point: low order point")
- }
- }
- return dst[:], nil
-}
-
-func checkBasepoint() {
- if subtle.ConstantTimeCompare(Basepoint, []byte{
- 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- }) != 1 {
- panic("curve25519: global Basepoint value was modified")
- }
-}
diff --git a/vendor/golang.org/x/crypto/curve25519/curve25519_go120.go b/vendor/golang.org/x/crypto/curve25519/curve25519_go120.go
deleted file mode 100644
index 627df4972..000000000
--- a/vendor/golang.org/x/crypto/curve25519/curve25519_go120.go
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2022 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-//go:build go1.20
-
-package curve25519
-
-import "crypto/ecdh"
-
-func x25519(dst *[32]byte, scalar, point []byte) ([]byte, error) {
- curve := ecdh.X25519()
- pub, err := curve.NewPublicKey(point)
- if err != nil {
- return nil, err
- }
- priv, err := curve.NewPrivateKey(scalar)
- if err != nil {
- return nil, err
- }
- out, err := priv.ECDH(pub)
- if err != nil {
- return nil, err
- }
- copy(dst[:], out)
- return dst[:], nil
-}
-
-func scalarMult(dst, scalar, point *[32]byte) {
- if _, err := x25519(dst, scalar[:], point[:]); err != nil {
- // The only error condition for x25519 when the inputs are 32 bytes long
- // is if the output would have been the all-zero value.
- for i := range dst {
- dst[i] = 0
- }
- }
-}
-
-func scalarBaseMult(dst, scalar *[32]byte) {
- curve := ecdh.X25519()
- priv, err := curve.NewPrivateKey(scalar[:])
- if err != nil {
- panic("curve25519: internal error: scalarBaseMult was not 32 bytes")
- }
- copy(dst[:], priv.PublicKey().Bytes())
-}
diff --git a/vendor/golang.org/x/crypto/curve25519/internal/field/README b/vendor/golang.org/x/crypto/curve25519/internal/field/README
deleted file mode 100644
index e25bca7dc..000000000
--- a/vendor/golang.org/x/crypto/curve25519/internal/field/README
+++ /dev/null
@@ -1,7 +0,0 @@
-This package is kept in sync with crypto/ed25519/internal/edwards25519/field in
-the standard library.
-
-If there are any changes in the standard library that need to be synced to this
-package, run sync.sh. It will not overwrite any local changes made since the
-previous sync, so it's ok to land changes in this package first, and then sync
-to the standard library later.
diff --git a/vendor/golang.org/x/crypto/curve25519/internal/field/fe.go b/vendor/golang.org/x/crypto/curve25519/internal/field/fe.go
deleted file mode 100644
index ca841ad99..000000000
--- a/vendor/golang.org/x/crypto/curve25519/internal/field/fe.go
+++ /dev/null
@@ -1,416 +0,0 @@
-// Copyright (c) 2017 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-// Package field implements fast arithmetic modulo 2^255-19.
-package field
-
-import (
- "crypto/subtle"
- "encoding/binary"
- "math/bits"
-)
-
-// Element represents an element of the field GF(2^255-19). Note that this
-// is not a cryptographically secure group, and should only be used to interact
-// with edwards25519.Point coordinates.
-//
-// This type works similarly to math/big.Int, and all arguments and receivers
-// are allowed to alias.
-//
-// The zero value is a valid zero element.
-type Element struct {
- // An element t represents the integer
- // t.l0 + t.l1*2^51 + t.l2*2^102 + t.l3*2^153 + t.l4*2^204
- //
- // Between operations, all limbs are expected to be lower than 2^52.
- l0 uint64
- l1 uint64
- l2 uint64
- l3 uint64
- l4 uint64
-}
-
-const maskLow51Bits uint64 = (1 << 51) - 1
-
-var feZero = &Element{0, 0, 0, 0, 0}
-
-// Zero sets v = 0, and returns v.
-func (v *Element) Zero() *Element {
- *v = *feZero
- return v
-}
-
-var feOne = &Element{1, 0, 0, 0, 0}
-
-// One sets v = 1, and returns v.
-func (v *Element) One() *Element {
- *v = *feOne
- return v
-}
-
-// reduce reduces v modulo 2^255 - 19 and returns it.
-func (v *Element) reduce() *Element {
- v.carryPropagate()
-
- // After the light reduction we now have a field element representation
- // v < 2^255 + 2^13 * 19, but need v < 2^255 - 19.
-
- // If v >= 2^255 - 19, then v + 19 >= 2^255, which would overflow 2^255 - 1,
- // generating a carry. That is, c will be 0 if v < 2^255 - 19, and 1 otherwise.
- c := (v.l0 + 19) >> 51
- c = (v.l1 + c) >> 51
- c = (v.l2 + c) >> 51
- c = (v.l3 + c) >> 51
- c = (v.l4 + c) >> 51
-
- // If v < 2^255 - 19 and c = 0, this will be a no-op. Otherwise, it's
- // effectively applying the reduction identity to the carry.
- v.l0 += 19 * c
-
- v.l1 += v.l0 >> 51
- v.l0 = v.l0 & maskLow51Bits
- v.l2 += v.l1 >> 51
- v.l1 = v.l1 & maskLow51Bits
- v.l3 += v.l2 >> 51
- v.l2 = v.l2 & maskLow51Bits
- v.l4 += v.l3 >> 51
- v.l3 = v.l3 & maskLow51Bits
- // no additional carry
- v.l4 = v.l4 & maskLow51Bits
-
- return v
-}
-
-// Add sets v = a + b, and returns v.
-func (v *Element) Add(a, b *Element) *Element {
- v.l0 = a.l0 + b.l0
- v.l1 = a.l1 + b.l1
- v.l2 = a.l2 + b.l2
- v.l3 = a.l3 + b.l3
- v.l4 = a.l4 + b.l4
- // Using the generic implementation here is actually faster than the
- // assembly. Probably because the body of this function is so simple that
- // the compiler can figure out better optimizations by inlining the carry
- // propagation. TODO
- return v.carryPropagateGeneric()
-}
-
-// Subtract sets v = a - b, and returns v.
-func (v *Element) Subtract(a, b *Element) *Element {
- // We first add 2 * p, to guarantee the subtraction won't underflow, and
- // then subtract b (which can be up to 2^255 + 2^13 * 19).
- v.l0 = (a.l0 + 0xFFFFFFFFFFFDA) - b.l0
- v.l1 = (a.l1 + 0xFFFFFFFFFFFFE) - b.l1
- v.l2 = (a.l2 + 0xFFFFFFFFFFFFE) - b.l2
- v.l3 = (a.l3 + 0xFFFFFFFFFFFFE) - b.l3
- v.l4 = (a.l4 + 0xFFFFFFFFFFFFE) - b.l4
- return v.carryPropagate()
-}
-
-// Negate sets v = -a, and returns v.
-func (v *Element) Negate(a *Element) *Element {
- return v.Subtract(feZero, a)
-}
-
-// Invert sets v = 1/z mod p, and returns v.
-//
-// If z == 0, Invert returns v = 0.
-func (v *Element) Invert(z *Element) *Element {
- // Inversion is implemented as exponentiation with exponent p − 2. It uses the
- // same sequence of 255 squarings and 11 multiplications as [Curve25519].
- var z2, z9, z11, z2_5_0, z2_10_0, z2_20_0, z2_50_0, z2_100_0, t Element
-
- z2.Square(z) // 2
- t.Square(&z2) // 4
- t.Square(&t) // 8
- z9.Multiply(&t, z) // 9
- z11.Multiply(&z9, &z2) // 11
- t.Square(&z11) // 22
- z2_5_0.Multiply(&t, &z9) // 31 = 2^5 - 2^0
-
- t.Square(&z2_5_0) // 2^6 - 2^1
- for i := 0; i < 4; i++ {
- t.Square(&t) // 2^10 - 2^5
- }
- z2_10_0.Multiply(&t, &z2_5_0) // 2^10 - 2^0
-
- t.Square(&z2_10_0) // 2^11 - 2^1
- for i := 0; i < 9; i++ {
- t.Square(&t) // 2^20 - 2^10
- }
- z2_20_0.Multiply(&t, &z2_10_0) // 2^20 - 2^0
-
- t.Square(&z2_20_0) // 2^21 - 2^1
- for i := 0; i < 19; i++ {
- t.Square(&t) // 2^40 - 2^20
- }
- t.Multiply(&t, &z2_20_0) // 2^40 - 2^0
-
- t.Square(&t) // 2^41 - 2^1
- for i := 0; i < 9; i++ {
- t.Square(&t) // 2^50 - 2^10
- }
- z2_50_0.Multiply(&t, &z2_10_0) // 2^50 - 2^0
-
- t.Square(&z2_50_0) // 2^51 - 2^1
- for i := 0; i < 49; i++ {
- t.Square(&t) // 2^100 - 2^50
- }
- z2_100_0.Multiply(&t, &z2_50_0) // 2^100 - 2^0
-
- t.Square(&z2_100_0) // 2^101 - 2^1
- for i := 0; i < 99; i++ {
- t.Square(&t) // 2^200 - 2^100
- }
- t.Multiply(&t, &z2_100_0) // 2^200 - 2^0
-
- t.Square(&t) // 2^201 - 2^1
- for i := 0; i < 49; i++ {
- t.Square(&t) // 2^250 - 2^50
- }
- t.Multiply(&t, &z2_50_0) // 2^250 - 2^0
-
- t.Square(&t) // 2^251 - 2^1
- t.Square(&t) // 2^252 - 2^2
- t.Square(&t) // 2^253 - 2^3
- t.Square(&t) // 2^254 - 2^4
- t.Square(&t) // 2^255 - 2^5
-
- return v.Multiply(&t, &z11) // 2^255 - 21
-}
-
-// Set sets v = a, and returns v.
-func (v *Element) Set(a *Element) *Element {
- *v = *a
- return v
-}
-
-// SetBytes sets v to x, which must be a 32-byte little-endian encoding.
-//
-// Consistent with RFC 7748, the most significant bit (the high bit of the
-// last byte) is ignored, and non-canonical values (2^255-19 through 2^255-1)
-// are accepted. Note that this is laxer than specified by RFC 8032.
-func (v *Element) SetBytes(x []byte) *Element {
- if len(x) != 32 {
- panic("edwards25519: invalid field element input size")
- }
-
- // Bits 0:51 (bytes 0:8, bits 0:64, shift 0, mask 51).
- v.l0 = binary.LittleEndian.Uint64(x[0:8])
- v.l0 &= maskLow51Bits
- // Bits 51:102 (bytes 6:14, bits 48:112, shift 3, mask 51).
- v.l1 = binary.LittleEndian.Uint64(x[6:14]) >> 3
- v.l1 &= maskLow51Bits
- // Bits 102:153 (bytes 12:20, bits 96:160, shift 6, mask 51).
- v.l2 = binary.LittleEndian.Uint64(x[12:20]) >> 6
- v.l2 &= maskLow51Bits
- // Bits 153:204 (bytes 19:27, bits 152:216, shift 1, mask 51).
- v.l3 = binary.LittleEndian.Uint64(x[19:27]) >> 1
- v.l3 &= maskLow51Bits
- // Bits 204:251 (bytes 24:32, bits 192:256, shift 12, mask 51).
- // Note: not bytes 25:33, shift 4, to avoid overread.
- v.l4 = binary.LittleEndian.Uint64(x[24:32]) >> 12
- v.l4 &= maskLow51Bits
-
- return v
-}
-
-// Bytes returns the canonical 32-byte little-endian encoding of v.
-func (v *Element) Bytes() []byte {
- // This function is outlined to make the allocations inline in the caller
- // rather than happen on the heap.
- var out [32]byte
- return v.bytes(&out)
-}
-
-func (v *Element) bytes(out *[32]byte) []byte {
- t := *v
- t.reduce()
-
- var buf [8]byte
- for i, l := range [5]uint64{t.l0, t.l1, t.l2, t.l3, t.l4} {
- bitsOffset := i * 51
- binary.LittleEndian.PutUint64(buf[:], l<= len(out) {
- break
- }
- out[off] |= bb
- }
- }
-
- return out[:]
-}
-
-// Equal returns 1 if v and u are equal, and 0 otherwise.
-func (v *Element) Equal(u *Element) int {
- sa, sv := u.Bytes(), v.Bytes()
- return subtle.ConstantTimeCompare(sa, sv)
-}
-
-// mask64Bits returns 0xffffffff if cond is 1, and 0 otherwise.
-func mask64Bits(cond int) uint64 { return ^(uint64(cond) - 1) }
-
-// Select sets v to a if cond == 1, and to b if cond == 0.
-func (v *Element) Select(a, b *Element, cond int) *Element {
- m := mask64Bits(cond)
- v.l0 = (m & a.l0) | (^m & b.l0)
- v.l1 = (m & a.l1) | (^m & b.l1)
- v.l2 = (m & a.l2) | (^m & b.l2)
- v.l3 = (m & a.l3) | (^m & b.l3)
- v.l4 = (m & a.l4) | (^m & b.l4)
- return v
-}
-
-// Swap swaps v and u if cond == 1 or leaves them unchanged if cond == 0, and returns v.
-func (v *Element) Swap(u *Element, cond int) {
- m := mask64Bits(cond)
- t := m & (v.l0 ^ u.l0)
- v.l0 ^= t
- u.l0 ^= t
- t = m & (v.l1 ^ u.l1)
- v.l1 ^= t
- u.l1 ^= t
- t = m & (v.l2 ^ u.l2)
- v.l2 ^= t
- u.l2 ^= t
- t = m & (v.l3 ^ u.l3)
- v.l3 ^= t
- u.l3 ^= t
- t = m & (v.l4 ^ u.l4)
- v.l4 ^= t
- u.l4 ^= t
-}
-
-// IsNegative returns 1 if v is negative, and 0 otherwise.
-func (v *Element) IsNegative() int {
- return int(v.Bytes()[0] & 1)
-}
-
-// Absolute sets v to |u|, and returns v.
-func (v *Element) Absolute(u *Element) *Element {
- return v.Select(new(Element).Negate(u), u, u.IsNegative())
-}
-
-// Multiply sets v = x * y, and returns v.
-func (v *Element) Multiply(x, y *Element) *Element {
- feMul(v, x, y)
- return v
-}
-
-// Square sets v = x * x, and returns v.
-func (v *Element) Square(x *Element) *Element {
- feSquare(v, x)
- return v
-}
-
-// Mult32 sets v = x * y, and returns v.
-func (v *Element) Mult32(x *Element, y uint32) *Element {
- x0lo, x0hi := mul51(x.l0, y)
- x1lo, x1hi := mul51(x.l1, y)
- x2lo, x2hi := mul51(x.l2, y)
- x3lo, x3hi := mul51(x.l3, y)
- x4lo, x4hi := mul51(x.l4, y)
- v.l0 = x0lo + 19*x4hi // carried over per the reduction identity
- v.l1 = x1lo + x0hi
- v.l2 = x2lo + x1hi
- v.l3 = x3lo + x2hi
- v.l4 = x4lo + x3hi
- // The hi portions are going to be only 32 bits, plus any previous excess,
- // so we can skip the carry propagation.
- return v
-}
-
-// mul51 returns lo + hi * 2⁵¹ = a * b.
-func mul51(a uint64, b uint32) (lo uint64, hi uint64) {
- mh, ml := bits.Mul64(a, uint64(b))
- lo = ml & maskLow51Bits
- hi = (mh << 13) | (ml >> 51)
- return
-}
-
-// Pow22523 set v = x^((p-5)/8), and returns v. (p-5)/8 is 2^252-3.
-func (v *Element) Pow22523(x *Element) *Element {
- var t0, t1, t2 Element
-
- t0.Square(x) // x^2
- t1.Square(&t0) // x^4
- t1.Square(&t1) // x^8
- t1.Multiply(x, &t1) // x^9
- t0.Multiply(&t0, &t1) // x^11
- t0.Square(&t0) // x^22
- t0.Multiply(&t1, &t0) // x^31
- t1.Square(&t0) // x^62
- for i := 1; i < 5; i++ { // x^992
- t1.Square(&t1)
- }
- t0.Multiply(&t1, &t0) // x^1023 -> 1023 = 2^10 - 1
- t1.Square(&t0) // 2^11 - 2
- for i := 1; i < 10; i++ { // 2^20 - 2^10
- t1.Square(&t1)
- }
- t1.Multiply(&t1, &t0) // 2^20 - 1
- t2.Square(&t1) // 2^21 - 2
- for i := 1; i < 20; i++ { // 2^40 - 2^20
- t2.Square(&t2)
- }
- t1.Multiply(&t2, &t1) // 2^40 - 1
- t1.Square(&t1) // 2^41 - 2
- for i := 1; i < 10; i++ { // 2^50 - 2^10
- t1.Square(&t1)
- }
- t0.Multiply(&t1, &t0) // 2^50 - 1
- t1.Square(&t0) // 2^51 - 2
- for i := 1; i < 50; i++ { // 2^100 - 2^50
- t1.Square(&t1)
- }
- t1.Multiply(&t1, &t0) // 2^100 - 1
- t2.Square(&t1) // 2^101 - 2
- for i := 1; i < 100; i++ { // 2^200 - 2^100
- t2.Square(&t2)
- }
- t1.Multiply(&t2, &t1) // 2^200 - 1
- t1.Square(&t1) // 2^201 - 2
- for i := 1; i < 50; i++ { // 2^250 - 2^50
- t1.Square(&t1)
- }
- t0.Multiply(&t1, &t0) // 2^250 - 1
- t0.Square(&t0) // 2^251 - 2
- t0.Square(&t0) // 2^252 - 4
- return v.Multiply(&t0, x) // 2^252 - 3 -> x^(2^252-3)
-}
-
-// sqrtM1 is 2^((p-1)/4), which squared is equal to -1 by Euler's Criterion.
-var sqrtM1 = &Element{1718705420411056, 234908883556509,
- 2233514472574048, 2117202627021982, 765476049583133}
-
-// SqrtRatio sets r to the non-negative square root of the ratio of u and v.
-//
-// If u/v is square, SqrtRatio returns r and 1. If u/v is not square, SqrtRatio
-// sets r according to Section 4.3 of draft-irtf-cfrg-ristretto255-decaf448-00,
-// and returns r and 0.
-func (r *Element) SqrtRatio(u, v *Element) (rr *Element, wasSquare int) {
- var a, b Element
-
- // r = (u * v3) * (u * v7)^((p-5)/8)
- v2 := a.Square(v)
- uv3 := b.Multiply(u, b.Multiply(v2, v))
- uv7 := a.Multiply(uv3, a.Square(v2))
- r.Multiply(uv3, r.Pow22523(uv7))
-
- check := a.Multiply(v, a.Square(r)) // check = v * r^2
-
- uNeg := b.Negate(u)
- correctSignSqrt := check.Equal(u)
- flippedSignSqrt := check.Equal(uNeg)
- flippedSignSqrtI := check.Equal(uNeg.Multiply(uNeg, sqrtM1))
-
- rPrime := b.Multiply(r, sqrtM1) // r_prime = SQRT_M1 * r
- // r = CT_SELECT(r_prime IF flipped_sign_sqrt | flipped_sign_sqrt_i ELSE r)
- r.Select(rPrime, r, flippedSignSqrt|flippedSignSqrtI)
-
- r.Absolute(r) // Choose the nonnegative square root.
- return r, correctSignSqrt | flippedSignSqrt
-}
diff --git a/vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64.go b/vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64.go
deleted file mode 100644
index 70c541692..000000000
--- a/vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64.go
+++ /dev/null
@@ -1,15 +0,0 @@
-// Code generated by command: go run fe_amd64_asm.go -out ../fe_amd64.s -stubs ../fe_amd64.go -pkg field. DO NOT EDIT.
-
-//go:build amd64 && gc && !purego
-
-package field
-
-// feMul sets out = a * b. It works like feMulGeneric.
-//
-//go:noescape
-func feMul(out *Element, a *Element, b *Element)
-
-// feSquare sets out = a * a. It works like feSquareGeneric.
-//
-//go:noescape
-func feSquare(out *Element, a *Element)
diff --git a/vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64.s b/vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64.s
deleted file mode 100644
index 60817acc4..000000000
--- a/vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64.s
+++ /dev/null
@@ -1,378 +0,0 @@
-// Code generated by command: go run fe_amd64_asm.go -out ../fe_amd64.s -stubs ../fe_amd64.go -pkg field. DO NOT EDIT.
-
-//go:build amd64 && gc && !purego
-
-#include "textflag.h"
-
-// func feMul(out *Element, a *Element, b *Element)
-TEXT ·feMul(SB), NOSPLIT, $0-24
- MOVQ a+8(FP), CX
- MOVQ b+16(FP), BX
-
- // r0 = a0×b0
- MOVQ (CX), AX
- MULQ (BX)
- MOVQ AX, DI
- MOVQ DX, SI
-
- // r0 += 19×a1×b4
- MOVQ 8(CX), AX
- IMUL3Q $0x13, AX, AX
- MULQ 32(BX)
- ADDQ AX, DI
- ADCQ DX, SI
-
- // r0 += 19×a2×b3
- MOVQ 16(CX), AX
- IMUL3Q $0x13, AX, AX
- MULQ 24(BX)
- ADDQ AX, DI
- ADCQ DX, SI
-
- // r0 += 19×a3×b2
- MOVQ 24(CX), AX
- IMUL3Q $0x13, AX, AX
- MULQ 16(BX)
- ADDQ AX, DI
- ADCQ DX, SI
-
- // r0 += 19×a4×b1
- MOVQ 32(CX), AX
- IMUL3Q $0x13, AX, AX
- MULQ 8(BX)
- ADDQ AX, DI
- ADCQ DX, SI
-
- // r1 = a0×b1
- MOVQ (CX), AX
- MULQ 8(BX)
- MOVQ AX, R9
- MOVQ DX, R8
-
- // r1 += a1×b0
- MOVQ 8(CX), AX
- MULQ (BX)
- ADDQ AX, R9
- ADCQ DX, R8
-
- // r1 += 19×a2×b4
- MOVQ 16(CX), AX
- IMUL3Q $0x13, AX, AX
- MULQ 32(BX)
- ADDQ AX, R9
- ADCQ DX, R8
-
- // r1 += 19×a3×b3
- MOVQ 24(CX), AX
- IMUL3Q $0x13, AX, AX
- MULQ 24(BX)
- ADDQ AX, R9
- ADCQ DX, R8
-
- // r1 += 19×a4×b2
- MOVQ 32(CX), AX
- IMUL3Q $0x13, AX, AX
- MULQ 16(BX)
- ADDQ AX, R9
- ADCQ DX, R8
-
- // r2 = a0×b2
- MOVQ (CX), AX
- MULQ 16(BX)
- MOVQ AX, R11
- MOVQ DX, R10
-
- // r2 += a1×b1
- MOVQ 8(CX), AX
- MULQ 8(BX)
- ADDQ AX, R11
- ADCQ DX, R10
-
- // r2 += a2×b0
- MOVQ 16(CX), AX
- MULQ (BX)
- ADDQ AX, R11
- ADCQ DX, R10
-
- // r2 += 19×a3×b4
- MOVQ 24(CX), AX
- IMUL3Q $0x13, AX, AX
- MULQ 32(BX)
- ADDQ AX, R11
- ADCQ DX, R10
-
- // r2 += 19×a4×b3
- MOVQ 32(CX), AX
- IMUL3Q $0x13, AX, AX
- MULQ 24(BX)
- ADDQ AX, R11
- ADCQ DX, R10
-
- // r3 = a0×b3
- MOVQ (CX), AX
- MULQ 24(BX)
- MOVQ AX, R13
- MOVQ DX, R12
-
- // r3 += a1×b2
- MOVQ 8(CX), AX
- MULQ 16(BX)
- ADDQ AX, R13
- ADCQ DX, R12
-
- // r3 += a2×b1
- MOVQ 16(CX), AX
- MULQ 8(BX)
- ADDQ AX, R13
- ADCQ DX, R12
-
- // r3 += a3×b0
- MOVQ 24(CX), AX
- MULQ (BX)
- ADDQ AX, R13
- ADCQ DX, R12
-
- // r3 += 19×a4×b4
- MOVQ 32(CX), AX
- IMUL3Q $0x13, AX, AX
- MULQ 32(BX)
- ADDQ AX, R13
- ADCQ DX, R12
-
- // r4 = a0×b4
- MOVQ (CX), AX
- MULQ 32(BX)
- MOVQ AX, R15
- MOVQ DX, R14
-
- // r4 += a1×b3
- MOVQ 8(CX), AX
- MULQ 24(BX)
- ADDQ AX, R15
- ADCQ DX, R14
-
- // r4 += a2×b2
- MOVQ 16(CX), AX
- MULQ 16(BX)
- ADDQ AX, R15
- ADCQ DX, R14
-
- // r4 += a3×b1
- MOVQ 24(CX), AX
- MULQ 8(BX)
- ADDQ AX, R15
- ADCQ DX, R14
-
- // r4 += a4×b0
- MOVQ 32(CX), AX
- MULQ (BX)
- ADDQ AX, R15
- ADCQ DX, R14
-
- // First reduction chain
- MOVQ $0x0007ffffffffffff, AX
- SHLQ $0x0d, DI, SI
- SHLQ $0x0d, R9, R8
- SHLQ $0x0d, R11, R10
- SHLQ $0x0d, R13, R12
- SHLQ $0x0d, R15, R14
- ANDQ AX, DI
- IMUL3Q $0x13, R14, R14
- ADDQ R14, DI
- ANDQ AX, R9
- ADDQ SI, R9
- ANDQ AX, R11
- ADDQ R8, R11
- ANDQ AX, R13
- ADDQ R10, R13
- ANDQ AX, R15
- ADDQ R12, R15
-
- // Second reduction chain (carryPropagate)
- MOVQ DI, SI
- SHRQ $0x33, SI
- MOVQ R9, R8
- SHRQ $0x33, R8
- MOVQ R11, R10
- SHRQ $0x33, R10
- MOVQ R13, R12
- SHRQ $0x33, R12
- MOVQ R15, R14
- SHRQ $0x33, R14
- ANDQ AX, DI
- IMUL3Q $0x13, R14, R14
- ADDQ R14, DI
- ANDQ AX, R9
- ADDQ SI, R9
- ANDQ AX, R11
- ADDQ R8, R11
- ANDQ AX, R13
- ADDQ R10, R13
- ANDQ AX, R15
- ADDQ R12, R15
-
- // Store output
- MOVQ out+0(FP), AX
- MOVQ DI, (AX)
- MOVQ R9, 8(AX)
- MOVQ R11, 16(AX)
- MOVQ R13, 24(AX)
- MOVQ R15, 32(AX)
- RET
-
-// func feSquare(out *Element, a *Element)
-TEXT ·feSquare(SB), NOSPLIT, $0-16
- MOVQ a+8(FP), CX
-
- // r0 = l0×l0
- MOVQ (CX), AX
- MULQ (CX)
- MOVQ AX, SI
- MOVQ DX, BX
-
- // r0 += 38×l1×l4
- MOVQ 8(CX), AX
- IMUL3Q $0x26, AX, AX
- MULQ 32(CX)
- ADDQ AX, SI
- ADCQ DX, BX
-
- // r0 += 38×l2×l3
- MOVQ 16(CX), AX
- IMUL3Q $0x26, AX, AX
- MULQ 24(CX)
- ADDQ AX, SI
- ADCQ DX, BX
-
- // r1 = 2×l0×l1
- MOVQ (CX), AX
- SHLQ $0x01, AX
- MULQ 8(CX)
- MOVQ AX, R8
- MOVQ DX, DI
-
- // r1 += 38×l2×l4
- MOVQ 16(CX), AX
- IMUL3Q $0x26, AX, AX
- MULQ 32(CX)
- ADDQ AX, R8
- ADCQ DX, DI
-
- // r1 += 19×l3×l3
- MOVQ 24(CX), AX
- IMUL3Q $0x13, AX, AX
- MULQ 24(CX)
- ADDQ AX, R8
- ADCQ DX, DI
-
- // r2 = 2×l0×l2
- MOVQ (CX), AX
- SHLQ $0x01, AX
- MULQ 16(CX)
- MOVQ AX, R10
- MOVQ DX, R9
-
- // r2 += l1×l1
- MOVQ 8(CX), AX
- MULQ 8(CX)
- ADDQ AX, R10
- ADCQ DX, R9
-
- // r2 += 38×l3×l4
- MOVQ 24(CX), AX
- IMUL3Q $0x26, AX, AX
- MULQ 32(CX)
- ADDQ AX, R10
- ADCQ DX, R9
-
- // r3 = 2×l0×l3
- MOVQ (CX), AX
- SHLQ $0x01, AX
- MULQ 24(CX)
- MOVQ AX, R12
- MOVQ DX, R11
-
- // r3 += 2×l1×l2
- MOVQ 8(CX), AX
- IMUL3Q $0x02, AX, AX
- MULQ 16(CX)
- ADDQ AX, R12
- ADCQ DX, R11
-
- // r3 += 19×l4×l4
- MOVQ 32(CX), AX
- IMUL3Q $0x13, AX, AX
- MULQ 32(CX)
- ADDQ AX, R12
- ADCQ DX, R11
-
- // r4 = 2×l0×l4
- MOVQ (CX), AX
- SHLQ $0x01, AX
- MULQ 32(CX)
- MOVQ AX, R14
- MOVQ DX, R13
-
- // r4 += 2×l1×l3
- MOVQ 8(CX), AX
- IMUL3Q $0x02, AX, AX
- MULQ 24(CX)
- ADDQ AX, R14
- ADCQ DX, R13
-
- // r4 += l2×l2
- MOVQ 16(CX), AX
- MULQ 16(CX)
- ADDQ AX, R14
- ADCQ DX, R13
-
- // First reduction chain
- MOVQ $0x0007ffffffffffff, AX
- SHLQ $0x0d, SI, BX
- SHLQ $0x0d, R8, DI
- SHLQ $0x0d, R10, R9
- SHLQ $0x0d, R12, R11
- SHLQ $0x0d, R14, R13
- ANDQ AX, SI
- IMUL3Q $0x13, R13, R13
- ADDQ R13, SI
- ANDQ AX, R8
- ADDQ BX, R8
- ANDQ AX, R10
- ADDQ DI, R10
- ANDQ AX, R12
- ADDQ R9, R12
- ANDQ AX, R14
- ADDQ R11, R14
-
- // Second reduction chain (carryPropagate)
- MOVQ SI, BX
- SHRQ $0x33, BX
- MOVQ R8, DI
- SHRQ $0x33, DI
- MOVQ R10, R9
- SHRQ $0x33, R9
- MOVQ R12, R11
- SHRQ $0x33, R11
- MOVQ R14, R13
- SHRQ $0x33, R13
- ANDQ AX, SI
- IMUL3Q $0x13, R13, R13
- ADDQ R13, SI
- ANDQ AX, R8
- ADDQ BX, R8
- ANDQ AX, R10
- ADDQ DI, R10
- ANDQ AX, R12
- ADDQ R9, R12
- ANDQ AX, R14
- ADDQ R11, R14
-
- // Store output
- MOVQ out+0(FP), AX
- MOVQ SI, (AX)
- MOVQ R8, 8(AX)
- MOVQ R10, 16(AX)
- MOVQ R12, 24(AX)
- MOVQ R14, 32(AX)
- RET
diff --git a/vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64_noasm.go b/vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64_noasm.go
deleted file mode 100644
index 9da280d1d..000000000
--- a/vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64_noasm.go
+++ /dev/null
@@ -1,11 +0,0 @@
-// Copyright (c) 2019 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-//go:build !amd64 || !gc || purego
-
-package field
-
-func feMul(v, x, y *Element) { feMulGeneric(v, x, y) }
-
-func feSquare(v, x *Element) { feSquareGeneric(v, x) }
diff --git a/vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64.go b/vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64.go
deleted file mode 100644
index 075fe9b92..000000000
--- a/vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64.go
+++ /dev/null
@@ -1,15 +0,0 @@
-// Copyright (c) 2020 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-//go:build arm64 && gc && !purego
-
-package field
-
-//go:noescape
-func carryPropagate(v *Element)
-
-func (v *Element) carryPropagate() *Element {
- carryPropagate(v)
- return v
-}
diff --git a/vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64.s b/vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64.s
deleted file mode 100644
index 3126a4341..000000000
--- a/vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64.s
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) 2020 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-//go:build arm64 && gc && !purego
-
-#include "textflag.h"
-
-// carryPropagate works exactly like carryPropagateGeneric and uses the
-// same AND, ADD, and LSR+MADD instructions emitted by the compiler, but
-// avoids loading R0-R4 twice and uses LDP and STP.
-//
-// See https://golang.org/issues/43145 for the main compiler issue.
-//
-// func carryPropagate(v *Element)
-TEXT ·carryPropagate(SB),NOFRAME|NOSPLIT,$0-8
- MOVD v+0(FP), R20
-
- LDP 0(R20), (R0, R1)
- LDP 16(R20), (R2, R3)
- MOVD 32(R20), R4
-
- AND $0x7ffffffffffff, R0, R10
- AND $0x7ffffffffffff, R1, R11
- AND $0x7ffffffffffff, R2, R12
- AND $0x7ffffffffffff, R3, R13
- AND $0x7ffffffffffff, R4, R14
-
- ADD R0>>51, R11, R11
- ADD R1>>51, R12, R12
- ADD R2>>51, R13, R13
- ADD R3>>51, R14, R14
- // R4>>51 * 19 + R10 -> R10
- LSR $51, R4, R21
- MOVD $19, R22
- MADD R22, R10, R21, R10
-
- STP (R10, R11), 0(R20)
- STP (R12, R13), 16(R20)
- MOVD R14, 32(R20)
-
- RET
diff --git a/vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64_noasm.go b/vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64_noasm.go
deleted file mode 100644
index fc029ac12..000000000
--- a/vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64_noasm.go
+++ /dev/null
@@ -1,11 +0,0 @@
-// Copyright (c) 2021 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-//go:build !arm64 || !gc || purego
-
-package field
-
-func (v *Element) carryPropagate() *Element {
- return v.carryPropagateGeneric()
-}
diff --git a/vendor/golang.org/x/crypto/curve25519/internal/field/fe_generic.go b/vendor/golang.org/x/crypto/curve25519/internal/field/fe_generic.go
deleted file mode 100644
index 2671217da..000000000
--- a/vendor/golang.org/x/crypto/curve25519/internal/field/fe_generic.go
+++ /dev/null
@@ -1,264 +0,0 @@
-// Copyright (c) 2017 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package field
-
-import "math/bits"
-
-// uint128 holds a 128-bit number as two 64-bit limbs, for use with the
-// bits.Mul64 and bits.Add64 intrinsics.
-type uint128 struct {
- lo, hi uint64
-}
-
-// mul64 returns a * b.
-func mul64(a, b uint64) uint128 {
- hi, lo := bits.Mul64(a, b)
- return uint128{lo, hi}
-}
-
-// addMul64 returns v + a * b.
-func addMul64(v uint128, a, b uint64) uint128 {
- hi, lo := bits.Mul64(a, b)
- lo, c := bits.Add64(lo, v.lo, 0)
- hi, _ = bits.Add64(hi, v.hi, c)
- return uint128{lo, hi}
-}
-
-// shiftRightBy51 returns a >> 51. a is assumed to be at most 115 bits.
-func shiftRightBy51(a uint128) uint64 {
- return (a.hi << (64 - 51)) | (a.lo >> 51)
-}
-
-func feMulGeneric(v, a, b *Element) {
- a0 := a.l0
- a1 := a.l1
- a2 := a.l2
- a3 := a.l3
- a4 := a.l4
-
- b0 := b.l0
- b1 := b.l1
- b2 := b.l2
- b3 := b.l3
- b4 := b.l4
-
- // Limb multiplication works like pen-and-paper columnar multiplication, but
- // with 51-bit limbs instead of digits.
- //
- // a4 a3 a2 a1 a0 x
- // b4 b3 b2 b1 b0 =
- // ------------------------
- // a4b0 a3b0 a2b0 a1b0 a0b0 +
- // a4b1 a3b1 a2b1 a1b1 a0b1 +
- // a4b2 a3b2 a2b2 a1b2 a0b2 +
- // a4b3 a3b3 a2b3 a1b3 a0b3 +
- // a4b4 a3b4 a2b4 a1b4 a0b4 =
- // ----------------------------------------------
- // r8 r7 r6 r5 r4 r3 r2 r1 r0
- //
- // We can then use the reduction identity (a * 2²⁵⁵ + b = a * 19 + b) to
- // reduce the limbs that would overflow 255 bits. r5 * 2²⁵⁵ becomes 19 * r5,
- // r6 * 2³⁰⁶ becomes 19 * r6 * 2⁵¹, etc.
- //
- // Reduction can be carried out simultaneously to multiplication. For
- // example, we do not compute r5: whenever the result of a multiplication
- // belongs to r5, like a1b4, we multiply it by 19 and add the result to r0.
- //
- // a4b0 a3b0 a2b0 a1b0 a0b0 +
- // a3b1 a2b1 a1b1 a0b1 19×a4b1 +
- // a2b2 a1b2 a0b2 19×a4b2 19×a3b2 +
- // a1b3 a0b3 19×a4b3 19×a3b3 19×a2b3 +
- // a0b4 19×a4b4 19×a3b4 19×a2b4 19×a1b4 =
- // --------------------------------------
- // r4 r3 r2 r1 r0
- //
- // Finally we add up the columns into wide, overlapping limbs.
-
- a1_19 := a1 * 19
- a2_19 := a2 * 19
- a3_19 := a3 * 19
- a4_19 := a4 * 19
-
- // r0 = a0×b0 + 19×(a1×b4 + a2×b3 + a3×b2 + a4×b1)
- r0 := mul64(a0, b0)
- r0 = addMul64(r0, a1_19, b4)
- r0 = addMul64(r0, a2_19, b3)
- r0 = addMul64(r0, a3_19, b2)
- r0 = addMul64(r0, a4_19, b1)
-
- // r1 = a0×b1 + a1×b0 + 19×(a2×b4 + a3×b3 + a4×b2)
- r1 := mul64(a0, b1)
- r1 = addMul64(r1, a1, b0)
- r1 = addMul64(r1, a2_19, b4)
- r1 = addMul64(r1, a3_19, b3)
- r1 = addMul64(r1, a4_19, b2)
-
- // r2 = a0×b2 + a1×b1 + a2×b0 + 19×(a3×b4 + a4×b3)
- r2 := mul64(a0, b2)
- r2 = addMul64(r2, a1, b1)
- r2 = addMul64(r2, a2, b0)
- r2 = addMul64(r2, a3_19, b4)
- r2 = addMul64(r2, a4_19, b3)
-
- // r3 = a0×b3 + a1×b2 + a2×b1 + a3×b0 + 19×a4×b4
- r3 := mul64(a0, b3)
- r3 = addMul64(r3, a1, b2)
- r3 = addMul64(r3, a2, b1)
- r3 = addMul64(r3, a3, b0)
- r3 = addMul64(r3, a4_19, b4)
-
- // r4 = a0×b4 + a1×b3 + a2×b2 + a3×b1 + a4×b0
- r4 := mul64(a0, b4)
- r4 = addMul64(r4, a1, b3)
- r4 = addMul64(r4, a2, b2)
- r4 = addMul64(r4, a3, b1)
- r4 = addMul64(r4, a4, b0)
-
- // After the multiplication, we need to reduce (carry) the five coefficients
- // to obtain a result with limbs that are at most slightly larger than 2⁵¹,
- // to respect the Element invariant.
- //
- // Overall, the reduction works the same as carryPropagate, except with
- // wider inputs: we take the carry for each coefficient by shifting it right
- // by 51, and add it to the limb above it. The top carry is multiplied by 19
- // according to the reduction identity and added to the lowest limb.
- //
- // The largest coefficient (r0) will be at most 111 bits, which guarantees
- // that all carries are at most 111 - 51 = 60 bits, which fits in a uint64.
- //
- // r0 = a0×b0 + 19×(a1×b4 + a2×b3 + a3×b2 + a4×b1)
- // r0 < 2⁵²×2⁵² + 19×(2⁵²×2⁵² + 2⁵²×2⁵² + 2⁵²×2⁵² + 2⁵²×2⁵²)
- // r0 < (1 + 19 × 4) × 2⁵² × 2⁵²
- // r0 < 2⁷ × 2⁵² × 2⁵²
- // r0 < 2¹¹¹
- //
- // Moreover, the top coefficient (r4) is at most 107 bits, so c4 is at most
- // 56 bits, and c4 * 19 is at most 61 bits, which again fits in a uint64 and
- // allows us to easily apply the reduction identity.
- //
- // r4 = a0×b4 + a1×b3 + a2×b2 + a3×b1 + a4×b0
- // r4 < 5 × 2⁵² × 2⁵²
- // r4 < 2¹⁰⁷
- //
-
- c0 := shiftRightBy51(r0)
- c1 := shiftRightBy51(r1)
- c2 := shiftRightBy51(r2)
- c3 := shiftRightBy51(r3)
- c4 := shiftRightBy51(r4)
-
- rr0 := r0.lo&maskLow51Bits + c4*19
- rr1 := r1.lo&maskLow51Bits + c0
- rr2 := r2.lo&maskLow51Bits + c1
- rr3 := r3.lo&maskLow51Bits + c2
- rr4 := r4.lo&maskLow51Bits + c3
-
- // Now all coefficients fit into 64-bit registers but are still too large to
- // be passed around as a Element. We therefore do one last carry chain,
- // where the carries will be small enough to fit in the wiggle room above 2⁵¹.
- *v = Element{rr0, rr1, rr2, rr3, rr4}
- v.carryPropagate()
-}
-
-func feSquareGeneric(v, a *Element) {
- l0 := a.l0
- l1 := a.l1
- l2 := a.l2
- l3 := a.l3
- l4 := a.l4
-
- // Squaring works precisely like multiplication above, but thanks to its
- // symmetry we get to group a few terms together.
- //
- // l4 l3 l2 l1 l0 x
- // l4 l3 l2 l1 l0 =
- // ------------------------
- // l4l0 l3l0 l2l0 l1l0 l0l0 +
- // l4l1 l3l1 l2l1 l1l1 l0l1 +
- // l4l2 l3l2 l2l2 l1l2 l0l2 +
- // l4l3 l3l3 l2l3 l1l3 l0l3 +
- // l4l4 l3l4 l2l4 l1l4 l0l4 =
- // ----------------------------------------------
- // r8 r7 r6 r5 r4 r3 r2 r1 r0
- //
- // l4l0 l3l0 l2l0 l1l0 l0l0 +
- // l3l1 l2l1 l1l1 l0l1 19×l4l1 +
- // l2l2 l1l2 l0l2 19×l4l2 19×l3l2 +
- // l1l3 l0l3 19×l4l3 19×l3l3 19×l2l3 +
- // l0l4 19×l4l4 19×l3l4 19×l2l4 19×l1l4 =
- // --------------------------------------
- // r4 r3 r2 r1 r0
- //
- // With precomputed 2×, 19×, and 2×19× terms, we can compute each limb with
- // only three Mul64 and four Add64, instead of five and eight.
-
- l0_2 := l0 * 2
- l1_2 := l1 * 2
-
- l1_38 := l1 * 38
- l2_38 := l2 * 38
- l3_38 := l3 * 38
-
- l3_19 := l3 * 19
- l4_19 := l4 * 19
-
- // r0 = l0×l0 + 19×(l1×l4 + l2×l3 + l3×l2 + l4×l1) = l0×l0 + 19×2×(l1×l4 + l2×l3)
- r0 := mul64(l0, l0)
- r0 = addMul64(r0, l1_38, l4)
- r0 = addMul64(r0, l2_38, l3)
-
- // r1 = l0×l1 + l1×l0 + 19×(l2×l4 + l3×l3 + l4×l2) = 2×l0×l1 + 19×2×l2×l4 + 19×l3×l3
- r1 := mul64(l0_2, l1)
- r1 = addMul64(r1, l2_38, l4)
- r1 = addMul64(r1, l3_19, l3)
-
- // r2 = l0×l2 + l1×l1 + l2×l0 + 19×(l3×l4 + l4×l3) = 2×l0×l2 + l1×l1 + 19×2×l3×l4
- r2 := mul64(l0_2, l2)
- r2 = addMul64(r2, l1, l1)
- r2 = addMul64(r2, l3_38, l4)
-
- // r3 = l0×l3 + l1×l2 + l2×l1 + l3×l0 + 19×l4×l4 = 2×l0×l3 + 2×l1×l2 + 19×l4×l4
- r3 := mul64(l0_2, l3)
- r3 = addMul64(r3, l1_2, l2)
- r3 = addMul64(r3, l4_19, l4)
-
- // r4 = l0×l4 + l1×l3 + l2×l2 + l3×l1 + l4×l0 = 2×l0×l4 + 2×l1×l3 + l2×l2
- r4 := mul64(l0_2, l4)
- r4 = addMul64(r4, l1_2, l3)
- r4 = addMul64(r4, l2, l2)
-
- c0 := shiftRightBy51(r0)
- c1 := shiftRightBy51(r1)
- c2 := shiftRightBy51(r2)
- c3 := shiftRightBy51(r3)
- c4 := shiftRightBy51(r4)
-
- rr0 := r0.lo&maskLow51Bits + c4*19
- rr1 := r1.lo&maskLow51Bits + c0
- rr2 := r2.lo&maskLow51Bits + c1
- rr3 := r3.lo&maskLow51Bits + c2
- rr4 := r4.lo&maskLow51Bits + c3
-
- *v = Element{rr0, rr1, rr2, rr3, rr4}
- v.carryPropagate()
-}
-
-// carryPropagateGeneric brings the limbs below 52 bits by applying the reduction
-// identity (a * 2²⁵⁵ + b = a * 19 + b) to the l4 carry. TODO inline
-func (v *Element) carryPropagateGeneric() *Element {
- c0 := v.l0 >> 51
- c1 := v.l1 >> 51
- c2 := v.l2 >> 51
- c3 := v.l3 >> 51
- c4 := v.l4 >> 51
-
- v.l0 = v.l0&maskLow51Bits + c4*19
- v.l1 = v.l1&maskLow51Bits + c0
- v.l2 = v.l2&maskLow51Bits + c1
- v.l3 = v.l3&maskLow51Bits + c2
- v.l4 = v.l4&maskLow51Bits + c3
-
- return v
-}
diff --git a/vendor/golang.org/x/crypto/curve25519/internal/field/sync.checkpoint b/vendor/golang.org/x/crypto/curve25519/internal/field/sync.checkpoint
deleted file mode 100644
index e3685f95c..000000000
--- a/vendor/golang.org/x/crypto/curve25519/internal/field/sync.checkpoint
+++ /dev/null
@@ -1 +0,0 @@
-b0c49ae9f59d233526f8934262c5bbbe14d4358d
diff --git a/vendor/golang.org/x/crypto/curve25519/internal/field/sync.sh b/vendor/golang.org/x/crypto/curve25519/internal/field/sync.sh
deleted file mode 100644
index 1ba22a8b4..000000000
--- a/vendor/golang.org/x/crypto/curve25519/internal/field/sync.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#! /bin/bash
-set -euo pipefail
-
-cd "$(git rev-parse --show-toplevel)"
-
-STD_PATH=src/crypto/ed25519/internal/edwards25519/field
-LOCAL_PATH=curve25519/internal/field
-LAST_SYNC_REF=$(cat $LOCAL_PATH/sync.checkpoint)
-
-git fetch https://go.googlesource.com/go master
-
-if git diff --quiet $LAST_SYNC_REF:$STD_PATH FETCH_HEAD:$STD_PATH; then
- echo "No changes."
-else
- NEW_REF=$(git rev-parse FETCH_HEAD | tee $LOCAL_PATH/sync.checkpoint)
- echo "Applying changes from $LAST_SYNC_REF to $NEW_REF..."
- git diff $LAST_SYNC_REF:$STD_PATH FETCH_HEAD:$STD_PATH | \
- git apply -3 --directory=$LOCAL_PATH
-fi
diff --git a/vendor/golang.org/x/crypto/hkdf/hkdf.go b/vendor/golang.org/x/crypto/hkdf/hkdf.go
index f4ded5fee..3bee66294 100644
--- a/vendor/golang.org/x/crypto/hkdf/hkdf.go
+++ b/vendor/golang.org/x/crypto/hkdf/hkdf.go
@@ -8,7 +8,7 @@
// HKDF is a cryptographic key derivation function (KDF) with the goal of
// expanding limited input keying material into one or more cryptographically
// strong secret keys.
-package hkdf // import "golang.org/x/crypto/hkdf"
+package hkdf
import (
"crypto/hmac"
diff --git a/vendor/golang.org/x/crypto/nacl/secretbox/secretbox.go b/vendor/golang.org/x/crypto/nacl/secretbox/secretbox.go
index f3c3242a0..1fe600ad0 100644
--- a/vendor/golang.org/x/crypto/nacl/secretbox/secretbox.go
+++ b/vendor/golang.org/x/crypto/nacl/secretbox/secretbox.go
@@ -32,7 +32,7 @@ chunk size.
This package is interoperable with NaCl: https://nacl.cr.yp.to/secretbox.html.
*/
-package secretbox // import "golang.org/x/crypto/nacl/secretbox"
+package secretbox
import (
"golang.org/x/crypto/internal/alias"
diff --git a/vendor/golang.org/x/crypto/salsa20/salsa/hsalsa20.go b/vendor/golang.org/x/crypto/salsa20/salsa/hsalsa20.go
index 3fd05b275..3685b3445 100644
--- a/vendor/golang.org/x/crypto/salsa20/salsa/hsalsa20.go
+++ b/vendor/golang.org/x/crypto/salsa20/salsa/hsalsa20.go
@@ -3,7 +3,7 @@
// license that can be found in the LICENSE file.
// Package salsa provides low-level access to functions in the Salsa family.
-package salsa // import "golang.org/x/crypto/salsa20/salsa"
+package salsa
import "math/bits"
diff --git a/vendor/golang.org/x/crypto/ssh/client_auth.go b/vendor/golang.org/x/crypto/ssh/client_auth.go
index 9486c5986..b93961010 100644
--- a/vendor/golang.org/x/crypto/ssh/client_auth.go
+++ b/vendor/golang.org/x/crypto/ssh/client_auth.go
@@ -71,6 +71,10 @@ func (c *connection) clientAuthenticate(config *ClientConfig) error {
for auth := AuthMethod(new(noneAuth)); auth != nil; {
ok, methods, err := auth.auth(sessionID, config.User, c.transport, config.Rand, extensions)
if err != nil {
+ // On disconnect, return error immediately
+ if _, ok := err.(*disconnectMsg); ok {
+ return err
+ }
// We return the error later if there is no other method left to
// try.
ok = authFailure
diff --git a/vendor/golang.org/x/crypto/ssh/doc.go b/vendor/golang.org/x/crypto/ssh/doc.go
index edbe63340..f5d352fe3 100644
--- a/vendor/golang.org/x/crypto/ssh/doc.go
+++ b/vendor/golang.org/x/crypto/ssh/doc.go
@@ -20,4 +20,4 @@ References:
This package does not fall under the stability promise of the Go language itself,
so its API may be changed when pressing needs arise.
*/
-package ssh // import "golang.org/x/crypto/ssh"
+package ssh
diff --git a/vendor/golang.org/x/net/http2/transport.go b/vendor/golang.org/x/net/http2/transport.go
index 98a49c6b6..61f511f97 100644
--- a/vendor/golang.org/x/net/http2/transport.go
+++ b/vendor/golang.org/x/net/http2/transport.go
@@ -827,10 +827,6 @@ func (t *Transport) newClientConn(c net.Conn, singleUse bool) (*ClientConn, erro
cc.henc.SetMaxDynamicTableSizeLimit(t.maxEncoderHeaderTableSize())
cc.peerMaxHeaderTableSize = initialHeaderTableSize
- if t.AllowHTTP {
- cc.nextStreamID = 3
- }
-
if cs, ok := c.(connectionStater); ok {
state := cs.ConnectionState()
cc.tlsState = &state
diff --git a/vendor/golang.org/x/sys/unix/mremap.go b/vendor/golang.org/x/sys/unix/mremap.go
index fd45fe529..3a5e776f8 100644
--- a/vendor/golang.org/x/sys/unix/mremap.go
+++ b/vendor/golang.org/x/sys/unix/mremap.go
@@ -50,3 +50,8 @@ func (m *mremapMmapper) Mremap(oldData []byte, newLength int, flags int) (data [
func Mremap(oldData []byte, newLength int, flags int) (data []byte, err error) {
return mapper.Mremap(oldData, newLength, flags)
}
+
+func MremapPtr(oldAddr unsafe.Pointer, oldSize uintptr, newAddr unsafe.Pointer, newSize uintptr, flags int) (ret unsafe.Pointer, err error) {
+ xaddr, err := mapper.mremap(uintptr(oldAddr), oldSize, newSize, flags, uintptr(newAddr))
+ return unsafe.Pointer(xaddr), err
+}
diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin.go b/vendor/golang.org/x/sys/unix/syscall_darwin.go
index 59542a897..4cc7b0059 100644
--- a/vendor/golang.org/x/sys/unix/syscall_darwin.go
+++ b/vendor/golang.org/x/sys/unix/syscall_darwin.go
@@ -542,6 +542,18 @@ func SysctlKinfoProcSlice(name string, args ...int) ([]KinfoProc, error) {
}
}
+//sys pthread_chdir_np(path string) (err error)
+
+func PthreadChdir(path string) (err error) {
+ return pthread_chdir_np(path)
+}
+
+//sys pthread_fchdir_np(fd int) (err error)
+
+func PthreadFchdir(fd int) (err error) {
+ return pthread_fchdir_np(fd)
+}
+
//sys sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error)
//sys shmat(id int, addr uintptr, flag int) (ret uintptr, err error)
diff --git a/vendor/golang.org/x/sys/unix/syscall_unix.go b/vendor/golang.org/x/sys/unix/syscall_unix.go
index 77081de8c..4e92e5aa4 100644
--- a/vendor/golang.org/x/sys/unix/syscall_unix.go
+++ b/vendor/golang.org/x/sys/unix/syscall_unix.go
@@ -154,6 +154,15 @@ func Munmap(b []byte) (err error) {
return mapper.Munmap(b)
}
+func MmapPtr(fd int, offset int64, addr unsafe.Pointer, length uintptr, prot int, flags int) (ret unsafe.Pointer, err error) {
+ xaddr, err := mapper.mmap(uintptr(addr), length, prot, flags, fd, offset)
+ return unsafe.Pointer(xaddr), err
+}
+
+func MunmapPtr(addr unsafe.Pointer, length uintptr) (err error) {
+ return mapper.munmap(uintptr(addr), length)
+}
+
func Read(fd int, p []byte) (n int, err error) {
n, err = read(fd, p)
if raceenabled {
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
index ccb02f240..07642c308 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
@@ -760,6 +760,39 @@ var libc_sysctl_trampoline_addr uintptr
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func pthread_chdir_np(path string) (err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(path)
+ if err != nil {
+ return
+ }
+ _, _, e1 := syscall_syscall(libc_pthread_chdir_np_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+var libc_pthread_chdir_np_trampoline_addr uintptr
+
+//go:cgo_import_dynamic libc_pthread_chdir_np pthread_chdir_np "/usr/lib/libSystem.B.dylib"
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func pthread_fchdir_np(fd int) (err error) {
+ _, _, e1 := syscall_syscall(libc_pthread_fchdir_np_trampoline_addr, uintptr(fd), 0, 0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+var libc_pthread_fchdir_np_trampoline_addr uintptr
+
+//go:cgo_import_dynamic libc_pthread_fchdir_np pthread_fchdir_np "/usr/lib/libSystem.B.dylib"
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) {
_, _, e1 := syscall_syscall6(libc_sendfile_trampoline_addr, uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags))
if e1 != 0 {
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s
index 8b8bb2840..923e08cb7 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s
+++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s
@@ -228,6 +228,16 @@ TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0
GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8
DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB)
+TEXT libc_pthread_chdir_np_trampoline<>(SB),NOSPLIT,$0-0
+ JMP libc_pthread_chdir_np(SB)
+GLOBL ·libc_pthread_chdir_np_trampoline_addr(SB), RODATA, $8
+DATA ·libc_pthread_chdir_np_trampoline_addr(SB)/8, $libc_pthread_chdir_np_trampoline<>(SB)
+
+TEXT libc_pthread_fchdir_np_trampoline<>(SB),NOSPLIT,$0-0
+ JMP libc_pthread_fchdir_np(SB)
+GLOBL ·libc_pthread_fchdir_np_trampoline_addr(SB), RODATA, $8
+DATA ·libc_pthread_fchdir_np_trampoline_addr(SB)/8, $libc_pthread_fchdir_np_trampoline<>(SB)
+
TEXT libc_sendfile_trampoline<>(SB),NOSPLIT,$0-0
JMP libc_sendfile(SB)
GLOBL ·libc_sendfile_trampoline_addr(SB), RODATA, $8
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
index 1b40b997b..7d73dda64 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
@@ -760,6 +760,39 @@ var libc_sysctl_trampoline_addr uintptr
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+func pthread_chdir_np(path string) (err error) {
+ var _p0 *byte
+ _p0, err = BytePtrFromString(path)
+ if err != nil {
+ return
+ }
+ _, _, e1 := syscall_syscall(libc_pthread_chdir_np_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+var libc_pthread_chdir_np_trampoline_addr uintptr
+
+//go:cgo_import_dynamic libc_pthread_chdir_np pthread_chdir_np "/usr/lib/libSystem.B.dylib"
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func pthread_fchdir_np(fd int) (err error) {
+ _, _, e1 := syscall_syscall(libc_pthread_fchdir_np_trampoline_addr, uintptr(fd), 0, 0)
+ if e1 != 0 {
+ err = errnoErr(e1)
+ }
+ return
+}
+
+var libc_pthread_fchdir_np_trampoline_addr uintptr
+
+//go:cgo_import_dynamic libc_pthread_fchdir_np pthread_fchdir_np "/usr/lib/libSystem.B.dylib"
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) {
_, _, e1 := syscall_syscall6(libc_sendfile_trampoline_addr, uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags))
if e1 != 0 {
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s
index 08362c1ab..057700111 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s
+++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s
@@ -228,6 +228,16 @@ TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0
GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8
DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB)
+TEXT libc_pthread_chdir_np_trampoline<>(SB),NOSPLIT,$0-0
+ JMP libc_pthread_chdir_np(SB)
+GLOBL ·libc_pthread_chdir_np_trampoline_addr(SB), RODATA, $8
+DATA ·libc_pthread_chdir_np_trampoline_addr(SB)/8, $libc_pthread_chdir_np_trampoline<>(SB)
+
+TEXT libc_pthread_fchdir_np_trampoline<>(SB),NOSPLIT,$0-0
+ JMP libc_pthread_fchdir_np(SB)
+GLOBL ·libc_pthread_fchdir_np_trampoline_addr(SB), RODATA, $8
+DATA ·libc_pthread_fchdir_np_trampoline_addr(SB)/8, $libc_pthread_fchdir_np_trampoline<>(SB)
+
TEXT libc_sendfile_trampoline<>(SB),NOSPLIT,$0-0
JMP libc_sendfile(SB)
GLOBL ·libc_sendfile_trampoline_addr(SB), RODATA, $8
diff --git a/vendor/golang.org/x/sys/windows/security_windows.go b/vendor/golang.org/x/sys/windows/security_windows.go
index 6f7d2ac70..97651b5bd 100644
--- a/vendor/golang.org/x/sys/windows/security_windows.go
+++ b/vendor/golang.org/x/sys/windows/security_windows.go
@@ -894,7 +894,7 @@ type ACL struct {
aclRevision byte
sbz1 byte
aclSize uint16
- aceCount uint16
+ AceCount uint16
sbz2 uint16
}
@@ -1087,6 +1087,27 @@ type EXPLICIT_ACCESS struct {
Trustee TRUSTEE
}
+// https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-ace_header
+type ACE_HEADER struct {
+ AceType uint8
+ AceFlags uint8
+ AceSize uint16
+}
+
+// https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-access_allowed_ace
+type ACCESS_ALLOWED_ACE struct {
+ Header ACE_HEADER
+ Mask ACCESS_MASK
+ SidStart uint32
+}
+
+const (
+ // Constants for AceType
+ // https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-ace_header
+ ACCESS_ALLOWED_ACE_TYPE = 0
+ ACCESS_DENIED_ACE_TYPE = 1
+)
+
// This type is the union inside of TRUSTEE and must be created using one of the TrusteeValueFrom* functions.
type TrusteeValue uintptr
@@ -1158,6 +1179,7 @@ type OBJECTS_AND_NAME struct {
//sys makeSelfRelativeSD(absoluteSD *SECURITY_DESCRIPTOR, selfRelativeSD *SECURITY_DESCRIPTOR, selfRelativeSDSize *uint32) (err error) = advapi32.MakeSelfRelativeSD
//sys setEntriesInAcl(countExplicitEntries uint32, explicitEntries *EXPLICIT_ACCESS, oldACL *ACL, newACL **ACL) (ret error) = advapi32.SetEntriesInAclW
+//sys GetAce(acl *ACL, aceIndex uint32, pAce **ACCESS_ALLOWED_ACE) (ret error) = advapi32.GetAce
// Control returns the security descriptor control bits.
func (sd *SECURITY_DESCRIPTOR) Control() (control SECURITY_DESCRIPTOR_CONTROL, revision uint32, err error) {
diff --git a/vendor/golang.org/x/sys/windows/zsyscall_windows.go b/vendor/golang.org/x/sys/windows/zsyscall_windows.go
index 9f73df75b..eba761018 100644
--- a/vendor/golang.org/x/sys/windows/zsyscall_windows.go
+++ b/vendor/golang.org/x/sys/windows/zsyscall_windows.go
@@ -91,6 +91,7 @@ var (
procEnumServicesStatusExW = modadvapi32.NewProc("EnumServicesStatusExW")
procEqualSid = modadvapi32.NewProc("EqualSid")
procFreeSid = modadvapi32.NewProc("FreeSid")
+ procGetAce = modadvapi32.NewProc("GetAce")
procGetLengthSid = modadvapi32.NewProc("GetLengthSid")
procGetNamedSecurityInfoW = modadvapi32.NewProc("GetNamedSecurityInfoW")
procGetSecurityDescriptorControl = modadvapi32.NewProc("GetSecurityDescriptorControl")
@@ -1224,6 +1225,14 @@ func setEntriesInAcl(countExplicitEntries uint32, explicitEntries *EXPLICIT_ACCE
return
}
+func GetAce(acl *ACL, aceIndex uint32, pAce **ACCESS_ALLOWED_ACE) (ret error) {
+ r0, _, _ := syscall.Syscall(procGetAce.Addr(), 3, uintptr(unsafe.Pointer(acl)), uintptr(aceIndex), uintptr(unsafe.Pointer(pAce)))
+ if r0 == 0 {
+ ret = GetLastError()
+ }
+ return
+}
+
func SetKernelObjectSecurity(handle Handle, securityInformation SECURITY_INFORMATION, securityDescriptor *SECURITY_DESCRIPTOR) (err error) {
r1, _, e1 := syscall.Syscall(procSetKernelObjectSecurity.Addr(), 3, uintptr(handle), uintptr(securityInformation), uintptr(unsafe.Pointer(securityDescriptor)))
if r1 == 0 {
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 000000000..7cb7795be
--- /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 187eb5d8c..559aebb59 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 80b305866..54d51e820 100644
--- a/vendor/modules.txt
+++ b/vendor/modules.txt
@@ -34,11 +34,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
@@ -74,7 +74,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/azure-sdk-for-go/sdk/storage/azblob v1.3.2
@@ -542,14 +542,13 @@ go.uber.org/zap/internal/color
go.uber.org/zap/internal/exit
go.uber.org/zap/zapcore
go.uber.org/zap/zapgrpc
-# golang.org/x/crypto v0.24.0
-## explicit; go 1.18
+# golang.org/x/crypto v0.25.0
+## explicit; go 1.20
golang.org/x/crypto/blowfish
golang.org/x/crypto/chacha20
golang.org/x/crypto/cryptobyte
golang.org/x/crypto/cryptobyte/asn1
golang.org/x/crypto/curve25519
-golang.org/x/crypto/curve25519/internal/field
golang.org/x/crypto/hkdf
golang.org/x/crypto/internal/alias
golang.org/x/crypto/internal/poly1305
@@ -563,7 +562,7 @@ golang.org/x/crypto/ssh/internal/bcrypt_pbkdf
## explicit; go 1.20
golang.org/x/exp/constraints
golang.org/x/exp/slices
-# golang.org/x/net v0.26.0
+# golang.org/x/net v0.27.0
## explicit; go 1.18
golang.org/x/net/context
golang.org/x/net/html
@@ -586,14 +585,14 @@ golang.org/x/oauth2/internal
## explicit; go 1.18
golang.org/x/sync/errgroup
golang.org/x/sync/singleflight
-# golang.org/x/sys v0.21.0
+# golang.org/x/sys v0.22.0
## explicit; go 1.18
golang.org/x/sys/cpu
golang.org/x/sys/plan9
golang.org/x/sys/unix
golang.org/x/sys/windows
golang.org/x/sys/windows/registry
-# golang.org/x/term v0.21.0
+# golang.org/x/term v0.22.0
## explicit; go 1.18
golang.org/x/term
# golang.org/x/text v0.16.0
@@ -1535,7 +1534,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
@@ -1620,7 +1619,7 @@ 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.24
+# 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
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 000000000..843be4aa5
--- /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/auth.go b/vendor/sigs.k8s.io/cloud-provider-azure/pkg/azclient/auth.go
index f95464ab2..f73d50f34 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
@@ -83,6 +83,7 @@ func NewAuthProvider(armConfig *ARMClientConfig, config *AzureAuthConfig, client
if err != nil {
return nil, err
}
+ managedIdentityCredential = armauth.NewExpireEarlyTokenWrapper(managedIdentityCredential)
}
var (
@@ -215,7 +216,7 @@ func (factory *AuthProvider) IsMultiTenantModeEnabled() bool {
return factory.MultiTenantCredential != nil
}
-func (factory *AuthProvider) TokenScope() string {
+func (factory *AuthProvider) DefaultTokenScope() string {
audience := factory.ClientOptions.Cloud.Services[cloud.ResourceManager].Audience
- return fmt.Sprintf("https://%s/.default", audience)
+ return fmt.Sprintf("%s/.default", strings.TrimRight(audience, "/"))
}