зеркало из https://github.com/Azure/ARO-RP.git
vendor
This commit is contained in:
Родитель
b69a94e6b9
Коммит
516445cf14
2
go.mod
2
go.mod
|
@ -5,7 +5,7 @@ go 1.14
|
|||
require (
|
||||
cloud.google.com/go v0.82.0 // indirect
|
||||
github.com/AlekSi/gocov-xml v0.0.0-20190121064608-3a14fb1c4737
|
||||
github.com/Azure/azure-sdk-for-go v54.3.0+incompatible
|
||||
github.com/Azure/azure-sdk-for-go v56.1.0+incompatible
|
||||
github.com/Azure/go-autorest/autorest v0.11.18
|
||||
github.com/Azure/go-autorest/autorest/adal v0.9.13
|
||||
github.com/Azure/go-autorest/autorest/azure/auth v0.5.7
|
||||
|
|
30
go.sum
30
go.sum
|
@ -86,8 +86,8 @@ github.com/Azure/azure-sdk-for-go v43.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9mo
|
|||
github.com/Azure/azure-sdk-for-go v43.2.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
|
||||
github.com/Azure/azure-sdk-for-go v45.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
|
||||
github.com/Azure/azure-sdk-for-go v48.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
|
||||
github.com/Azure/azure-sdk-for-go v54.3.0+incompatible h1:aJ/WT32eVP8YmWpuSHLgnFJWjZzUFmhR3wBxxszo4PE=
|
||||
github.com/Azure/azure-sdk-for-go v54.3.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
|
||||
github.com/Azure/azure-sdk-for-go v56.1.0+incompatible h1:Ofcecdw3F1ZqnpDEZcLzH9Hq0P4Y5Si8+EioXJSamJs=
|
||||
github.com/Azure/azure-sdk-for-go v56.1.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
|
||||
github.com/Azure/azure-storage-blob-go v0.8.0/go.mod h1:lPI3aLPpuLTeUwh1sViKXFxwl2B6teiRqI0deQUvsw0=
|
||||
github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 h1:w+iIsaOQNcT7OZ575w+acHgRric5iCyQh+xv+KJ4HB8=
|
||||
github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8=
|
||||
|
@ -169,7 +169,6 @@ github.com/DATA-DOG/go-sqlmock v1.4.1/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q
|
|||
github.com/DataDog/datadog-go v2.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ=
|
||||
github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ=
|
||||
github.com/Djarvur/go-err113 v0.0.0-20200410182137-af658d038157/go.mod h1:4UJr5HIiMZrwgkSPdsjy2uOQExX/WEILpIrO9UPGuXs=
|
||||
github.com/Djarvur/go-err113 v0.0.0-20200511133814-5174e21577d5 h1:XTrzB+F8+SpRmbhAH8HLxhiiG6nYNwaBZjrFps1oWEk=
|
||||
github.com/Djarvur/go-err113 v0.0.0-20200511133814-5174e21577d5/go.mod h1:4UJr5HIiMZrwgkSPdsjy2uOQExX/WEILpIrO9UPGuXs=
|
||||
github.com/Djarvur/go-err113 v0.1.0 h1:uCRZZOdMQ0TZPHYTdYpoC0bLYJKPEHPUJ8MeAa51lNU=
|
||||
github.com/Djarvur/go-err113 v0.1.0/go.mod h1:4UJr5HIiMZrwgkSPdsjy2uOQExX/WEILpIrO9UPGuXs=
|
||||
|
@ -178,7 +177,6 @@ github.com/InVisionApp/go-health v2.1.0+incompatible/go.mod h1:/+Gv1o8JUsrjC6pi6
|
|||
github.com/JeffAshton/win_pdh v0.0.0-20161109143554-76bb4ee9f0ab/go.mod h1:3VYc5hodBMJ5+l/7J4xAyMeuM2PNuepvHlGs8yilUCA=
|
||||
github.com/Jeffail/gabs v1.1.1/go.mod h1:6xMvQMK4k33lb7GUUpaAPh6nKMmemQeg5d4gn7/bOXc=
|
||||
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0=
|
||||
github.com/MakeNowJust/heredoc v0.0.0-20170808103936-bb23615498cd h1:sjQovDkwrZp8u+gxLtPgKGjk5hCxuy2hrRejBTA9xFU=
|
||||
github.com/MakeNowJust/heredoc v0.0.0-20170808103936-bb23615498cd/go.mod h1:64YHyfSL2R96J44Nlwm39UHepQbyR5q10x7iYa1ks2E=
|
||||
github.com/MakeNowJust/heredoc v1.0.0 h1:cXCdzVdstXyiTqTvfqk9SDHpKNjxuom+DOlyEeQ4pzQ=
|
||||
github.com/MakeNowJust/heredoc v1.0.0/go.mod h1:mG5amYoWBHf8vpLOuehzbGGw0EHxpZZ6lCpQ4fNJ8LE=
|
||||
|
@ -196,7 +194,6 @@ github.com/Microsoft/go-winio v0.4.13/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jB
|
|||
github.com/Microsoft/go-winio v0.4.14/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jBhyzoq1bpyYA=
|
||||
github.com/Microsoft/go-winio v0.4.15-0.20190919025122-fc70bd9a86b5/go.mod h1:tTuCMEN+UleMWgg9dVx4Hu52b1bJo+59jBh3ajtinzw=
|
||||
github.com/Microsoft/go-winio v0.4.16-0.20201130162521-d1ffc52c7331/go.mod h1:XB6nPKklQyQ7GC9LdcBEcBl8PF76WugXOPRXwdLnMv0=
|
||||
github.com/Microsoft/go-winio v0.4.16 h1:FtSW/jqD+l4ba5iPBj9CODVtgfYAD8w2wS923g/cFDk=
|
||||
github.com/Microsoft/go-winio v0.4.16/go.mod h1:XB6nPKklQyQ7GC9LdcBEcBl8PF76WugXOPRXwdLnMv0=
|
||||
github.com/Microsoft/go-winio v0.4.17-0.20210211115548-6eac466e5fa3/go.mod h1:JPGBdM1cNvN/6ISo+n8V5iA4v8pBzdOpzfwIujj1a84=
|
||||
github.com/Microsoft/go-winio v0.4.17-0.20210324224401-5516f17a5958/go.mod h1:JPGBdM1cNvN/6ISo+n8V5iA4v8pBzdOpzfwIujj1a84=
|
||||
|
@ -240,7 +237,6 @@ github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWX
|
|||
github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI=
|
||||
github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg=
|
||||
github.com/Unknwon/com v0.0.0-20151008135407-28b053d5a292/go.mod h1:KYCjqMOeHpNuTOiFQU6WEcTG7poCJrUs0YgyHNtn1no=
|
||||
github.com/VividCortex/ewma v1.1.1 h1:MnEK4VOv6n0RSY4vtRe3h11qjxL3+t0B8yOL8iMXdcM=
|
||||
github.com/VividCortex/ewma v1.1.1/go.mod h1:2Tkkvm3sRDVXaiyucHiACn4cqf7DpdyLvmxzcbUokwA=
|
||||
github.com/VividCortex/ewma v1.2.0 h1:f58SaIzcDXrSy3kWaHNvuJgJ3Nmz59Zji6XoJR/q1ow=
|
||||
github.com/VividCortex/ewma v1.2.0/go.mod h1:nz4BbCtbLyFDeC9SUHbtcT5644juEuWfUAUnGx7j5l4=
|
||||
|
@ -544,7 +540,6 @@ github.com/containers/libtrust v0.0.0-20200511145503-9c3a6c22cd9a h1:spAGlqziZjC
|
|||
github.com/containers/libtrust v0.0.0-20200511145503-9c3a6c22cd9a/go.mod h1:9rfv8iPl1ZP7aqh9YA68wnZv2NUDbXdcdPHVz0pFbPY=
|
||||
github.com/containers/ocicrypt v1.0.1/go.mod h1:MeJDzk1RJHv89LjsH0Sp5KTY3ZYkjXO/C+bKAeWFIrc=
|
||||
github.com/containers/ocicrypt v1.0.2/go.mod h1:nsOhbP19flrX6rE7ieGFvBlr7modwmNjsqWarIUce4M=
|
||||
github.com/containers/ocicrypt v1.1.0 h1:A6UzSUFMla92uxO43O6lm86i7evMGjTY7wTKB2DyGPY=
|
||||
github.com/containers/ocicrypt v1.1.0/go.mod h1:b8AOe0YR67uU8OqfVNcznfFpAzu3rdgUV4GP9qXPfu4=
|
||||
github.com/containers/ocicrypt v1.1.1 h1:prL8l9w3ntVqXvNH1CiNn5ENjcCnr38JqpSyvKKB4GI=
|
||||
github.com/containers/ocicrypt v1.1.1/go.mod h1:Dm55fwWm1YZAjYRaJ94z2mfZikIyIN4B0oB3dj3jFxY=
|
||||
|
@ -581,7 +576,6 @@ github.com/coreos/go-systemd v0.0.0-20190620071333-e64a0ec8b42a/go.mod h1:F5haX7
|
|||
github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f h1:JOrtw2xFKzlg+cbHpyrpLDmnN1HqhBfnX7WDiW7eG2c=
|
||||
github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
|
||||
github.com/coreos/go-systemd/v22 v22.0.0/go.mod h1:xO0FLkIi5MaZafQlIrOotqXZ90ih+1atmu1JpKERPPk=
|
||||
github.com/coreos/go-systemd/v22 v22.1.0 h1:kq/SbG2BCKLkDKkjQf5OWwKWUKj1lgs3lFI4PxnR5lg=
|
||||
github.com/coreos/go-systemd/v22 v22.1.0/go.mod h1:xO0FLkIi5MaZafQlIrOotqXZ90ih+1atmu1JpKERPPk=
|
||||
github.com/coreos/go-systemd/v22 v22.3.1/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
|
||||
github.com/coreos/go-systemd/v22 v22.3.2 h1:D9/bQk5vlXQFZ6Kwuu6zaiXJ9oTPe68++AzAJc1DzSI=
|
||||
|
@ -594,7 +588,6 @@ github.com/coreos/ignition v0.35.0/go.mod h1:WJQapxzEn9DE0ryxsGvm8QnBajm/XsS/Pkr
|
|||
github.com/coreos/ignition/v2 v2.1.1/go.mod h1:RqmqU64zxarUJa3l4cHtbhcSwfQLpUhv0WVziZwoXvE=
|
||||
github.com/coreos/ignition/v2 v2.3.0/go.mod h1:85dmM/CERMZXNrJsXqtNLIxR/dn8G9qlL1CmEjCugp0=
|
||||
github.com/coreos/ignition/v2 v2.7.0/go.mod h1:3CjaRpg51hmJzPjarbzB0RvSZbLkNOczxKJobTl6nOY=
|
||||
github.com/coreos/ignition/v2 v2.9.0 h1:Zl5N08OyqlECB8BrBlMDp3Jf1ShwVTtREPcUq/YO034=
|
||||
github.com/coreos/ignition/v2 v2.9.0/go.mod h1:A5lFFzA2/zvZQPVEvI1lR5WPLWRb7KZ7Q1QOeUMtcAc=
|
||||
github.com/coreos/ignition/v2 v2.10.1 h1:T8vH2bZZvfUNmuyOqAdAb+iBEgjhkuue4LFwVvEupdw=
|
||||
github.com/coreos/ignition/v2 v2.10.1/go.mod h1:a8C/cdb3l3zhKke3zSdqYRChKm+iCSrf4Mk3UeZPpT0=
|
||||
|
@ -605,7 +598,6 @@ github.com/coreos/prometheus-operator v0.38.1-0.20200424145508-7e176fda06cc/go.m
|
|||
github.com/coreos/vcontext v0.0.0-20190529201340-22b159166068/go.mod h1:E+6hug9bFSe0KZ2ZAzr8M9F5JlArJjv5D1JS7KSkPKE=
|
||||
github.com/coreos/vcontext v0.0.0-20191017033345-260217907eb5/go.mod h1:E+6hug9bFSe0KZ2ZAzr8M9F5JlArJjv5D1JS7KSkPKE=
|
||||
github.com/coreos/vcontext v0.0.0-20200225161404-ee043618d38d/go.mod h1:z4pMVvaUrxs98RROlIYdAQCKhEicjnTirOaVyDRH5h8=
|
||||
github.com/coreos/vcontext v0.0.0-20201120045928-b0e13dab675c h1:jA28WeORitsxGFVWhyWB06sAG2HbLHPQuHwDydhU2CQ=
|
||||
github.com/coreos/vcontext v0.0.0-20201120045928-b0e13dab675c/go.mod h1:z4pMVvaUrxs98RROlIYdAQCKhEicjnTirOaVyDRH5h8=
|
||||
github.com/coreos/vcontext v0.0.0-20210407161507-4ee6c745c8bd/go.mod h1:z4pMVvaUrxs98RROlIYdAQCKhEicjnTirOaVyDRH5h8=
|
||||
github.com/coreos/vcontext v0.0.0-20210511154938-8fbad538d364 h1:IBC5IGex4uLUraXyROqta9gxD3AKCM4StSbrQ4TcWFs=
|
||||
|
@ -614,7 +606,6 @@ github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwc
|
|||
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
|
||||
github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY=
|
||||
github.com/creack/pty v1.1.9 h1:uDmaGzcdjhF4i/plgjmEsriH11Y0o7RKapEf/LDaM3w=
|
||||
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
|
||||
github.com/creack/pty v1.1.11 h1:07n33Z8lZxZ2qwegKbObQohDhXDQxiMMz1NOUGYlesw=
|
||||
github.com/creack/pty v1.1.11/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
|
||||
|
@ -749,7 +740,6 @@ github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.m
|
|||
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
|
||||
github.com/euank/go-kmsg-parser v2.0.0+incompatible/go.mod h1:MhmAMZ8V4CYH4ybgdRwPr2TU5ThnS43puaKEMpja1uw=
|
||||
github.com/evanphx/json-patch v0.0.0-20190815234213-e83c0a1c26c8/go.mod h1:pmLOTb3x90VhIKxsA9yeQG5yfOkkKnkk1h+Ql8NDYDw=
|
||||
github.com/evanphx/json-patch v0.5.2 h1:xVCHIVMUu1wtM/VkR9jVZ45N3FhZfYMMYGorLCR8P3k=
|
||||
github.com/evanphx/json-patch v0.5.2/go.mod h1:ZWS5hhDbVDyob71nXKNL0+PWn6ToqBHMikGIFbs31qQ=
|
||||
github.com/evanphx/json-patch v3.0.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
|
||||
github.com/evanphx/json-patch v4.0.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
|
||||
|
@ -757,7 +747,6 @@ github.com/evanphx/json-patch v4.1.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLi
|
|||
github.com/evanphx/json-patch v4.5.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
|
||||
github.com/evanphx/json-patch v4.9.0+incompatible h1:kLcOMZeuLAJvL2BPWLMIj5oaZQobrkAqrL+WFZwQses=
|
||||
github.com/evanphx/json-patch v4.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
|
||||
github.com/exponent-io/jsonpath v0.0.0-20151013193312-d6023ce2651d h1:105gxyaGwCFad8crR9dcMQWvV9Hvulu6hwUh4tWPJnM=
|
||||
github.com/exponent-io/jsonpath v0.0.0-20151013193312-d6023ce2651d/go.mod h1:ZZMPRZwes7CROmyNKgQzC3XPs6L/G2EJLHddWejkmf4=
|
||||
github.com/exponent-io/jsonpath v0.0.0-20210407135951-1de76d718b3f h1:Wl78ApPPB2Wvf/TIe2xdyJxTlb6obmF18d8QdkxNDu4=
|
||||
github.com/exponent-io/jsonpath v0.0.0-20210407135951-1de76d718b3f/go.mod h1:OSYXu++VVOHnXeitef/D8n/6y4QV8uLHSFXX4NeXMGc=
|
||||
|
@ -772,7 +761,6 @@ github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga
|
|||
github.com/fatih/structtag v1.1.0/go.mod h1:mBJUNpUnHmRKrKlQQlmCrh5PuhftFbNv8Ys4/aAZl94=
|
||||
github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc=
|
||||
github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k=
|
||||
github.com/form3tech-oss/jwt-go v3.2.2+incompatible h1:TcekIExNqud5crz4xD2pavyTgWiPvpYe4Xau31I0PRk=
|
||||
github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k=
|
||||
github.com/form3tech-oss/jwt-go v3.2.3+incompatible h1:7ZaBxOI7TMoYBfyA3cQHErNNyAWIKUMIwqxEtgHOs5c=
|
||||
github.com/form3tech-oss/jwt-go v3.2.3+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k=
|
||||
|
@ -864,7 +852,6 @@ github.com/go-openapi/jsonpointer v0.17.0/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwds
|
|||
github.com/go-openapi/jsonpointer v0.17.2/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwdsUdVpsRhURCKh+3M=
|
||||
github.com/go-openapi/jsonpointer v0.18.0/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwdsUdVpsRhURCKh+3M=
|
||||
github.com/go-openapi/jsonpointer v0.19.2/go.mod h1:3akKfEdA7DF1sugOqz1dVQHBcuDBPKZGEoHC/NkiQRg=
|
||||
github.com/go-openapi/jsonpointer v0.19.3 h1:gihV7YNZK1iK6Tgwwsxo2rJbD1GTbdm72325Bq8FI3w=
|
||||
github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg=
|
||||
github.com/go-openapi/jsonpointer v0.19.5 h1:gZr+CIYByUqjcgeLXnQu2gHYQC9o73G2XUeOFYEICuY=
|
||||
github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg=
|
||||
|
@ -874,9 +861,7 @@ github.com/go-openapi/jsonreference v0.17.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3Hfo
|
|||
github.com/go-openapi/jsonreference v0.17.2/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I=
|
||||
github.com/go-openapi/jsonreference v0.18.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I=
|
||||
github.com/go-openapi/jsonreference v0.19.2/go.mod h1:jMjeRr2HHw6nAVajTXJ4eiUwohSTlpa0o73RUL1owJc=
|
||||
github.com/go-openapi/jsonreference v0.19.3 h1:5cxNfTy0UVC3X8JL5ymxzyoUZmo8iZb+jeTWn7tUa8o=
|
||||
github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8=
|
||||
github.com/go-openapi/jsonreference v0.19.4 h1:3Vw+rh13uq2JFNxgnMTGE1rnoieU9FmyE1gvnyylsYg=
|
||||
github.com/go-openapi/jsonreference v0.19.4/go.mod h1:RdybgQwPxbL4UEjuAruzK1x3nE69AqPYEJeo/TWfEeg=
|
||||
github.com/go-openapi/jsonreference v0.19.5 h1:1WJP/wi4OjB4iV8KVbH73rQaoialJrqv8gitZLxGLtM=
|
||||
github.com/go-openapi/jsonreference v0.19.5/go.mod h1:RdybgQwPxbL4UEjuAruzK1x3nE69AqPYEJeo/TWfEeg=
|
||||
|
@ -906,9 +891,7 @@ github.com/go-openapi/swag v0.17.2/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/
|
|||
github.com/go-openapi/swag v0.18.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/kXLo40Tg=
|
||||
github.com/go-openapi/swag v0.19.2/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk=
|
||||
github.com/go-openapi/swag v0.19.4/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk=
|
||||
github.com/go-openapi/swag v0.19.5 h1:lTz6Ys4CmqqCQmZPBlbQENR1/GucA2bzYTE12Pw4tFY=
|
||||
github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk=
|
||||
github.com/go-openapi/swag v0.19.9 h1:1IxuqvBUU3S2Bi4YC7tlP9SJF1gVpCvqN0T2Qof4azE=
|
||||
github.com/go-openapi/swag v0.19.9/go.mod h1:ao+8BpOPyKdpQz3AOJfbeEVpLmWAvlT1IfTe5McPyhY=
|
||||
github.com/go-openapi/swag v0.19.15 h1:D2NRCBzS9/pEY3gP9Nl8aDqGUcPFrwG2p+CNFrLyrCM=
|
||||
github.com/go-openapi/swag v0.19.15/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ=
|
||||
|
@ -989,7 +972,6 @@ github.com/gofrs/flock v0.7.1/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14j
|
|||
github.com/gofrs/flock v0.8.0 h1:MSdYClljsF3PbENUUEx85nkWfJSGfzYI9yEBZOJz6CY=
|
||||
github.com/gofrs/flock v0.8.0/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14jxHU=
|
||||
github.com/gofrs/uuid v3.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
|
||||
github.com/gofrs/uuid v3.3.0+incompatible h1:8K4tyRfvU1CYPgJsveYFQMhpFd/wXNM7iK6rR7UHz84=
|
||||
github.com/gofrs/uuid v3.3.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
|
||||
github.com/gofrs/uuid v4.0.0+incompatible h1:1SD/1F5pU8p29ybwgQSwpQk+mwdRrXCYuPhW6m+TnJw=
|
||||
github.com/gofrs/uuid v4.0.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
|
||||
|
@ -1019,7 +1001,6 @@ github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4er
|
|||
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
||||
github.com/golang/groupcache v0.0.0-20191027212112-611e8accdfc9/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
||||
github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
||||
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e h1:1r7pUrabqp18hOBcwBwiTsbnFeTZHV9eER/QT5JVZxY=
|
||||
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
||||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE=
|
||||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
||||
|
@ -1031,7 +1012,6 @@ github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFU
|
|||
github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
|
||||
github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
|
||||
github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
|
||||
github.com/golang/mock v1.4.4 h1:l75CXGRSwbaYNpl/Z2X1XIIAMSCquvXgpVZDhwEIJsc=
|
||||
github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4=
|
||||
github.com/golang/mock v1.5.0 h1:jlYHihg//f7RRwuPfptm04yp4s7O6Kw8EZiVYIGcH0g=
|
||||
github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8=
|
||||
|
@ -1049,7 +1029,6 @@ github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:W
|
|||
github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
|
||||
github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8=
|
||||
github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
|
||||
github.com/golang/protobuf v1.4.3 h1:JjCZWpVbqXDqFVmTfYWEVTMIYrL/NPdPSCHPJ0T/raM=
|
||||
github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
|
||||
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
|
||||
github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM=
|
||||
|
@ -1093,13 +1072,11 @@ github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0 h1:MfyDlzVjl1hoaPz
|
|||
github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0/go.mod h1:66R6K6P6VWk9I95jvqGxkqJxVWGFy9XlDwLwVz1RCFg=
|
||||
github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca h1:kNY3/svz5T29MYHubXix4aDDuE3RWHkPvopM/EDv/MA=
|
||||
github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca/go.mod h1:tvlJhZqDe4LMs4ZHD0oMUlt9G2LWuDGoisJTBzLMV9o=
|
||||
github.com/golangci/misspell v0.0.0-20180809174111-950f5d19e770 h1:EL/O5HGrF7Jaq0yNhBLucz9hTuRzj2LdwGBOaENgxIk=
|
||||
github.com/golangci/misspell v0.0.0-20180809174111-950f5d19e770/go.mod h1:dEbvlSfYbMQDtrpRMQU675gSDLDNa8sCPPChZ7PhiVA=
|
||||
github.com/golangci/misspell v0.3.5 h1:pLzmVdl3VxTOncgzHcvLOKirdvcx/TydsClUQXTehjo=
|
||||
github.com/golangci/misspell v0.3.5/go.mod h1:dEbvlSfYbMQDtrpRMQU675gSDLDNa8sCPPChZ7PhiVA=
|
||||
github.com/golangci/prealloc v0.0.0-20180630174525-215b22d4de21 h1:leSNB7iYzLYSSx3J/s5sVf4Drkc68W2wm4Ixh/mr0us=
|
||||
github.com/golangci/prealloc v0.0.0-20180630174525-215b22d4de21/go.mod h1:tf5+bzsHdTM0bsB7+8mt0GUMvjCgwLpTapNZHU8AajI=
|
||||
github.com/golangci/revgrep v0.0.0-20180526074752-d9c87f5ffaf0 h1:HVfrLniijszjS1aiNg8JbBMO2+E1WIQ+j/gL4SQqGPg=
|
||||
github.com/golangci/revgrep v0.0.0-20180526074752-d9c87f5ffaf0/go.mod h1:qOQCunEYvmd/TLamH+7LlVccLvUH5kZNhbCgTHoBbp4=
|
||||
github.com/golangci/revgrep v0.0.0-20180812185044-276a5c0a1039 h1:XQKc8IYQOeRwVs36tDrEmTgDgP88d5iEURwpmtiAlOM=
|
||||
github.com/golangci/revgrep v0.0.0-20180812185044-276a5c0a1039/go.mod h1:qOQCunEYvmd/TLamH+7LlVccLvUH5kZNhbCgTHoBbp4=
|
||||
|
@ -1116,7 +1093,6 @@ github.com/gonum/lapack v0.0.0-20181123203213-e4cdc5a0bff9/go.mod h1:XA3DeT6rxh2
|
|||
github.com/gonum/matrix v0.0.0-20181209220409-c518dec07be9/go.mod h1:0EXg4mc1CNP0HCqCz+K4ts155PXIlUywf0wqN+GfPZw=
|
||||
github.com/google/btree v0.0.0-20180124185431-e89373fe6b4a/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
|
||||
github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
|
||||
github.com/google/btree v1.0.0 h1:0udJVsspx3VBr5FwtLhQQtuAsVc79tTq0ocGIPAU6qo=
|
||||
github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
|
||||
github.com/google/btree v1.0.1 h1:gK4Kx5IaGY9CD5sPJ36FHiBJ6ZXl0kilRiiCj+jdYp4=
|
||||
github.com/google/btree v1.0.1/go.mod h1:xXMiIv4Fb/0kKde4SpL7qlzvu5cMJDRkFDxJfI9uaxA=
|
||||
|
@ -1130,9 +1106,7 @@ github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
|
|||
github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.4 h1:L8R9j+yAqZuZjsqh/z+F1NCffTKKLShY6zXTItVIZ8M=
|
||||
github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
|
||||
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ=
|
||||
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
Microsoft Azure-SDK-for-Go
|
||||
Copyright 2014-2017 Microsoft
|
||||
|
||||
This product includes software developed at
|
||||
the Microsoft Corporation (https://www.microsoft.com).
|
|
@ -0,0 +1,29 @@
|
|||
NOTICES AND INFORMATION
|
||||
Do Not Translate or Localize
|
||||
|
||||
This software incorporates material from third parties. Microsoft makes certain
|
||||
open source code available at https://3rdpartysource.microsoft.com, or you may
|
||||
send a check or money order for US $5.00, including the product name, the open
|
||||
source component name, and version number, to:
|
||||
|
||||
Source Code Compliance Team
|
||||
Microsoft Corporation
|
||||
One Microsoft Way
|
||||
Redmond, WA 98052
|
||||
USA
|
||||
|
||||
Notwithstanding any other terms, you may reverse engineer this software to the
|
||||
extent required to debug changes to any libraries licensed under the GNU Lesser
|
||||
General Public License.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
Azure SDK for Go uses third-party libraries or other resources that may be
|
||||
distributed under licenses different than the Azure SDK for Go software.
|
||||
|
||||
In the event that we accidentally failed to list a required notice, please
|
||||
bring it to our attention. Post an issue or email us:
|
||||
|
||||
azgosdkhelp@microsoft.com
|
||||
|
||||
The attached notices are provided for information only.
|
42
vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-10-01/compute/CHANGELOG.md
сгенерированный
поставляемый
42
vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-10-01/compute/CHANGELOG.md
сгенерированный
поставляемый
|
@ -1,2 +1,44 @@
|
|||
# Change History
|
||||
|
||||
## Additive Changes
|
||||
|
||||
### New Funcs
|
||||
|
||||
1. AccessURI.MarshalJSON() ([]byte, error)
|
||||
1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error)
|
||||
1. DataDiskImage.MarshalJSON() ([]byte, error)
|
||||
1. GalleryDataDiskImage.MarshalJSON() ([]byte, error)
|
||||
1. GalleryDiskImage.MarshalJSON() ([]byte, error)
|
||||
1. GalleryIdentifier.MarshalJSON() ([]byte, error)
|
||||
1. GalleryImageVersionStorageProfile.MarshalJSON() ([]byte, error)
|
||||
1. GalleryOSDiskImage.MarshalJSON() ([]byte, error)
|
||||
1. LogAnalyticsOperationResult.MarshalJSON() ([]byte, error)
|
||||
1. LogAnalyticsOutput.MarshalJSON() ([]byte, error)
|
||||
1. OperationListResult.MarshalJSON() ([]byte, error)
|
||||
1. OperationValueDisplay.MarshalJSON() ([]byte, error)
|
||||
1. RecoveryWalkResponse.MarshalJSON() ([]byte, error)
|
||||
1. RegionalReplicationStatus.MarshalJSON() ([]byte, error)
|
||||
1. ReplicationStatus.MarshalJSON() ([]byte, error)
|
||||
1. ResourceSku.MarshalJSON() ([]byte, error)
|
||||
1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error)
|
||||
1. ResourceSkuCapacity.MarshalJSON() ([]byte, error)
|
||||
1. ResourceSkuCosts.MarshalJSON() ([]byte, error)
|
||||
1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error)
|
||||
1. ResourceSkuRestrictionInfo.MarshalJSON() ([]byte, error)
|
||||
1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error)
|
||||
1. RollbackStatusInfo.MarshalJSON() ([]byte, error)
|
||||
1. RollingUpgradeProgressInfo.MarshalJSON() ([]byte, error)
|
||||
1. RollingUpgradeRunningStatus.MarshalJSON() ([]byte, error)
|
||||
1. RollingUpgradeStatusInfoProperties.MarshalJSON() ([]byte, error)
|
||||
1. SubResourceReadOnly.MarshalJSON() ([]byte, error)
|
||||
1. UpgradeOperationHistoricalStatusInfo.MarshalJSON() ([]byte, error)
|
||||
1. UpgradeOperationHistoricalStatusInfoProperties.MarshalJSON() ([]byte, error)
|
||||
1. UpgradeOperationHistoryStatus.MarshalJSON() ([]byte, error)
|
||||
1. VirtualMachineHealthStatus.MarshalJSON() ([]byte, error)
|
||||
1. VirtualMachineIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error)
|
||||
1. VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error)
|
||||
1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error)
|
||||
1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error)
|
||||
1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error)
|
||||
1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error)
|
||||
1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error)
|
||||
|
|
4
vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-10-01/compute/_meta.json
сгенерированный
поставляемый
4
vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-10-01/compute/_meta.json
сгенерированный
поставляемый
|
@ -2,9 +2,9 @@
|
|||
"commit": "3c764635e7d442b3e74caf593029fcd440b3ef82",
|
||||
"readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md",
|
||||
"tag": "package-2018-10-01",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.180",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.183",
|
||||
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-10-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-10-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md",
|
||||
"additional_properties": {
|
||||
"additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION"
|
||||
}
|
||||
|
|
228
vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-10-01/compute/models.go
сгенерированный
поставляемый
228
vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-10-01/compute/models.go
сгенерированный
поставляемый
|
@ -27,6 +27,12 @@ type AccessURI struct {
|
|||
AccessSAS *string `json:"accessSAS,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for AccessURI.
|
||||
func (au AccessURI) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// AdditionalCapabilities enables or disables a capability on the virtual machine or virtual machine scale
|
||||
// set.
|
||||
type AdditionalCapabilities struct {
|
||||
|
@ -502,6 +508,12 @@ type BootDiagnosticsInstanceView struct {
|
|||
Status *InstanceViewStatus `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for BootDiagnosticsInstanceView.
|
||||
func (bdiv BootDiagnosticsInstanceView) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// CloudError an error response from the Gallery service.
|
||||
type CloudError struct {
|
||||
Error *APIError `json:"error,omitempty"`
|
||||
|
@ -1066,6 +1078,12 @@ type DataDiskImage struct {
|
|||
Lun *int32 `json:"lun,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for DataDiskImage.
|
||||
func (ddi DataDiskImage) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// DiagnosticsProfile specifies the boot diagnostic settings state. <br><br>Minimum api-version:
|
||||
// 2015-06-15.
|
||||
type DiagnosticsProfile struct {
|
||||
|
@ -1956,6 +1974,12 @@ type GalleryDataDiskImage struct {
|
|||
HostCaching HostCaching `json:"hostCaching,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for GalleryDataDiskImage.
|
||||
func (gddi GalleryDataDiskImage) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// GalleryDiskImage this is the disk image base class.
|
||||
type GalleryDiskImage struct {
|
||||
// SizeInGB - READ-ONLY; This property indicates the size of the VHD to be created.
|
||||
|
@ -1964,12 +1988,24 @@ type GalleryDiskImage struct {
|
|||
HostCaching HostCaching `json:"hostCaching,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for GalleryDiskImage.
|
||||
func (gdi GalleryDiskImage) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// GalleryIdentifier describes the gallery unique name.
|
||||
type GalleryIdentifier struct {
|
||||
// UniqueName - READ-ONLY; The unique name of the Shared Image Gallery. This name is generated automatically by Azure.
|
||||
UniqueName *string `json:"uniqueName,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for GalleryIdentifier.
|
||||
func (gi GalleryIdentifier) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// GalleryImage specifies information about the gallery Image Definition that you want to create or update.
|
||||
type GalleryImage struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -2786,6 +2822,12 @@ type GalleryImageVersionStorageProfile struct {
|
|||
DataDiskImages *[]GalleryDataDiskImage `json:"dataDiskImages,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for GalleryImageVersionStorageProfile.
|
||||
func (givsp GalleryImageVersionStorageProfile) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// GalleryList the List Galleries operation response.
|
||||
type GalleryList struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -2953,6 +2995,12 @@ type GalleryOSDiskImage struct {
|
|||
HostCaching HostCaching `json:"hostCaching,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for GalleryOSDiskImage.
|
||||
func (godi GalleryOSDiskImage) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// GalleryProperties describes the properties of a Shared Image Gallery.
|
||||
type GalleryProperties struct {
|
||||
// Description - The description of this Shared Image Gallery resource. This property is updatable.
|
||||
|
@ -3877,12 +3925,24 @@ type LogAnalyticsOperationResult struct {
|
|||
Properties *LogAnalyticsOutput `json:"properties,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for LogAnalyticsOperationResult.
|
||||
func (laor LogAnalyticsOperationResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// LogAnalyticsOutput logAnalytics output properties
|
||||
type LogAnalyticsOutput struct {
|
||||
// Output - READ-ONLY; Output file Uri path to blob container.
|
||||
Output *string `json:"output,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for LogAnalyticsOutput.
|
||||
func (lao LogAnalyticsOutput) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// MaintenanceRedeployStatus maintenance Operation Status.
|
||||
type MaintenanceRedeployStatus struct {
|
||||
// IsCustomerInitiatedMaintenanceAllowed - True, if customer is allowed to perform Maintenance.
|
||||
|
@ -3986,6 +4046,12 @@ type OperationListResult struct {
|
|||
Value *[]OperationValue `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for OperationListResult.
|
||||
func (olr OperationListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// OperationValue describes the properties of a Compute Operation value.
|
||||
type OperationValue struct {
|
||||
// Origin - READ-ONLY; The origin of the compute operation.
|
||||
|
@ -4058,6 +4124,12 @@ type OperationValueDisplay struct {
|
|||
Provider *string `json:"provider,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for OperationValueDisplay.
|
||||
func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// OSDisk specifies information about the operating system disk used by the virtual machine. <br><br> For
|
||||
// more information about disks, see [About disks and VHDs for Azure virtual
|
||||
// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
|
||||
|
@ -4451,6 +4523,12 @@ type RecoveryWalkResponse struct {
|
|||
NextPlatformUpdateDomain *int32 `json:"nextPlatformUpdateDomain,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for RecoveryWalkResponse.
|
||||
func (rwr RecoveryWalkResponse) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// RegionalReplicationStatus this is the regional replication status.
|
||||
type RegionalReplicationStatus struct {
|
||||
// Region - READ-ONLY; The region to which the gallery Image Version is being replicated to.
|
||||
|
@ -4463,6 +4541,12 @@ type RegionalReplicationStatus struct {
|
|||
Progress *int32 `json:"progress,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for RegionalReplicationStatus.
|
||||
func (rrs RegionalReplicationStatus) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ReplicationStatus this is the replication status of the gallery Image Version.
|
||||
type ReplicationStatus struct {
|
||||
// AggregatedState - READ-ONLY; This is the aggregated replication status based on all the regional replication status flags. Possible values include: 'Unknown', 'InProgress', 'Completed', 'Failed'
|
||||
|
@ -4471,6 +4555,12 @@ type ReplicationStatus struct {
|
|||
Summary *[]RegionalReplicationStatus `json:"summary,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ReplicationStatus.
|
||||
func (rs ReplicationStatus) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// RequestRateByIntervalInput api request input for LogAnalytics getRequestRateByInterval Api.
|
||||
type RequestRateByIntervalInput struct {
|
||||
// IntervalLength - Interval value in minutes used to create LogAnalytics call rate logs. Possible values include: 'ThreeMins', 'FiveMins', 'ThirtyMins', 'SixtyMins'
|
||||
|
@ -4553,6 +4643,12 @@ type ResourceSku struct {
|
|||
Restrictions *[]ResourceSkuRestrictions `json:"restrictions,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ResourceSku.
|
||||
func (rs ResourceSku) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ResourceSkuCapabilities describes The SKU capabilities object.
|
||||
type ResourceSkuCapabilities struct {
|
||||
// Name - READ-ONLY; An invariant to describe the feature.
|
||||
|
@ -4561,6 +4657,12 @@ type ResourceSkuCapabilities struct {
|
|||
Value *string `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ResourceSkuCapabilities.
|
||||
func (rsc ResourceSkuCapabilities) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ResourceSkuCapacity describes scaling information of a SKU.
|
||||
type ResourceSkuCapacity struct {
|
||||
// Minimum - READ-ONLY; The minimum capacity.
|
||||
|
@ -4573,6 +4675,12 @@ type ResourceSkuCapacity struct {
|
|||
ScaleType ResourceSkuCapacityScaleType `json:"scaleType,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ResourceSkuCapacity.
|
||||
func (rsc ResourceSkuCapacity) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ResourceSkuCosts describes metadata for retrieving price info.
|
||||
type ResourceSkuCosts struct {
|
||||
// MeterID - READ-ONLY; Used for querying price from commerce.
|
||||
|
@ -4583,6 +4691,12 @@ type ResourceSkuCosts struct {
|
|||
ExtendedUnit *string `json:"extendedUnit,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ResourceSkuCosts.
|
||||
func (rsc ResourceSkuCosts) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ResourceSkuLocationInfo ...
|
||||
type ResourceSkuLocationInfo struct {
|
||||
// Location - READ-ONLY; Location of the SKU
|
||||
|
@ -4591,6 +4705,12 @@ type ResourceSkuLocationInfo struct {
|
|||
Zones *[]string `json:"zones,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ResourceSkuLocationInfo.
|
||||
func (rsli ResourceSkuLocationInfo) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ResourceSkuRestrictionInfo ...
|
||||
type ResourceSkuRestrictionInfo struct {
|
||||
// Locations - READ-ONLY; Locations where the SKU is restricted
|
||||
|
@ -4599,6 +4719,12 @@ type ResourceSkuRestrictionInfo struct {
|
|||
Zones *[]string `json:"zones,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ResourceSkuRestrictionInfo.
|
||||
func (rsri ResourceSkuRestrictionInfo) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ResourceSkuRestrictions describes scaling information of a SKU.
|
||||
type ResourceSkuRestrictions struct {
|
||||
// Type - READ-ONLY; The type of restrictions. Possible values include: 'Location', 'Zone'
|
||||
|
@ -4611,6 +4737,12 @@ type ResourceSkuRestrictions struct {
|
|||
ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ResourceSkuRestrictions.
|
||||
func (rsr ResourceSkuRestrictions) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ResourceSkusResult the List Resource Skus operation response.
|
||||
type ResourceSkusResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -4780,6 +4912,12 @@ type RollbackStatusInfo struct {
|
|||
RollbackError *APIError `json:"rollbackError,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for RollbackStatusInfo.
|
||||
func (rsi RollbackStatusInfo) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// RollingUpgradePolicy the configuration parameters used while performing a rolling upgrade.
|
||||
type RollingUpgradePolicy struct {
|
||||
// MaxBatchInstancePercent - The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%.
|
||||
|
@ -4805,6 +4943,12 @@ type RollingUpgradeProgressInfo struct {
|
|||
PendingInstanceCount *int32 `json:"pendingInstanceCount,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for RollingUpgradeProgressInfo.
|
||||
func (rupi RollingUpgradeProgressInfo) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// RollingUpgradeRunningStatus information about the current running state of the overall upgrade.
|
||||
type RollingUpgradeRunningStatus struct {
|
||||
// Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'RollingUpgradeStatusCodeRollingForward', 'RollingUpgradeStatusCodeCancelled', 'RollingUpgradeStatusCodeCompleted', 'RollingUpgradeStatusCodeFaulted'
|
||||
|
@ -4817,6 +4961,12 @@ type RollingUpgradeRunningStatus struct {
|
|||
LastActionTime *date.Time `json:"lastActionTime,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for RollingUpgradeRunningStatus.
|
||||
func (rurs RollingUpgradeRunningStatus) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// RollingUpgradeStatusInfo the status of the latest virtual machine scale set rolling upgrade.
|
||||
type RollingUpgradeStatusInfo struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -4929,6 +5079,12 @@ type RollingUpgradeStatusInfoProperties struct {
|
|||
Error *APIError `json:"error,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for RollingUpgradeStatusInfoProperties.
|
||||
func (rusip RollingUpgradeStatusInfoProperties) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// RunCommandDocument describes the properties of a Run Command.
|
||||
type RunCommandDocument struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -5826,6 +5982,12 @@ type SubResourceReadOnly struct {
|
|||
ID *string `json:"id,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for SubResourceReadOnly.
|
||||
func (srro SubResourceReadOnly) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// TargetRegion describes the target region information.
|
||||
type TargetRegion struct {
|
||||
// Name - The name of the region.
|
||||
|
@ -5875,6 +6037,12 @@ type UpgradeOperationHistoricalStatusInfo struct {
|
|||
Location *string `json:"location,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for UpgradeOperationHistoricalStatusInfo.
|
||||
func (uohsi UpgradeOperationHistoricalStatusInfo) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// UpgradeOperationHistoricalStatusInfoProperties describes each OS upgrade on the Virtual Machine Scale
|
||||
// Set.
|
||||
type UpgradeOperationHistoricalStatusInfoProperties struct {
|
||||
|
@ -5892,6 +6060,12 @@ type UpgradeOperationHistoricalStatusInfoProperties struct {
|
|||
RollbackInfo *RollbackStatusInfo `json:"rollbackInfo,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for UpgradeOperationHistoricalStatusInfoProperties.
|
||||
func (uohsip UpgradeOperationHistoricalStatusInfoProperties) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// UpgradeOperationHistoryStatus information about the current running state of the overall upgrade.
|
||||
type UpgradeOperationHistoryStatus struct {
|
||||
// Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'UpgradeStateRollingForward', 'UpgradeStateCancelled', 'UpgradeStateCompleted', 'UpgradeStateFaulted'
|
||||
|
@ -5902,6 +6076,12 @@ type UpgradeOperationHistoryStatus struct {
|
|||
EndTime *date.Time `json:"endTime,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for UpgradeOperationHistoryStatus.
|
||||
func (uohs UpgradeOperationHistoryStatus) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// UpgradePolicy describes an upgrade policy - automatic, manual, or rolling.
|
||||
type UpgradePolicy struct {
|
||||
// Mode - Specifies the mode of an upgrade to virtual machines in the scale set.<br /><br /> Possible values are:<br /><br /> **Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.<br /><br /> **Automatic** - All virtual machines in the scale set are automatically updated at the same time. Possible values include: 'Automatic', 'Manual', 'Rolling'
|
||||
|
@ -6648,6 +6828,12 @@ type VirtualMachineHealthStatus struct {
|
|||
Status *InstanceViewStatus `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for VirtualMachineHealthStatus.
|
||||
func (vmhs VirtualMachineHealthStatus) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// VirtualMachineIdentity identity for the virtual machine.
|
||||
type VirtualMachineIdentity struct {
|
||||
// PrincipalID - READ-ONLY; The principal id of virtual machine identity. This property will only be provided for a system assigned identity.
|
||||
|
@ -6680,6 +6866,12 @@ type VirtualMachineIdentityUserAssignedIdentitiesValue struct {
|
|||
ClientID *string `json:"clientId,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for VirtualMachineIdentityUserAssignedIdentitiesValue.
|
||||
func (vmiAiv VirtualMachineIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// VirtualMachineImage describes a Virtual Machine Image.
|
||||
type VirtualMachineImage struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -7638,6 +7830,12 @@ type VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue struct {
|
|||
ClientID *string `json:"clientId,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue.
|
||||
func (vmssiAiv VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// VirtualMachineScaleSetInstanceView the instance view of a virtual machine scale set.
|
||||
type VirtualMachineScaleSetInstanceView struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -7665,6 +7863,12 @@ type VirtualMachineScaleSetInstanceViewStatusesSummary struct {
|
|||
StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for VirtualMachineScaleSetInstanceViewStatusesSummary.
|
||||
func (vmssivss VirtualMachineScaleSetInstanceViewStatusesSummary) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// VirtualMachineScaleSetIPConfiguration describes a virtual machine scale set network profile's IP
|
||||
// configuration.
|
||||
type VirtualMachineScaleSetIPConfiguration struct {
|
||||
|
@ -8965,6 +9169,12 @@ type VirtualMachineScaleSetSku struct {
|
|||
Capacity *VirtualMachineScaleSetSkuCapacity `json:"capacity,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSku.
|
||||
func (vmsss VirtualMachineScaleSetSku) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// VirtualMachineScaleSetSkuCapacity describes scaling information of a sku.
|
||||
type VirtualMachineScaleSetSkuCapacity struct {
|
||||
// Minimum - READ-ONLY; The minimum capacity.
|
||||
|
@ -8977,6 +9187,12 @@ type VirtualMachineScaleSetSkuCapacity struct {
|
|||
ScaleType VirtualMachineScaleSetSkuScaleType `json:"scaleType,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSkuCapacity.
|
||||
func (vmsssc VirtualMachineScaleSetSkuCapacity) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// VirtualMachineScaleSetsPerformMaintenanceFuture an abstraction for monitoring and retrieving the results
|
||||
// of a long-running operation.
|
||||
type VirtualMachineScaleSetsPerformMaintenanceFuture struct {
|
||||
|
@ -9902,6 +10118,12 @@ type VirtualMachineScaleSetVMExtensionsSummary struct {
|
|||
StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for VirtualMachineScaleSetVMExtensionsSummary.
|
||||
func (vmssves VirtualMachineScaleSetVMExtensionsSummary) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// VirtualMachineScaleSetVMInstanceIDs specifies a list of virtual machine instance IDs from the VM scale
|
||||
// set.
|
||||
type VirtualMachineScaleSetVMInstanceIDs struct {
|
||||
|
@ -11139,6 +11361,12 @@ type VirtualMachineStatusCodeCount struct {
|
|||
Count *int32 `json:"count,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for VirtualMachineStatusCodeCount.
|
||||
func (vmscc VirtualMachineStatusCodeCount) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// VirtualMachinesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running
|
||||
// operation.
|
||||
type VirtualMachinesUpdateFuture struct {
|
||||
|
|
48
vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2020-06-01/compute/CHANGELOG.md
сгенерированный
поставляемый
48
vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2020-06-01/compute/CHANGELOG.md
сгенерированный
поставляемый
|
@ -1,2 +1,50 @@
|
|||
# Change History
|
||||
|
||||
## Additive Changes
|
||||
|
||||
### New Funcs
|
||||
|
||||
1. AccessURI.MarshalJSON() ([]byte, error)
|
||||
1. AvailablePatchSummary.MarshalJSON() ([]byte, error)
|
||||
1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error)
|
||||
1. DataDiskImage.MarshalJSON() ([]byte, error)
|
||||
1. DiskAccessProperties.MarshalJSON() ([]byte, error)
|
||||
1. GalleryIdentifier.MarshalJSON() ([]byte, error)
|
||||
1. LastPatchInstallationSummary.MarshalJSON() ([]byte, error)
|
||||
1. LogAnalyticsOperationResult.MarshalJSON() ([]byte, error)
|
||||
1. LogAnalyticsOutput.MarshalJSON() ([]byte, error)
|
||||
1. OperationListResult.MarshalJSON() ([]byte, error)
|
||||
1. OperationValueDisplay.MarshalJSON() ([]byte, error)
|
||||
1. OrchestrationServiceSummary.MarshalJSON() ([]byte, error)
|
||||
1. PrivateEndpoint.MarshalJSON() ([]byte, error)
|
||||
1. RecoveryWalkResponse.MarshalJSON() ([]byte, error)
|
||||
1. RegionalReplicationStatus.MarshalJSON() ([]byte, error)
|
||||
1. ReplicationStatus.MarshalJSON() ([]byte, error)
|
||||
1. ResourceSku.MarshalJSON() ([]byte, error)
|
||||
1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error)
|
||||
1. ResourceSkuCapacity.MarshalJSON() ([]byte, error)
|
||||
1. ResourceSkuCosts.MarshalJSON() ([]byte, error)
|
||||
1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error)
|
||||
1. ResourceSkuRestrictionInfo.MarshalJSON() ([]byte, error)
|
||||
1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error)
|
||||
1. ResourceSkuZoneDetails.MarshalJSON() ([]byte, error)
|
||||
1. RetrieveBootDiagnosticsDataResult.MarshalJSON() ([]byte, error)
|
||||
1. RollbackStatusInfo.MarshalJSON() ([]byte, error)
|
||||
1. RollingUpgradeProgressInfo.MarshalJSON() ([]byte, error)
|
||||
1. RollingUpgradeRunningStatus.MarshalJSON() ([]byte, error)
|
||||
1. RollingUpgradeStatusInfoProperties.MarshalJSON() ([]byte, error)
|
||||
1. ShareInfoElement.MarshalJSON() ([]byte, error)
|
||||
1. SubResourceReadOnly.MarshalJSON() ([]byte, error)
|
||||
1. UpgradeOperationHistoricalStatusInfo.MarshalJSON() ([]byte, error)
|
||||
1. UpgradeOperationHistoricalStatusInfoProperties.MarshalJSON() ([]byte, error)
|
||||
1. UpgradeOperationHistoryStatus.MarshalJSON() ([]byte, error)
|
||||
1. VirtualMachineAssessPatchesResult.MarshalJSON() ([]byte, error)
|
||||
1. VirtualMachineHealthStatus.MarshalJSON() ([]byte, error)
|
||||
1. VirtualMachineIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error)
|
||||
1. VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error)
|
||||
1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error)
|
||||
1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error)
|
||||
1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error)
|
||||
1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error)
|
||||
1. VirtualMachineSoftwarePatchProperties.MarshalJSON() ([]byte, error)
|
||||
1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error)
|
||||
|
|
4
vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2020-06-01/compute/_meta.json
сгенерированный
поставляемый
4
vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2020-06-01/compute/_meta.json
сгенерированный
поставляемый
|
@ -2,9 +2,9 @@
|
|||
"commit": "3c764635e7d442b3e74caf593029fcd440b3ef82",
|
||||
"readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md",
|
||||
"tag": "package-2020-06-01",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.180",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.183",
|
||||
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-06-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-06-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/compute/resource-manager/readme.md",
|
||||
"additional_properties": {
|
||||
"additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION"
|
||||
}
|
||||
|
|
264
vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2020-06-01/compute/models.go
сгенерированный
поставляемый
264
vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2020-06-01/compute/models.go
сгенерированный
поставляемый
|
@ -27,6 +27,12 @@ type AccessURI struct {
|
|||
AccessSAS *string `json:"accessSAS,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for AccessURI.
|
||||
func (au AccessURI) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// AdditionalCapabilities enables or disables a capability on the virtual machine or virtual machine scale
|
||||
// set.
|
||||
type AdditionalCapabilities struct {
|
||||
|
@ -503,6 +509,12 @@ type AvailablePatchSummary struct {
|
|||
Error *APIError `json:"error,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for AvailablePatchSummary.
|
||||
func (aps AvailablePatchSummary) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// BillingProfile specifies the billing related details of a Azure Spot VM or VMSS. <br><br>Minimum
|
||||
// api-version: 2019-03-01.
|
||||
type BillingProfile struct {
|
||||
|
@ -530,6 +542,12 @@ type BootDiagnosticsInstanceView struct {
|
|||
Status *InstanceViewStatus `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for BootDiagnosticsInstanceView.
|
||||
func (bdiv BootDiagnosticsInstanceView) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// CloudError an error response from the Compute service.
|
||||
type CloudError struct {
|
||||
Error *APIError `json:"error,omitempty"`
|
||||
|
@ -1169,6 +1187,12 @@ type DataDiskImage struct {
|
|||
Lun *int32 `json:"lun,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for DataDiskImage.
|
||||
func (ddi DataDiskImage) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// DataDiskImageEncryption contains encryption settings for a data disk image.
|
||||
type DataDiskImageEncryption struct {
|
||||
// Lun - This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.
|
||||
|
@ -2664,6 +2688,12 @@ type DiskAccessProperties struct {
|
|||
TimeCreated *date.Time `json:"timeCreated,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for DiskAccessProperties.
|
||||
func (dap DiskAccessProperties) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// DiskAccessUpdate used for updating a disk access resource.
|
||||
type DiskAccessUpdate struct {
|
||||
// Tags - Resource tags
|
||||
|
@ -5148,6 +5178,12 @@ type GalleryIdentifier struct {
|
|||
UniqueName *string `json:"uniqueName,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for GalleryIdentifier.
|
||||
func (gi GalleryIdentifier) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// GalleryImage specifies information about the gallery Image Definition that you want to create or update.
|
||||
type GalleryImage struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -7203,6 +7239,12 @@ type LastPatchInstallationSummary struct {
|
|||
Error *APIError `json:"error,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for LastPatchInstallationSummary.
|
||||
func (lpis LastPatchInstallationSummary) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// LinuxConfiguration specifies the Linux operating system settings on the virtual machine. <br><br>For a
|
||||
// list of supported Linux distributions, see [Linux on Azure-Endorsed
|
||||
// Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
|
||||
|
@ -7497,12 +7539,24 @@ type LogAnalyticsOperationResult struct {
|
|||
Properties *LogAnalyticsOutput `json:"properties,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for LogAnalyticsOperationResult.
|
||||
func (laor LogAnalyticsOperationResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// LogAnalyticsOutput logAnalytics output properties
|
||||
type LogAnalyticsOutput struct {
|
||||
// Output - READ-ONLY; Output file Uri path to blob container.
|
||||
Output *string `json:"output,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for LogAnalyticsOutput.
|
||||
func (lao LogAnalyticsOutput) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// MaintenanceRedeployStatus maintenance Operation Status.
|
||||
type MaintenanceRedeployStatus struct {
|
||||
// IsCustomerInitiatedMaintenanceAllowed - True, if customer is allowed to perform Maintenance.
|
||||
|
@ -7608,6 +7662,12 @@ type OperationListResult struct {
|
|||
Value *[]OperationValue `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for OperationListResult.
|
||||
func (olr OperationListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// OperationValue describes the properties of a Compute Operation value.
|
||||
type OperationValue struct {
|
||||
// Origin - READ-ONLY; The origin of the compute operation.
|
||||
|
@ -7680,6 +7740,12 @@ type OperationValueDisplay struct {
|
|||
Provider *string `json:"provider,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for OperationValueDisplay.
|
||||
func (ovd OperationValueDisplay) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// OrchestrationServiceStateInput the input for OrchestrationServiceState
|
||||
type OrchestrationServiceStateInput struct {
|
||||
// ServiceName - The name of the service. Possible values include: 'AutomaticRepairs'
|
||||
|
@ -7696,6 +7762,12 @@ type OrchestrationServiceSummary struct {
|
|||
ServiceState OrchestrationServiceState `json:"serviceState,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for OrchestrationServiceSummary.
|
||||
func (oss OrchestrationServiceSummary) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// OSDisk specifies information about the operating system disk used by the virtual machine. <br><br> For
|
||||
// more information about disks, see [About disks and VHDs for Azure virtual
|
||||
// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
|
||||
|
@ -7787,6 +7859,12 @@ type PrivateEndpoint struct {
|
|||
ID *string `json:"id,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for PrivateEndpoint.
|
||||
func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// PrivateEndpointConnection the Private Endpoint Connection resource.
|
||||
type PrivateEndpointConnection struct {
|
||||
// PrivateEndpointConnectionProperties - Resource properties.
|
||||
|
@ -8306,6 +8384,12 @@ type RecoveryWalkResponse struct {
|
|||
NextPlatformUpdateDomain *int32 `json:"nextPlatformUpdateDomain,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for RecoveryWalkResponse.
|
||||
func (rwr RecoveryWalkResponse) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// RegionalReplicationStatus this is the regional replication status.
|
||||
type RegionalReplicationStatus struct {
|
||||
// Region - READ-ONLY; The region to which the gallery Image Version is being replicated to.
|
||||
|
@ -8318,6 +8402,12 @@ type RegionalReplicationStatus struct {
|
|||
Progress *int32 `json:"progress,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for RegionalReplicationStatus.
|
||||
func (rrs RegionalReplicationStatus) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ReplicationStatus this is the replication status of the gallery Image Version.
|
||||
type ReplicationStatus struct {
|
||||
// AggregatedState - READ-ONLY; This is the aggregated replication status based on all the regional replication status flags. Possible values include: 'Unknown', 'InProgress', 'Completed', 'Failed'
|
||||
|
@ -8326,6 +8416,12 @@ type ReplicationStatus struct {
|
|||
Summary *[]RegionalReplicationStatus `json:"summary,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ReplicationStatus.
|
||||
func (rs ReplicationStatus) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// RequestRateByIntervalInput api request input for LogAnalytics getRequestRateByInterval Api.
|
||||
type RequestRateByIntervalInput struct {
|
||||
// IntervalLength - Interval value in minutes used to create LogAnalytics call rate logs. Possible values include: 'ThreeMins', 'FiveMins', 'ThirtyMins', 'SixtyMins'
|
||||
|
@ -8408,6 +8504,12 @@ type ResourceSku struct {
|
|||
Restrictions *[]ResourceSkuRestrictions `json:"restrictions,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ResourceSku.
|
||||
func (rs ResourceSku) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ResourceSkuCapabilities describes The SKU capabilities object.
|
||||
type ResourceSkuCapabilities struct {
|
||||
// Name - READ-ONLY; An invariant to describe the feature.
|
||||
|
@ -8416,6 +8518,12 @@ type ResourceSkuCapabilities struct {
|
|||
Value *string `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ResourceSkuCapabilities.
|
||||
func (rsc ResourceSkuCapabilities) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ResourceSkuCapacity describes scaling information of a SKU.
|
||||
type ResourceSkuCapacity struct {
|
||||
// Minimum - READ-ONLY; The minimum capacity.
|
||||
|
@ -8428,6 +8536,12 @@ type ResourceSkuCapacity struct {
|
|||
ScaleType ResourceSkuCapacityScaleType `json:"scaleType,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ResourceSkuCapacity.
|
||||
func (rsc ResourceSkuCapacity) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ResourceSkuCosts describes metadata for retrieving price info.
|
||||
type ResourceSkuCosts struct {
|
||||
// MeterID - READ-ONLY; Used for querying price from commerce.
|
||||
|
@ -8438,6 +8552,12 @@ type ResourceSkuCosts struct {
|
|||
ExtendedUnit *string `json:"extendedUnit,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ResourceSkuCosts.
|
||||
func (rsc ResourceSkuCosts) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ResourceSkuLocationInfo ...
|
||||
type ResourceSkuLocationInfo struct {
|
||||
// Location - READ-ONLY; Location of the SKU
|
||||
|
@ -8448,6 +8568,12 @@ type ResourceSkuLocationInfo struct {
|
|||
ZoneDetails *[]ResourceSkuZoneDetails `json:"zoneDetails,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ResourceSkuLocationInfo.
|
||||
func (rsli ResourceSkuLocationInfo) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ResourceSkuRestrictionInfo ...
|
||||
type ResourceSkuRestrictionInfo struct {
|
||||
// Locations - READ-ONLY; Locations where the SKU is restricted
|
||||
|
@ -8456,6 +8582,12 @@ type ResourceSkuRestrictionInfo struct {
|
|||
Zones *[]string `json:"zones,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ResourceSkuRestrictionInfo.
|
||||
func (rsri ResourceSkuRestrictionInfo) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ResourceSkuRestrictions describes scaling information of a SKU.
|
||||
type ResourceSkuRestrictions struct {
|
||||
// Type - READ-ONLY; The type of restrictions. Possible values include: 'Location', 'Zone'
|
||||
|
@ -8468,6 +8600,12 @@ type ResourceSkuRestrictions struct {
|
|||
ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ResourceSkuRestrictions.
|
||||
func (rsr ResourceSkuRestrictions) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ResourceSkusResult the List Resource Skus operation response.
|
||||
type ResourceSkusResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -8635,6 +8773,12 @@ type ResourceSkuZoneDetails struct {
|
|||
Capabilities *[]ResourceSkuCapabilities `json:"capabilities,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ResourceSkuZoneDetails.
|
||||
func (rszd ResourceSkuZoneDetails) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// RetrieveBootDiagnosticsDataResult the SAS URIs of the console screenshot and serial log blobs.
|
||||
type RetrieveBootDiagnosticsDataResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -8644,6 +8788,12 @@ type RetrieveBootDiagnosticsDataResult struct {
|
|||
SerialConsoleLogBlobURI *string `json:"serialConsoleLogBlobUri,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for RetrieveBootDiagnosticsDataResult.
|
||||
func (rbddr RetrieveBootDiagnosticsDataResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// RollbackStatusInfo information about rollback on failed VM instances after a OS Upgrade operation.
|
||||
type RollbackStatusInfo struct {
|
||||
// SuccessfullyRolledbackInstanceCount - READ-ONLY; The number of instances which have been successfully rolled back.
|
||||
|
@ -8654,6 +8804,12 @@ type RollbackStatusInfo struct {
|
|||
RollbackError *APIError `json:"rollbackError,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for RollbackStatusInfo.
|
||||
func (rsi RollbackStatusInfo) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// RollingUpgradePolicy the configuration parameters used while performing a rolling upgrade.
|
||||
type RollingUpgradePolicy struct {
|
||||
// MaxBatchInstancePercent - The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%.
|
||||
|
@ -8679,6 +8835,12 @@ type RollingUpgradeProgressInfo struct {
|
|||
PendingInstanceCount *int32 `json:"pendingInstanceCount,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for RollingUpgradeProgressInfo.
|
||||
func (rupi RollingUpgradeProgressInfo) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// RollingUpgradeRunningStatus information about the current running state of the overall upgrade.
|
||||
type RollingUpgradeRunningStatus struct {
|
||||
// Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'RollingUpgradeStatusCodeRollingForward', 'RollingUpgradeStatusCodeCancelled', 'RollingUpgradeStatusCodeCompleted', 'RollingUpgradeStatusCodeFaulted'
|
||||
|
@ -8691,6 +8853,12 @@ type RollingUpgradeRunningStatus struct {
|
|||
LastActionTime *date.Time `json:"lastActionTime,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for RollingUpgradeRunningStatus.
|
||||
func (rurs RollingUpgradeRunningStatus) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// RollingUpgradeStatusInfo the status of the latest virtual machine scale set rolling upgrade.
|
||||
type RollingUpgradeStatusInfo struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -8803,6 +8971,12 @@ type RollingUpgradeStatusInfoProperties struct {
|
|||
Error *APIError `json:"error,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for RollingUpgradeStatusInfoProperties.
|
||||
func (rusip RollingUpgradeStatusInfoProperties) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// RunCommandDocument describes the properties of a Run Command.
|
||||
type RunCommandDocument struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -9057,6 +9231,12 @@ type ShareInfoElement struct {
|
|||
VMURI *string `json:"vmUri,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ShareInfoElement.
|
||||
func (sie ShareInfoElement) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// Sku describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware
|
||||
// the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU
|
||||
// name.
|
||||
|
@ -10091,6 +10271,12 @@ type SubResourceReadOnly struct {
|
|||
ID *string `json:"id,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for SubResourceReadOnly.
|
||||
func (srro SubResourceReadOnly) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// SubResourceWithColocationStatus ...
|
||||
type SubResourceWithColocationStatus struct {
|
||||
// ColocationStatus - Describes colocation status of a resource in the Proximity Placement Group.
|
||||
|
@ -10180,6 +10366,12 @@ type UpgradeOperationHistoricalStatusInfo struct {
|
|||
Location *string `json:"location,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for UpgradeOperationHistoricalStatusInfo.
|
||||
func (uohsi UpgradeOperationHistoricalStatusInfo) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// UpgradeOperationHistoricalStatusInfoProperties describes each OS upgrade on the Virtual Machine Scale
|
||||
// Set.
|
||||
type UpgradeOperationHistoricalStatusInfoProperties struct {
|
||||
|
@ -10197,6 +10389,12 @@ type UpgradeOperationHistoricalStatusInfoProperties struct {
|
|||
RollbackInfo *RollbackStatusInfo `json:"rollbackInfo,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for UpgradeOperationHistoricalStatusInfoProperties.
|
||||
func (uohsip UpgradeOperationHistoricalStatusInfoProperties) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// UpgradeOperationHistoryStatus information about the current running state of the overall upgrade.
|
||||
type UpgradeOperationHistoryStatus struct {
|
||||
// Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'UpgradeStateRollingForward', 'UpgradeStateCancelled', 'UpgradeStateCompleted', 'UpgradeStateFaulted'
|
||||
|
@ -10207,6 +10405,12 @@ type UpgradeOperationHistoryStatus struct {
|
|||
EndTime *date.Time `json:"endTime,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for UpgradeOperationHistoryStatus.
|
||||
func (uohs UpgradeOperationHistoryStatus) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// UpgradePolicy describes an upgrade policy - automatic, manual, or rolling.
|
||||
type UpgradePolicy struct {
|
||||
// Mode - Specifies the mode of an upgrade to virtual machines in the scale set.<br /><br /> Possible values are:<br /><br /> **Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.<br /><br /> **Automatic** - All virtual machines in the scale set are automatically updated at the same time. Possible values include: 'UpgradeModeAutomatic', 'UpgradeModeManual', 'UpgradeModeRolling'
|
||||
|
@ -10452,6 +10656,12 @@ type VirtualMachineAssessPatchesResult struct {
|
|||
Error *APIError `json:"error,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for VirtualMachineAssessPatchesResult.
|
||||
func (vmapr VirtualMachineAssessPatchesResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// VirtualMachineCaptureParameters capture Virtual Machine parameters.
|
||||
type VirtualMachineCaptureParameters struct {
|
||||
// VhdPrefix - The captured virtual hard disk's name prefix.
|
||||
|
@ -10989,6 +11199,12 @@ type VirtualMachineHealthStatus struct {
|
|||
Status *InstanceViewStatus `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for VirtualMachineHealthStatus.
|
||||
func (vmhs VirtualMachineHealthStatus) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// VirtualMachineIdentity identity for the virtual machine.
|
||||
type VirtualMachineIdentity struct {
|
||||
// PrincipalID - READ-ONLY; The principal id of virtual machine identity. This property will only be provided for a system assigned identity.
|
||||
|
@ -11021,6 +11237,12 @@ type VirtualMachineIdentityUserAssignedIdentitiesValue struct {
|
|||
ClientID *string `json:"clientId,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for VirtualMachineIdentityUserAssignedIdentitiesValue.
|
||||
func (vmiAiv VirtualMachineIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// VirtualMachineImage describes a Virtual Machine Image.
|
||||
type VirtualMachineImage struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -12790,6 +13012,12 @@ type VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue struct {
|
|||
ClientID *string `json:"clientId,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue.
|
||||
func (vmssiAiv VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// VirtualMachineScaleSetInstanceView the instance view of a virtual machine scale set.
|
||||
type VirtualMachineScaleSetInstanceView struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -12819,6 +13047,12 @@ type VirtualMachineScaleSetInstanceViewStatusesSummary struct {
|
|||
StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for VirtualMachineScaleSetInstanceViewStatusesSummary.
|
||||
func (vmssivss VirtualMachineScaleSetInstanceViewStatusesSummary) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// VirtualMachineScaleSetIPConfiguration describes a virtual machine scale set network profile's IP
|
||||
// configuration.
|
||||
type VirtualMachineScaleSetIPConfiguration struct {
|
||||
|
@ -14138,6 +14372,12 @@ type VirtualMachineScaleSetSku struct {
|
|||
Capacity *VirtualMachineScaleSetSkuCapacity `json:"capacity,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSku.
|
||||
func (vmsss VirtualMachineScaleSetSku) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// VirtualMachineScaleSetSkuCapacity describes scaling information of a sku.
|
||||
type VirtualMachineScaleSetSkuCapacity struct {
|
||||
// Minimum - READ-ONLY; The minimum capacity.
|
||||
|
@ -14150,6 +14390,12 @@ type VirtualMachineScaleSetSkuCapacity struct {
|
|||
ScaleType VirtualMachineScaleSetSkuScaleType `json:"scaleType,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for VirtualMachineScaleSetSkuCapacity.
|
||||
func (vmsssc VirtualMachineScaleSetSkuCapacity) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// VirtualMachineScaleSetsPerformMaintenanceFuture an abstraction for monitoring and retrieving the results
|
||||
// of a long-running operation.
|
||||
type VirtualMachineScaleSetsPerformMaintenanceFuture struct {
|
||||
|
@ -15283,6 +15529,12 @@ type VirtualMachineScaleSetVMExtensionsSummary struct {
|
|||
StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for VirtualMachineScaleSetVMExtensionsSummary.
|
||||
func (vmssves VirtualMachineScaleSetVMExtensionsSummary) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// VirtualMachineScaleSetVMExtensionsUpdateFuture an abstraction for monitoring and retrieving the results
|
||||
// of a long-running operation.
|
||||
type VirtualMachineScaleSetVMExtensionsUpdateFuture struct {
|
||||
|
@ -16545,6 +16797,12 @@ type VirtualMachineSoftwarePatchProperties struct {
|
|||
AssessmentState PatchAssessmentState `json:"assessmentState,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for VirtualMachineSoftwarePatchProperties.
|
||||
func (vmspp VirtualMachineSoftwarePatchProperties) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// VirtualMachinesPerformMaintenanceFuture an abstraction for monitoring and retrieving the results of a
|
||||
// long-running operation.
|
||||
type VirtualMachinesPerformMaintenanceFuture struct {
|
||||
|
@ -16856,6 +17114,12 @@ type VirtualMachineStatusCodeCount struct {
|
|||
Count *int32 `json:"count,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for VirtualMachineStatusCodeCount.
|
||||
func (vmscc VirtualMachineStatusCodeCount) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// VirtualMachinesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running
|
||||
// operation.
|
||||
type VirtualMachinesUpdateFuture struct {
|
||||
|
|
40
vendor/github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2021-01-15/documentdb/CHANGELOG.md
сгенерированный
поставляемый
40
vendor/github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2021-01-15/documentdb/CHANGELOG.md
сгенерированный
поставляемый
|
@ -1,2 +1,42 @@
|
|||
# Change History
|
||||
|
||||
## Additive Changes
|
||||
|
||||
### New Funcs
|
||||
|
||||
1. ARMProxyResource.MarshalJSON() ([]byte, error)
|
||||
1. AzureEntityResource.MarshalJSON() ([]byte, error)
|
||||
1. CassandraKeyspaceListResult.MarshalJSON() ([]byte, error)
|
||||
1. CassandraTableListResult.MarshalJSON() ([]byte, error)
|
||||
1. DatabaseAccountConnectionString.MarshalJSON() ([]byte, error)
|
||||
1. DatabaseAccountListKeysResult.MarshalJSON() ([]byte, error)
|
||||
1. DatabaseAccountListReadOnlyKeysResult.MarshalJSON() ([]byte, error)
|
||||
1. DatabaseAccountsListResult.MarshalJSON() ([]byte, error)
|
||||
1. ExtendedResourceProperties.MarshalJSON() ([]byte, error)
|
||||
1. GremlinDatabaseListResult.MarshalJSON() ([]byte, error)
|
||||
1. GremlinGraphListResult.MarshalJSON() ([]byte, error)
|
||||
1. ManagedServiceIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error)
|
||||
1. MetricAvailability.MarshalJSON() ([]byte, error)
|
||||
1. MetricDefinitionsListResult.MarshalJSON() ([]byte, error)
|
||||
1. MetricListResult.MarshalJSON() ([]byte, error)
|
||||
1. MetricName.MarshalJSON() ([]byte, error)
|
||||
1. MetricValue.MarshalJSON() ([]byte, error)
|
||||
1. MongoDBCollectionListResult.MarshalJSON() ([]byte, error)
|
||||
1. MongoDBDatabaseListResult.MarshalJSON() ([]byte, error)
|
||||
1. NotebookWorkspaceConnectionInfoResult.MarshalJSON() ([]byte, error)
|
||||
1. NotebookWorkspaceCreateUpdateParameters.MarshalJSON() ([]byte, error)
|
||||
1. NotebookWorkspaceProperties.MarshalJSON() ([]byte, error)
|
||||
1. PartitionMetricListResult.MarshalJSON() ([]byte, error)
|
||||
1. PartitionUsagesResult.MarshalJSON() ([]byte, error)
|
||||
1. PercentileMetricListResult.MarshalJSON() ([]byte, error)
|
||||
1. PercentileMetricValue.MarshalJSON() ([]byte, error)
|
||||
1. PrivateLinkResourceProperties.MarshalJSON() ([]byte, error)
|
||||
1. ProxyResource.MarshalJSON() ([]byte, error)
|
||||
1. Resource.MarshalJSON() ([]byte, error)
|
||||
1. SQLContainerListResult.MarshalJSON() ([]byte, error)
|
||||
1. SQLDatabaseListResult.MarshalJSON() ([]byte, error)
|
||||
1. SQLStoredProcedureListResult.MarshalJSON() ([]byte, error)
|
||||
1. SQLTriggerListResult.MarshalJSON() ([]byte, error)
|
||||
1. SQLUserDefinedFunctionListResult.MarshalJSON() ([]byte, error)
|
||||
1. TableListResult.MarshalJSON() ([]byte, error)
|
||||
1. UsagesResult.MarshalJSON() ([]byte, error)
|
||||
|
|
4
vendor/github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2021-01-15/documentdb/_meta.json
сгенерированный
поставляемый
4
vendor/github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2021-01-15/documentdb/_meta.json
сгенерированный
поставляемый
|
@ -2,9 +2,9 @@
|
|||
"commit": "8240593bde5350e6762015523ccd57cb61e32da5",
|
||||
"readme": "/_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md",
|
||||
"tag": "package-2021-01",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.180",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.183",
|
||||
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2021-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md",
|
||||
"additional_properties": {
|
||||
"additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION"
|
||||
}
|
||||
|
|
216
vendor/github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2021-01-15/documentdb/models.go
сгенерированный
поставляемый
216
vendor/github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2021-01-15/documentdb/models.go
сгенерированный
поставляемый
|
@ -37,6 +37,12 @@ type ARMProxyResource struct {
|
|||
Type *string `json:"type,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ARMProxyResource.
|
||||
func (apr ARMProxyResource) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ARMResourceProperties the core properties of ARM resources.
|
||||
type ARMResourceProperties struct {
|
||||
// ID - READ-ONLY; The unique resource identifier of the ARM resource.
|
||||
|
@ -108,6 +114,12 @@ type AzureEntityResource struct {
|
|||
Type *string `json:"type,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for AzureEntityResource.
|
||||
func (aer AzureEntityResource) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// BasicBackupPolicy the object representing the policy for taking backups on an account.
|
||||
type BasicBackupPolicy interface {
|
||||
AsPeriodicModeBackupPolicy() (*PeriodicModeBackupPolicy, bool)
|
||||
|
@ -449,6 +461,12 @@ type CassandraKeyspaceListResult struct {
|
|||
Value *[]CassandraKeyspaceGetResults `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for CassandraKeyspaceListResult.
|
||||
func (cklr CassandraKeyspaceListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// CassandraKeyspaceResource cosmos DB Cassandra keyspace resource object
|
||||
type CassandraKeyspaceResource struct {
|
||||
// ID - Name of the Cosmos DB Cassandra keyspace
|
||||
|
@ -1154,6 +1172,12 @@ type CassandraTableListResult struct {
|
|||
Value *[]CassandraTableGetResults `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for CassandraTableListResult.
|
||||
func (ctlr CassandraTableListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// CassandraTableResource cosmos DB Cassandra table resource object
|
||||
type CassandraTableResource struct {
|
||||
// ID - Name of the Cosmos DB Cassandra table
|
||||
|
@ -1305,6 +1329,12 @@ type DatabaseAccountConnectionString struct {
|
|||
Description *string `json:"description,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for DatabaseAccountConnectionString.
|
||||
func (dacs DatabaseAccountConnectionString) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// DatabaseAccountCreateUpdateParameters parameters to create and update Cosmos DB database accounts.
|
||||
type DatabaseAccountCreateUpdateParameters struct {
|
||||
// Kind - Indicates the type of database account. This can only be set at database account creation. Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse'
|
||||
|
@ -2203,6 +2233,12 @@ type DatabaseAccountListKeysResult struct {
|
|||
SecondaryReadonlyMasterKey *string `json:"secondaryReadonlyMasterKey,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for DatabaseAccountListKeysResult.
|
||||
func (dalkr DatabaseAccountListKeysResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// DatabaseAccountListReadOnlyKeysResult the read-only access keys for the given database account.
|
||||
type DatabaseAccountListReadOnlyKeysResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -2212,6 +2248,12 @@ type DatabaseAccountListReadOnlyKeysResult struct {
|
|||
SecondaryReadonlyMasterKey *string `json:"secondaryReadonlyMasterKey,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for DatabaseAccountListReadOnlyKeysResult.
|
||||
func (dalrokr DatabaseAccountListReadOnlyKeysResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// DatabaseAccountRegenerateKeyParameters parameters to regenerate the keys within the database account.
|
||||
type DatabaseAccountRegenerateKeyParameters struct {
|
||||
// KeyKind - The access key to regenerate. Possible values include: 'Primary', 'Secondary', 'PrimaryReadonly', 'SecondaryReadonly'
|
||||
|
@ -2343,6 +2385,12 @@ type DatabaseAccountsListResult struct {
|
|||
Value *[]DatabaseAccountGetResults `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for DatabaseAccountsListResult.
|
||||
func (dalr DatabaseAccountsListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// DatabaseAccountsOfflineRegionFuture an abstraction for monitoring and retrieving the results of a
|
||||
// long-running operation.
|
||||
type DatabaseAccountsOfflineRegionFuture struct {
|
||||
|
@ -2843,6 +2891,12 @@ type ExtendedResourceProperties struct {
|
|||
Etag *string `json:"_etag,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ExtendedResourceProperties.
|
||||
func (erp ExtendedResourceProperties) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// FailoverPolicies the list of new failover policies for the failover priority change.
|
||||
type FailoverPolicies struct {
|
||||
// FailoverPolicies - List of failover policies.
|
||||
|
@ -3121,6 +3175,12 @@ type GremlinDatabaseListResult struct {
|
|||
Value *[]GremlinDatabaseGetResults `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for GremlinDatabaseListResult.
|
||||
func (gdlr GremlinDatabaseListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// GremlinDatabaseResource cosmos DB Gremlin database resource object
|
||||
type GremlinDatabaseResource struct {
|
||||
// ID - Name of the Cosmos DB Gremlin database
|
||||
|
@ -3401,6 +3461,12 @@ type GremlinGraphListResult struct {
|
|||
Value *[]GremlinGraphGetResults `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for GremlinGraphListResult.
|
||||
func (gglr GremlinGraphListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// GremlinGraphResource cosmos DB Gremlin graph resource object
|
||||
type GremlinGraphResource struct {
|
||||
// ID - Name of the Cosmos DB Gremlin graph
|
||||
|
@ -3940,6 +4006,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct {
|
|||
ClientID *string `json:"clientId,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ManagedServiceIdentityUserAssignedIdentitiesValue.
|
||||
func (msiAiv ManagedServiceIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// Metric metric data
|
||||
type Metric struct {
|
||||
// StartTime - READ-ONLY; The start time for the metric (ISO-8601 format).
|
||||
|
@ -3973,6 +4045,12 @@ type MetricAvailability struct {
|
|||
Retention *string `json:"retention,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for MetricAvailability.
|
||||
func (ma MetricAvailability) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// MetricDefinition the definition of a metric.
|
||||
type MetricDefinition struct {
|
||||
// MetricAvailabilities - READ-ONLY; The list of metric availabilities for the account.
|
||||
|
@ -4003,6 +4081,12 @@ type MetricDefinitionsListResult struct {
|
|||
Value *[]MetricDefinition `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for MetricDefinitionsListResult.
|
||||
func (mdlr MetricDefinitionsListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// MetricListResult the response to a list metrics request.
|
||||
type MetricListResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -4010,6 +4094,12 @@ type MetricListResult struct {
|
|||
Value *[]Metric `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for MetricListResult.
|
||||
func (mlr MetricListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// MetricName a metric name.
|
||||
type MetricName struct {
|
||||
// Value - READ-ONLY; The name of the metric.
|
||||
|
@ -4018,6 +4108,12 @@ type MetricName struct {
|
|||
LocalizedValue *string `json:"localizedValue,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for MetricName.
|
||||
func (mn MetricName) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// MetricValue represents metrics values.
|
||||
type MetricValue struct {
|
||||
// Count - READ-ONLY; The number of values for the metric.
|
||||
|
@ -4034,6 +4130,12 @@ type MetricValue struct {
|
|||
Total *float64 `json:"total,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for MetricValue.
|
||||
func (mv MetricValue) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// MongoDBCollectionCreateUpdateParameters parameters to create and update Cosmos DB MongoDB collection.
|
||||
type MongoDBCollectionCreateUpdateParameters struct {
|
||||
// MongoDBCollectionCreateUpdateProperties - Properties to create and update Azure Cosmos DB MongoDB collection.
|
||||
|
@ -4300,6 +4402,12 @@ type MongoDBCollectionListResult struct {
|
|||
Value *[]MongoDBCollectionGetResults `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for MongoDBCollectionListResult.
|
||||
func (mdclr MongoDBCollectionListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// MongoDBCollectionResource cosmos DB MongoDB collection resource object
|
||||
type MongoDBCollectionResource struct {
|
||||
// ID - Name of the Cosmos DB MongoDB collection
|
||||
|
@ -4580,6 +4688,12 @@ type MongoDBDatabaseListResult struct {
|
|||
Value *[]MongoDBDatabaseGetResults `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for MongoDBDatabaseListResult.
|
||||
func (mddlr MongoDBDatabaseListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// MongoDBDatabaseResource cosmos DB MongoDB database resource object
|
||||
type MongoDBDatabaseResource struct {
|
||||
// ID - Name of the Cosmos DB MongoDB database
|
||||
|
@ -5108,6 +5222,12 @@ type NotebookWorkspaceConnectionInfoResult struct {
|
|||
NotebookServerEndpoint *string `json:"notebookServerEndpoint,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for NotebookWorkspaceConnectionInfoResult.
|
||||
func (nwcir NotebookWorkspaceConnectionInfoResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// NotebookWorkspaceCreateUpdateParameters parameters to create a notebook workspace resource
|
||||
type NotebookWorkspaceCreateUpdateParameters struct {
|
||||
// ID - READ-ONLY; The unique resource identifier of the database account.
|
||||
|
@ -5118,6 +5238,12 @@ type NotebookWorkspaceCreateUpdateParameters struct {
|
|||
Type *string `json:"type,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for NotebookWorkspaceCreateUpdateParameters.
|
||||
func (nwcup NotebookWorkspaceCreateUpdateParameters) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// NotebookWorkspaceListResult a list of notebook workspace resources
|
||||
type NotebookWorkspaceListResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -5133,6 +5259,12 @@ type NotebookWorkspaceProperties struct {
|
|||
Status *string `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for NotebookWorkspaceProperties.
|
||||
func (nwp NotebookWorkspaceProperties) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// NotebookWorkspacesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a
|
||||
// long-running operation.
|
||||
type NotebookWorkspacesCreateOrUpdateFuture struct {
|
||||
|
@ -5511,6 +5643,12 @@ type PartitionMetricListResult struct {
|
|||
Value *[]PartitionMetric `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for PartitionMetricListResult.
|
||||
func (pmlr PartitionMetricListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// PartitionUsage the partition level usage data for a usage request.
|
||||
type PartitionUsage struct {
|
||||
// PartitionID - READ-ONLY; The partition id (GUID identifier) of the usages.
|
||||
|
@ -5545,6 +5683,12 @@ type PartitionUsagesResult struct {
|
|||
Value *[]PartitionUsage `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for PartitionUsagesResult.
|
||||
func (pur PartitionUsagesResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// PercentileMetric percentile Metric data
|
||||
type PercentileMetric struct {
|
||||
// StartTime - READ-ONLY; The start time for the metric (ISO-8601 format).
|
||||
|
@ -5577,6 +5721,12 @@ type PercentileMetricListResult struct {
|
|||
Value *[]PercentileMetric `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for PercentileMetricListResult.
|
||||
func (pmlr PercentileMetricListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// PercentileMetricValue represents percentile metrics values.
|
||||
type PercentileMetricValue struct {
|
||||
// P10 - READ-ONLY; The 10th percentile value for the metric.
|
||||
|
@ -5607,6 +5757,12 @@ type PercentileMetricValue struct {
|
|||
Total *float64 `json:"total,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for PercentileMetricValue.
|
||||
func (pmv PercentileMetricValue) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// PeriodicModeBackupPolicy the object representing periodic mode backup policy.
|
||||
type PeriodicModeBackupPolicy struct {
|
||||
// PeriodicModeProperties - Configuration values for periodic mode backup
|
||||
|
@ -5924,6 +6080,12 @@ type PrivateLinkResourceProperties struct {
|
|||
RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties.
|
||||
func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// PrivateLinkServiceConnectionStateProperty connection State of the Private Endpoint Connection.
|
||||
type PrivateLinkServiceConnectionStateProperty struct {
|
||||
// Status - The private link service connection status.
|
||||
|
@ -5957,6 +6119,12 @@ type ProxyResource struct {
|
|||
Type *string `json:"type,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ProxyResource.
|
||||
func (pr ProxyResource) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// RegionForOnlineOffline cosmos DB region to online or offline.
|
||||
type RegionForOnlineOffline struct {
|
||||
// Region - Cosmos DB region, with spaces between words and each word capitalized.
|
||||
|
@ -5973,6 +6141,12 @@ type Resource struct {
|
|||
Type *string `json:"type,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for Resource.
|
||||
func (r Resource) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// SpatialSpec ...
|
||||
type SpatialSpec struct {
|
||||
// Path - The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*)
|
||||
|
@ -6260,6 +6434,12 @@ type SQLContainerListResult struct {
|
|||
Value *[]SQLContainerGetResults `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for SQLContainerListResult.
|
||||
func (sclr SQLContainerListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// SQLContainerResource cosmos DB SQL container resource object
|
||||
type SQLContainerResource struct {
|
||||
// ID - Name of the Cosmos DB SQL container
|
||||
|
@ -6537,6 +6717,12 @@ type SQLDatabaseListResult struct {
|
|||
Value *[]SQLDatabaseGetResults `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for SQLDatabaseListResult.
|
||||
func (sdlr SQLDatabaseListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// SQLDatabaseResource cosmos DB SQL database resource object
|
||||
type SQLDatabaseResource struct {
|
||||
// ID - Name of the Cosmos DB SQL database
|
||||
|
@ -7448,6 +7634,12 @@ type SQLStoredProcedureListResult struct {
|
|||
Value *[]SQLStoredProcedureGetResults `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for SQLStoredProcedureListResult.
|
||||
func (ssplr SQLStoredProcedureListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// SQLStoredProcedureResource cosmos DB SQL storedProcedure resource object
|
||||
type SQLStoredProcedureResource struct {
|
||||
// ID - Name of the Cosmos DB SQL storedProcedure
|
||||
|
@ -7711,6 +7903,12 @@ type SQLTriggerListResult struct {
|
|||
Value *[]SQLTriggerGetResults `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for SQLTriggerListResult.
|
||||
func (stlr SQLTriggerListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// SQLTriggerResource cosmos DB SQL trigger resource object
|
||||
type SQLTriggerResource struct {
|
||||
// ID - Name of the Cosmos DB SQL trigger
|
||||
|
@ -7971,6 +8169,12 @@ type SQLUserDefinedFunctionListResult struct {
|
|||
Value *[]SQLUserDefinedFunctionGetResults `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for SQLUserDefinedFunctionListResult.
|
||||
func (sudflr SQLUserDefinedFunctionListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// SQLUserDefinedFunctionResource cosmos DB SQL userDefinedFunction resource object
|
||||
type SQLUserDefinedFunctionResource struct {
|
||||
// ID - Name of the Cosmos DB SQL userDefinedFunction
|
||||
|
@ -8228,6 +8432,12 @@ type TableListResult struct {
|
|||
Value *[]TableGetResults `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for TableListResult.
|
||||
func (tlr TableListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// TableResource cosmos DB table resource object
|
||||
type TableResource struct {
|
||||
// ID - Name of the Cosmos DB table
|
||||
|
@ -8787,6 +8997,12 @@ type UsagesResult struct {
|
|||
Value *[]Usage `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for UsagesResult.
|
||||
func (ur UsagesResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// VirtualNetworkRule virtual Network ACL Rule object
|
||||
type VirtualNetworkRule struct {
|
||||
// ID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}.
|
||||
|
|
4
vendor/github.com/Azure/azure-sdk-for-go/services/dns/mgmt/2018-05-01/dns/_meta.json
сгенерированный
поставляемый
4
vendor/github.com/Azure/azure-sdk-for-go/services/dns/mgmt/2018-05-01/dns/_meta.json
сгенерированный
поставляемый
|
@ -2,9 +2,9 @@
|
|||
"commit": "3c764635e7d442b3e74caf593029fcd440b3ef82",
|
||||
"readme": "/_/azure-rest-api-specs/specification/dns/resource-manager/readme.md",
|
||||
"tag": "package-2018-05",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.180",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.183",
|
||||
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/dns/resource-manager/readme.md",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/dns/resource-manager/readme.md",
|
||||
"additional_properties": {
|
||||
"additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION"
|
||||
}
|
||||
|
|
4
vendor/github.com/Azure/azure-sdk-for-go/services/graphrbac/1.6/graphrbac/_meta.json
сгенерированный
поставляемый
4
vendor/github.com/Azure/azure-sdk-for-go/services/graphrbac/1.6/graphrbac/_meta.json
сгенерированный
поставляемый
|
@ -2,9 +2,9 @@
|
|||
"commit": "3c764635e7d442b3e74caf593029fcd440b3ef82",
|
||||
"readme": "/_/azure-rest-api-specs/specification/graphrbac/data-plane/readme.md",
|
||||
"tag": "1.6",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.180",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.183",
|
||||
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=1.6 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/graphrbac/data-plane/readme.md",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=1.6 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/graphrbac/data-plane/readme.md",
|
||||
"additional_properties": {
|
||||
"additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION"
|
||||
}
|
||||
|
|
5
vendor/github.com/Azure/azure-sdk-for-go/services/keyvault/mgmt/2016-10-01/keyvault/CHANGELOG.md
сгенерированный
поставляемый
5
vendor/github.com/Azure/azure-sdk-for-go/services/keyvault/mgmt/2016-10-01/keyvault/CHANGELOG.md
сгенерированный
поставляемый
|
@ -1,2 +1,7 @@
|
|||
# Change History
|
||||
|
||||
## Additive Changes
|
||||
|
||||
### New Funcs
|
||||
|
||||
1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error)
|
||||
|
|
4
vendor/github.com/Azure/azure-sdk-for-go/services/keyvault/mgmt/2016-10-01/keyvault/_meta.json
сгенерированный
поставляемый
4
vendor/github.com/Azure/azure-sdk-for-go/services/keyvault/mgmt/2016-10-01/keyvault/_meta.json
сгенерированный
поставляемый
|
@ -2,9 +2,9 @@
|
|||
"commit": "3c764635e7d442b3e74caf593029fcd440b3ef82",
|
||||
"readme": "/_/azure-rest-api-specs/specification/keyvault/resource-manager/readme.md",
|
||||
"tag": "package-2016-10",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.180",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.183",
|
||||
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2016-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/keyvault/resource-manager/readme.md",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2016-10 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/keyvault/resource-manager/readme.md",
|
||||
"additional_properties": {
|
||||
"additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION"
|
||||
}
|
||||
|
|
6
vendor/github.com/Azure/azure-sdk-for-go/services/keyvault/mgmt/2016-10-01/keyvault/models.go
сгенерированный
поставляемый
6
vendor/github.com/Azure/azure-sdk-for-go/services/keyvault/mgmt/2016-10-01/keyvault/models.go
сгенерированный
поставляемый
|
@ -45,6 +45,12 @@ type CheckNameAvailabilityResult struct {
|
|||
Message *string `json:"message,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult.
|
||||
func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// DeletedVault deleted vault information with extended details.
|
||||
type DeletedVault struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
|
24
vendor/github.com/Azure/azure-sdk-for-go/services/keyvault/v7.0/keyvault/CHANGELOG.md
сгенерированный
поставляемый
24
vendor/github.com/Azure/azure-sdk-for-go/services/keyvault/v7.0/keyvault/CHANGELOG.md
сгенерированный
поставляемый
|
@ -1,2 +1,26 @@
|
|||
# Change History
|
||||
|
||||
## Additive Changes
|
||||
|
||||
### New Funcs
|
||||
|
||||
1. BackupCertificateResult.MarshalJSON() ([]byte, error)
|
||||
1. BackupKeyResult.MarshalJSON() ([]byte, error)
|
||||
1. BackupSecretResult.MarshalJSON() ([]byte, error)
|
||||
1. BackupStorageResult.MarshalJSON() ([]byte, error)
|
||||
1. CertificateIssuerListResult.MarshalJSON() ([]byte, error)
|
||||
1. CertificateListResult.MarshalJSON() ([]byte, error)
|
||||
1. DeletedCertificateListResult.MarshalJSON() ([]byte, error)
|
||||
1. DeletedKeyListResult.MarshalJSON() ([]byte, error)
|
||||
1. DeletedSasDefinitionListResult.MarshalJSON() ([]byte, error)
|
||||
1. DeletedSecretListResult.MarshalJSON() ([]byte, error)
|
||||
1. DeletedStorageListResult.MarshalJSON() ([]byte, error)
|
||||
1. Error.MarshalJSON() ([]byte, error)
|
||||
1. ErrorType.MarshalJSON() ([]byte, error)
|
||||
1. KeyListResult.MarshalJSON() ([]byte, error)
|
||||
1. KeyOperationResult.MarshalJSON() ([]byte, error)
|
||||
1. KeyVerifyResult.MarshalJSON() ([]byte, error)
|
||||
1. PendingCertificateSigningRequestResult.MarshalJSON() ([]byte, error)
|
||||
1. SasDefinitionListResult.MarshalJSON() ([]byte, error)
|
||||
1. SecretListResult.MarshalJSON() ([]byte, error)
|
||||
1. StorageListResult.MarshalJSON() ([]byte, error)
|
||||
|
|
4
vendor/github.com/Azure/azure-sdk-for-go/services/keyvault/v7.0/keyvault/_meta.json
сгенерированный
поставляемый
4
vendor/github.com/Azure/azure-sdk-for-go/services/keyvault/v7.0/keyvault/_meta.json
сгенерированный
поставляемый
|
@ -2,9 +2,9 @@
|
|||
"commit": "3c764635e7d442b3e74caf593029fcd440b3ef82",
|
||||
"readme": "/_/azure-rest-api-specs/specification/keyvault/data-plane/readme.md",
|
||||
"tag": "package-7.0",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.180",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.183",
|
||||
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-7.0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/keyvault/data-plane/readme.md",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-7.0 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/keyvault/data-plane/readme.md",
|
||||
"additional_properties": {
|
||||
"additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION"
|
||||
}
|
||||
|
|
120
vendor/github.com/Azure/azure-sdk-for-go/services/keyvault/v7.0/keyvault/models.go
сгенерированный
поставляемый
120
vendor/github.com/Azure/azure-sdk-for-go/services/keyvault/v7.0/keyvault/models.go
сгенерированный
поставляемый
|
@ -73,6 +73,12 @@ type BackupCertificateResult struct {
|
|||
Value *string `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for BackupCertificateResult.
|
||||
func (bcr BackupCertificateResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// BackupKeyResult the backup key result, containing the backup blob.
|
||||
type BackupKeyResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -80,6 +86,12 @@ type BackupKeyResult struct {
|
|||
Value *string `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for BackupKeyResult.
|
||||
func (bkr BackupKeyResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// BackupSecretResult the backup secret result, containing the backup blob.
|
||||
type BackupSecretResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -87,6 +99,12 @@ type BackupSecretResult struct {
|
|||
Value *string `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for BackupSecretResult.
|
||||
func (bsr BackupSecretResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// BackupStorageResult the backup storage result, containing the backup blob.
|
||||
type BackupStorageResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -94,6 +112,12 @@ type BackupStorageResult struct {
|
|||
Value *string `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for BackupStorageResult.
|
||||
func (bsr BackupStorageResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// CertificateAttributes the certificate management attributes.
|
||||
type CertificateAttributes struct {
|
||||
// RecoveryLevel - READ-ONLY; Reflects the deletion recovery level currently in effect for certificates in the current vault. If it contains 'Purgeable', the certificate can be permanently deleted by a privileged user; otherwise, only the system can purge the certificate, at the end of the retention interval. Possible values include: 'Purgeable', 'RecoverablePurgeable', 'Recoverable', 'RecoverableProtectedSubscription', 'CustomizedRecoverablePurgeable', 'CustomizedRecoverable', 'CustomizedRecoverableProtectedSubscription'
|
||||
|
@ -243,6 +267,12 @@ type CertificateIssuerListResult struct {
|
|||
NextLink *string `json:"nextLink,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for CertificateIssuerListResult.
|
||||
func (cilr CertificateIssuerListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// CertificateIssuerListResultIterator provides access to a complete listing of CertificateIssuerItem
|
||||
// values.
|
||||
type CertificateIssuerListResultIterator struct {
|
||||
|
@ -457,6 +487,12 @@ type CertificateListResult struct {
|
|||
NextLink *string `json:"nextLink,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for CertificateListResult.
|
||||
func (clr CertificateListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// CertificateListResultIterator provides access to a complete listing of CertificateItem values.
|
||||
type CertificateListResultIterator struct {
|
||||
i int
|
||||
|
@ -892,6 +928,12 @@ type DeletedCertificateListResult struct {
|
|||
NextLink *string `json:"nextLink,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for DeletedCertificateListResult.
|
||||
func (dclr DeletedCertificateListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// DeletedCertificateListResultIterator provides access to a complete listing of DeletedCertificateItem
|
||||
// values.
|
||||
type DeletedCertificateListResultIterator struct {
|
||||
|
@ -1125,6 +1167,12 @@ type DeletedKeyListResult struct {
|
|||
NextLink *string `json:"nextLink,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for DeletedKeyListResult.
|
||||
func (dklr DeletedKeyListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// DeletedKeyListResultIterator provides access to a complete listing of DeletedKeyItem values.
|
||||
type DeletedKeyListResultIterator struct {
|
||||
i int
|
||||
|
@ -1347,6 +1395,12 @@ type DeletedSasDefinitionListResult struct {
|
|||
NextLink *string `json:"nextLink,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for DeletedSasDefinitionListResult.
|
||||
func (dsdlr DeletedSasDefinitionListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// DeletedSasDefinitionListResultIterator provides access to a complete listing of DeletedSasDefinitionItem
|
||||
// values.
|
||||
type DeletedSasDefinitionListResultIterator struct {
|
||||
|
@ -1598,6 +1652,12 @@ type DeletedSecretListResult struct {
|
|||
NextLink *string `json:"nextLink,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for DeletedSecretListResult.
|
||||
func (dslr DeletedSecretListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// DeletedSecretListResultIterator provides access to a complete listing of DeletedSecretItem values.
|
||||
type DeletedSecretListResultIterator struct {
|
||||
i int
|
||||
|
@ -1820,6 +1880,12 @@ type DeletedStorageListResult struct {
|
|||
NextLink *string `json:"nextLink,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for DeletedStorageListResult.
|
||||
func (dslr DeletedStorageListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// DeletedStorageListResultIterator provides access to a complete listing of DeletedStorageAccountItem
|
||||
// values.
|
||||
type DeletedStorageListResultIterator struct {
|
||||
|
@ -1981,12 +2047,24 @@ type Error struct {
|
|||
InnerError *Error `json:"innererror,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for Error.
|
||||
func (e Error) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ErrorType the key vault error exception.
|
||||
type ErrorType struct {
|
||||
// Error - READ-ONLY
|
||||
Error *Error `json:"error,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ErrorType.
|
||||
func (et ErrorType) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// IssuerAttributes the attributes of an issuer managed by the Key Vault service.
|
||||
type IssuerAttributes struct {
|
||||
// Enabled - Determines whether the issuer is enabled.
|
||||
|
@ -2255,6 +2333,12 @@ type KeyListResult struct {
|
|||
NextLink *string `json:"nextLink,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for KeyListResult.
|
||||
func (klr KeyListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// KeyListResultIterator provides access to a complete listing of KeyItem values.
|
||||
type KeyListResultIterator struct {
|
||||
i int
|
||||
|
@ -2414,6 +2498,12 @@ type KeyOperationResult struct {
|
|||
Result *string `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for KeyOperationResult.
|
||||
func (kor KeyOperationResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// KeyOperationsParameters the key operations parameters.
|
||||
type KeyOperationsParameters struct {
|
||||
// Algorithm - algorithm identifier. Possible values include: 'RSAOAEP', 'RSAOAEP256', 'RSA15'
|
||||
|
@ -2491,6 +2581,12 @@ type KeyVerifyResult struct {
|
|||
Value *bool `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for KeyVerifyResult.
|
||||
func (kvr KeyVerifyResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// LifetimeAction action and its trigger that will be performed by Key Vault over the lifetime of a
|
||||
// certificate.
|
||||
type LifetimeAction struct {
|
||||
|
@ -2514,6 +2610,12 @@ type PendingCertificateSigningRequestResult struct {
|
|||
Value *string `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for PendingCertificateSigningRequestResult.
|
||||
func (pcsrr PendingCertificateSigningRequestResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// SasDefinitionAttributes the SAS definition management attributes.
|
||||
type SasDefinitionAttributes struct {
|
||||
// Enabled - the enabled state of the object.
|
||||
|
@ -2623,6 +2725,12 @@ type SasDefinitionListResult struct {
|
|||
NextLink *string `json:"nextLink,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for SasDefinitionListResult.
|
||||
func (sdlr SasDefinitionListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// SasDefinitionListResultIterator provides access to a complete listing of SasDefinitionItem values.
|
||||
type SasDefinitionListResultIterator struct {
|
||||
i int
|
||||
|
@ -2920,6 +3028,12 @@ type SecretListResult struct {
|
|||
NextLink *string `json:"nextLink,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for SecretListResult.
|
||||
func (slr SecretListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// SecretListResultIterator provides access to a complete listing of SecretItem values.
|
||||
type SecretListResultIterator struct {
|
||||
i int
|
||||
|
@ -3292,6 +3406,12 @@ type StorageListResult struct {
|
|||
NextLink *string `json:"nextLink,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for StorageListResult.
|
||||
func (slr StorageListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// StorageListResultIterator provides access to a complete listing of StorageAccountItem values.
|
||||
type StorageListResultIterator struct {
|
||||
i int
|
||||
|
|
9
vendor/github.com/Azure/azure-sdk-for-go/services/msi/mgmt/2018-11-30/msi/CHANGELOG.md
сгенерированный
поставляемый
9
vendor/github.com/Azure/azure-sdk-for-go/services/msi/mgmt/2018-11-30/msi/CHANGELOG.md
сгенерированный
поставляемый
|
@ -1,2 +1,11 @@
|
|||
# Change History
|
||||
|
||||
## Additive Changes
|
||||
|
||||
### New Funcs
|
||||
|
||||
1. AzureEntityResource.MarshalJSON() ([]byte, error)
|
||||
1. ProxyResource.MarshalJSON() ([]byte, error)
|
||||
1. Resource.MarshalJSON() ([]byte, error)
|
||||
1. SystemAssignedIdentityProperties.MarshalJSON() ([]byte, error)
|
||||
1. UserAssignedIdentityProperties.MarshalJSON() ([]byte, error)
|
||||
|
|
4
vendor/github.com/Azure/azure-sdk-for-go/services/msi/mgmt/2018-11-30/msi/_meta.json
сгенерированный
поставляемый
4
vendor/github.com/Azure/azure-sdk-for-go/services/msi/mgmt/2018-11-30/msi/_meta.json
сгенерированный
поставляемый
|
@ -2,9 +2,9 @@
|
|||
"commit": "3c764635e7d442b3e74caf593029fcd440b3ef82",
|
||||
"readme": "/_/azure-rest-api-specs/specification/msi/resource-manager/readme.md",
|
||||
"tag": "package-2018-11-30",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.180",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.183",
|
||||
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-11-30 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/msi/resource-manager/readme.md",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-11-30 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/msi/resource-manager/readme.md",
|
||||
"additional_properties": {
|
||||
"additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION"
|
||||
}
|
||||
|
|
30
vendor/github.com/Azure/azure-sdk-for-go/services/msi/mgmt/2018-11-30/msi/models.go
сгенерированный
поставляемый
30
vendor/github.com/Azure/azure-sdk-for-go/services/msi/mgmt/2018-11-30/msi/models.go
сгенерированный
поставляемый
|
@ -31,6 +31,12 @@ type AzureEntityResource struct {
|
|||
Type *string `json:"type,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for AzureEntityResource.
|
||||
func (aer AzureEntityResource) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// CloudError an error response from the ManagedServiceIdentity service.
|
||||
type CloudError struct {
|
||||
// Error - A list of additional details about the error.
|
||||
|
@ -434,6 +440,12 @@ type ProxyResource struct {
|
|||
Type *string `json:"type,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ProxyResource.
|
||||
func (pr ProxyResource) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// Resource common fields that are returned in the response for all Azure Resource Manager resources
|
||||
type Resource struct {
|
||||
// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
|
||||
|
@ -444,6 +456,12 @@ type Resource struct {
|
|||
Type *string `json:"type,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for Resource.
|
||||
func (r Resource) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// SystemAssignedIdentity describes a system assigned identity resource.
|
||||
type SystemAssignedIdentity struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -554,6 +572,12 @@ type SystemAssignedIdentityProperties struct {
|
|||
ClientSecretURL *string `json:"clientSecretUrl,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for SystemAssignedIdentityProperties.
|
||||
func (saip SystemAssignedIdentityProperties) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource
|
||||
// which has 'tags' and a 'location'
|
||||
type TrackedResource struct {
|
||||
|
@ -749,3 +773,9 @@ type UserAssignedIdentityProperties struct {
|
|||
// ClientID - READ-ONLY; The id of the app associated with the identity. This is a random generated UUID by MSI.
|
||||
ClientID *uuid.UUID `json:"clientId,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for UserAssignedIdentityProperties.
|
||||
func (uaip UserAssignedIdentityProperties) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
|
23
vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/CHANGELOG.md
сгенерированный
поставляемый
23
vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/CHANGELOG.md
сгенерированный
поставляемый
|
@ -1,2 +1,25 @@
|
|||
# Change History
|
||||
|
||||
## Additive Changes
|
||||
|
||||
### New Funcs
|
||||
|
||||
1. ApplicationSecurityGroupPropertiesFormat.MarshalJSON() ([]byte, error)
|
||||
1. AzureFirewallFqdnTagPropertiesFormat.MarshalJSON() ([]byte, error)
|
||||
1. BgpPeerStatus.MarshalJSON() ([]byte, error)
|
||||
1. ConfigurationDiagnosticResponse.MarshalJSON() ([]byte, error)
|
||||
1. ConnectivityHop.MarshalJSON() ([]byte, error)
|
||||
1. ConnectivityInformation.MarshalJSON() ([]byte, error)
|
||||
1. ConnectivityIssue.MarshalJSON() ([]byte, error)
|
||||
1. ContainerNetworkInterfaceIPConfigurationPropertiesFormat.MarshalJSON() ([]byte, error)
|
||||
1. DdosProtectionPlanPropertiesFormat.MarshalJSON() ([]byte, error)
|
||||
1. ExpressRouteConnectionID.MarshalJSON() ([]byte, error)
|
||||
1. ExpressRoutePortsLocationBandwidths.MarshalJSON() ([]byte, error)
|
||||
1. GatewayRoute.MarshalJSON() ([]byte, error)
|
||||
1. ManagedServiceIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error)
|
||||
1. TunnelConnectionHealth.MarshalJSON() ([]byte, error)
|
||||
1. VirtualNetworkUsage.MarshalJSON() ([]byte, error)
|
||||
1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error)
|
||||
1. VpnSiteID.MarshalJSON() ([]byte, error)
|
||||
1. WatcherPropertiesFormat.MarshalJSON() ([]byte, error)
|
||||
1. WebApplicationFirewallPolicyListResult.MarshalJSON() ([]byte, error)
|
||||
|
|
4
vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/_meta.json
сгенерированный
поставляемый
4
vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/_meta.json
сгенерированный
поставляемый
|
@ -2,9 +2,9 @@
|
|||
"commit": "3c764635e7d442b3e74caf593029fcd440b3ef82",
|
||||
"readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md",
|
||||
"tag": "package-2018-12",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.180",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.183",
|
||||
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md",
|
||||
"additional_properties": {
|
||||
"additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION"
|
||||
}
|
||||
|
|
114
vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/models.go
сгенерированный
поставляемый
114
vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/models.go
сгенерированный
поставляемый
|
@ -3316,6 +3316,12 @@ type ApplicationSecurityGroupPropertiesFormat struct {
|
|||
ProvisioningState *string `json:"provisioningState,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ApplicationSecurityGroupPropertiesFormat.
|
||||
func (asgpf ApplicationSecurityGroupPropertiesFormat) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ApplicationSecurityGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results
|
||||
// of a long-running operation.
|
||||
type ApplicationSecurityGroupsCreateOrUpdateFuture struct {
|
||||
|
@ -4371,6 +4377,12 @@ type AzureFirewallFqdnTagPropertiesFormat struct {
|
|||
FqdnTagName *string `json:"fqdnTagName,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for AzureFirewallFqdnTagPropertiesFormat.
|
||||
func (afftpf AzureFirewallFqdnTagPropertiesFormat) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// AzureFirewallIPConfiguration IP configuration of an Azure Firewall.
|
||||
type AzureFirewallIPConfiguration struct {
|
||||
*AzureFirewallIPConfigurationPropertiesFormat `json:"properties,omitempty"`
|
||||
|
@ -5148,6 +5160,12 @@ type BgpPeerStatus struct {
|
|||
MessagesReceived *int64 `json:"messagesReceived,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for BgpPeerStatus.
|
||||
func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// BgpPeerStatusListResult response for list BGP peer status API service call
|
||||
type BgpPeerStatusListResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -5484,6 +5502,12 @@ type ConfigurationDiagnosticResponse struct {
|
|||
Results *[]ConfigurationDiagnosticResult `json:"results,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ConfigurationDiagnosticResponse.
|
||||
func (cdr ConfigurationDiagnosticResponse) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ConfigurationDiagnosticResult network configuration diagnostic result corresponded to provided traffic
|
||||
// query.
|
||||
type ConfigurationDiagnosticResult struct {
|
||||
|
@ -6026,6 +6050,12 @@ type ConnectivityHop struct {
|
|||
Issues *[]ConnectivityIssue `json:"issues,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ConnectivityHop.
|
||||
func (ch ConnectivityHop) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ConnectivityInformation information on the connectivity status.
|
||||
type ConnectivityInformation struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -6045,6 +6075,12 @@ type ConnectivityInformation struct {
|
|||
ProbesFailed *int32 `json:"probesFailed,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ConnectivityInformation.
|
||||
func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ConnectivityIssue information about an issue encountered in the process of checking for connectivity.
|
||||
type ConnectivityIssue struct {
|
||||
// Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound'
|
||||
|
@ -6057,6 +6093,12 @@ type ConnectivityIssue struct {
|
|||
Context *[]map[string]*string `json:"context,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ConnectivityIssue.
|
||||
func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ConnectivityParameters parameters that determine how the connectivity check will be performed.
|
||||
type ConnectivityParameters struct {
|
||||
Source *ConnectivitySource `json:"source,omitempty"`
|
||||
|
@ -6372,6 +6414,12 @@ type ContainerNetworkInterfaceIPConfigurationPropertiesFormat struct {
|
|||
ProvisioningState *string `json:"provisioningState,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ContainerNetworkInterfaceIPConfigurationPropertiesFormat.
|
||||
func (cniicpf ContainerNetworkInterfaceIPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ContainerNetworkInterfacePropertiesFormat ...
|
||||
type ContainerNetworkInterfacePropertiesFormat struct {
|
||||
// ContainerNetworkInterfaceConfiguration - Container network interface configuration from which this container network interface is created.
|
||||
|
@ -6948,6 +6996,12 @@ type DdosProtectionPlanPropertiesFormat struct {
|
|||
VirtualNetworks *[]SubResource `json:"virtualNetworks,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for DdosProtectionPlanPropertiesFormat.
|
||||
func (dpppf DdosProtectionPlanPropertiesFormat) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// DdosProtectionPlansCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a
|
||||
// long-running operation.
|
||||
type DdosProtectionPlansCreateOrUpdateFuture struct {
|
||||
|
@ -9316,6 +9370,12 @@ type ExpressRouteConnectionID struct {
|
|||
ID *string `json:"id,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ExpressRouteConnectionID.
|
||||
func (erci ExpressRouteConnectionID) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ExpressRouteConnectionList expressRouteConnection list
|
||||
type ExpressRouteConnectionList struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -11426,6 +11486,12 @@ type ExpressRoutePortsLocationBandwidths struct {
|
|||
ValueInGbps *int32 `json:"valueInGbps,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ExpressRoutePortsLocationBandwidths.
|
||||
func (erplb ExpressRoutePortsLocationBandwidths) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ExpressRoutePortsLocationListResult response for ListExpressRoutePortsLocations API service call.
|
||||
type ExpressRoutePortsLocationListResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -12185,6 +12251,12 @@ type GatewayRoute struct {
|
|||
Weight *int32 `json:"weight,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for GatewayRoute.
|
||||
func (gr GatewayRoute) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// GatewayRouteListResult list of virtual network gateway routes
|
||||
type GatewayRouteListResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -18063,6 +18135,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct {
|
|||
ClientID *string `json:"clientId,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ManagedServiceIdentityUserAssignedIdentitiesValue.
|
||||
func (msiAiv ManagedServiceIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// MatchCondition define match conditions
|
||||
type MatchCondition struct {
|
||||
// MatchVariables - List of match variables
|
||||
|
@ -25898,6 +25976,12 @@ type TunnelConnectionHealth struct {
|
|||
LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for TunnelConnectionHealth.
|
||||
func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// Usage describes network resource usage.
|
||||
type Usage struct {
|
||||
// ID - READ-ONLY; Resource identifier.
|
||||
|
@ -29768,6 +29852,12 @@ type VirtualNetworkUsage struct {
|
|||
Unit *string `json:"unit,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for VirtualNetworkUsage.
|
||||
func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// VirtualNetworkUsageName usage strings container.
|
||||
type VirtualNetworkUsageName struct {
|
||||
// LocalizedValue - READ-ONLY; Localized subnet size and usage string.
|
||||
|
@ -29776,6 +29866,12 @@ type VirtualNetworkUsageName struct {
|
|||
Value *string `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for VirtualNetworkUsageName.
|
||||
func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// VirtualWAN virtualWAN Resource.
|
||||
type VirtualWAN struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -30965,6 +31061,12 @@ type VpnSiteID struct {
|
|||
VpnSite *string `json:"vpnSite,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for VpnSiteID.
|
||||
func (vsi VpnSiteID) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// VpnSiteProperties parameters for VpnSite
|
||||
type VpnSiteProperties struct {
|
||||
// VirtualWan - The VirtualWAN to which the vpnSite belongs
|
||||
|
@ -31274,6 +31376,12 @@ type WatcherPropertiesFormat struct {
|
|||
ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for WatcherPropertiesFormat.
|
||||
func (wpf WatcherPropertiesFormat) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// WatchersCheckConnectivityFuture an abstraction for monitoring and retrieving the results of a
|
||||
// long-running operation.
|
||||
type WatchersCheckConnectivityFuture struct {
|
||||
|
@ -31986,6 +32094,12 @@ type WebApplicationFirewallPolicyListResult struct {
|
|||
NextLink *string `json:"nextLink,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for WebApplicationFirewallPolicyListResult.
|
||||
func (wafplr WebApplicationFirewallPolicyListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// WebApplicationFirewallPolicyListResultIterator provides access to a complete listing of
|
||||
// WebApplicationFirewallPolicy values.
|
||||
type WebApplicationFirewallPolicyListResultIterator struct {
|
||||
|
|
27
vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2019-07-01/network/CHANGELOG.md
сгенерированный
поставляемый
27
vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2019-07-01/network/CHANGELOG.md
сгенерированный
поставляемый
|
@ -1,2 +1,29 @@
|
|||
# Change History
|
||||
|
||||
## Additive Changes
|
||||
|
||||
### New Funcs
|
||||
|
||||
1. ApplicationSecurityGroupPropertiesFormat.MarshalJSON() ([]byte, error)
|
||||
1. AzureFirewallFqdnTagPropertiesFormat.MarshalJSON() ([]byte, error)
|
||||
1. BgpPeerStatus.MarshalJSON() ([]byte, error)
|
||||
1. ConfigurationDiagnosticResponse.MarshalJSON() ([]byte, error)
|
||||
1. ConnectivityHop.MarshalJSON() ([]byte, error)
|
||||
1. ConnectivityInformation.MarshalJSON() ([]byte, error)
|
||||
1. ConnectivityIssue.MarshalJSON() ([]byte, error)
|
||||
1. ContainerNetworkInterfaceIPConfigurationPropertiesFormat.MarshalJSON() ([]byte, error)
|
||||
1. DdosProtectionPlanPropertiesFormat.MarshalJSON() ([]byte, error)
|
||||
1. ExpressRouteConnectionID.MarshalJSON() ([]byte, error)
|
||||
1. ExpressRoutePortsLocationBandwidths.MarshalJSON() ([]byte, error)
|
||||
1. GatewayRoute.MarshalJSON() ([]byte, error)
|
||||
1. InterfaceIPConfigurationPrivateLinkConnectionProperties.MarshalJSON() ([]byte, error)
|
||||
1. ManagedServiceIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error)
|
||||
1. ServiceTagInformation.MarshalJSON() ([]byte, error)
|
||||
1. ServiceTagInformationPropertiesFormat.MarshalJSON() ([]byte, error)
|
||||
1. ServiceTagsListResult.MarshalJSON() ([]byte, error)
|
||||
1. TunnelConnectionHealth.MarshalJSON() ([]byte, error)
|
||||
1. VirtualNetworkUsage.MarshalJSON() ([]byte, error)
|
||||
1. VirtualNetworkUsageName.MarshalJSON() ([]byte, error)
|
||||
1. VpnClientConnectionHealthDetail.MarshalJSON() ([]byte, error)
|
||||
1. VpnSiteID.MarshalJSON() ([]byte, error)
|
||||
1. WebApplicationFirewallPolicyListResult.MarshalJSON() ([]byte, error)
|
||||
|
|
4
vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2019-07-01/network/_meta.json
сгенерированный
поставляемый
4
vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2019-07-01/network/_meta.json
сгенерированный
поставляемый
|
@ -2,9 +2,9 @@
|
|||
"commit": "3c764635e7d442b3e74caf593029fcd440b3ef82",
|
||||
"readme": "/_/azure-rest-api-specs/specification/network/resource-manager/readme.md",
|
||||
"tag": "package-2019-07",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.180",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.183",
|
||||
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/network/resource-manager/readme.md",
|
||||
"additional_properties": {
|
||||
"additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION"
|
||||
}
|
||||
|
|
138
vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2019-07-01/network/models.go
сгенерированный
поставляемый
138
vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2019-07-01/network/models.go
сгенерированный
поставляемый
|
@ -3483,6 +3483,12 @@ type ApplicationSecurityGroupPropertiesFormat struct {
|
|||
ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ApplicationSecurityGroupPropertiesFormat.
|
||||
func (asgpf ApplicationSecurityGroupPropertiesFormat) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ApplicationSecurityGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results
|
||||
// of a long-running operation.
|
||||
type ApplicationSecurityGroupsCreateOrUpdateFuture struct {
|
||||
|
@ -4913,6 +4919,12 @@ type AzureFirewallFqdnTagPropertiesFormat struct {
|
|||
FqdnTagName *string `json:"fqdnTagName,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for AzureFirewallFqdnTagPropertiesFormat.
|
||||
func (afftpf AzureFirewallFqdnTagPropertiesFormat) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// AzureFirewallIPConfiguration IP configuration of an Azure Firewall.
|
||||
type AzureFirewallIPConfiguration struct {
|
||||
// AzureFirewallIPConfigurationPropertiesFormat - Properties of the azure firewall IP configuration.
|
||||
|
@ -6213,6 +6225,12 @@ type BgpPeerStatus struct {
|
|||
MessagesReceived *int64 `json:"messagesReceived,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for BgpPeerStatus.
|
||||
func (bps BgpPeerStatus) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// BgpPeerStatusListResult response for list BGP peer status API service call.
|
||||
type BgpPeerStatusListResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -6557,6 +6575,12 @@ type ConfigurationDiagnosticResponse struct {
|
|||
Results *[]ConfigurationDiagnosticResult `json:"results,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ConfigurationDiagnosticResponse.
|
||||
func (cdr ConfigurationDiagnosticResponse) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ConfigurationDiagnosticResult network configuration diagnostic result corresponded to provided traffic
|
||||
// query.
|
||||
type ConfigurationDiagnosticResult struct {
|
||||
|
@ -7108,6 +7132,12 @@ type ConnectivityHop struct {
|
|||
Issues *[]ConnectivityIssue `json:"issues,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ConnectivityHop.
|
||||
func (ch ConnectivityHop) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ConnectivityInformation information on the connectivity status.
|
||||
type ConnectivityInformation struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -7127,6 +7157,12 @@ type ConnectivityInformation struct {
|
|||
ProbesFailed *int32 `json:"probesFailed,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ConnectivityInformation.
|
||||
func (ci ConnectivityInformation) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ConnectivityIssue information about an issue encountered in the process of checking for connectivity.
|
||||
type ConnectivityIssue struct {
|
||||
// Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound'
|
||||
|
@ -7139,6 +7175,12 @@ type ConnectivityIssue struct {
|
|||
Context *[]map[string]*string `json:"context,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ConnectivityIssue.
|
||||
func (ci ConnectivityIssue) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ConnectivityParameters parameters that determine how the connectivity check will be performed.
|
||||
type ConnectivityParameters struct {
|
||||
// Source - Describes the source of the connection.
|
||||
|
@ -7457,6 +7499,12 @@ type ContainerNetworkInterfaceIPConfigurationPropertiesFormat struct {
|
|||
ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ContainerNetworkInterfaceIPConfigurationPropertiesFormat.
|
||||
func (cniicpf ContainerNetworkInterfaceIPConfigurationPropertiesFormat) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ContainerNetworkInterfacePropertiesFormat properties of container network interface.
|
||||
type ContainerNetworkInterfacePropertiesFormat struct {
|
||||
// ContainerNetworkInterfaceConfiguration - Container network interface configuration from which this container network interface is created.
|
||||
|
@ -8033,6 +8081,12 @@ type DdosProtectionPlanPropertiesFormat struct {
|
|||
VirtualNetworks *[]SubResource `json:"virtualNetworks,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for DdosProtectionPlanPropertiesFormat.
|
||||
func (dpppf DdosProtectionPlanPropertiesFormat) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// DdosProtectionPlansCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a
|
||||
// long-running operation.
|
||||
type DdosProtectionPlansCreateOrUpdateFuture struct {
|
||||
|
@ -10443,6 +10497,12 @@ type ExpressRouteConnectionID struct {
|
|||
ID *string `json:"id,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ExpressRouteConnectionID.
|
||||
func (erci ExpressRouteConnectionID) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ExpressRouteConnectionList expressRouteConnection list.
|
||||
type ExpressRouteConnectionList struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -12573,6 +12633,12 @@ type ExpressRoutePortsLocationBandwidths struct {
|
|||
ValueInGbps *int32 `json:"valueInGbps,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ExpressRoutePortsLocationBandwidths.
|
||||
func (erplb ExpressRoutePortsLocationBandwidths) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ExpressRoutePortsLocationListResult response for ListExpressRoutePortsLocations API service call.
|
||||
type ExpressRoutePortsLocationListResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -14583,6 +14649,12 @@ type GatewayRoute struct {
|
|||
Weight *int32 `json:"weight,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for GatewayRoute.
|
||||
func (gr GatewayRoute) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// GatewayRouteListResult list of virtual network gateway routes.
|
||||
type GatewayRouteListResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -15677,6 +15749,12 @@ type InterfaceIPConfigurationPrivateLinkConnectionProperties struct {
|
|||
Fqdns *[]string `json:"fqdns,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for InterfaceIPConfigurationPrivateLinkConnectionProperties.
|
||||
func (iicplcp InterfaceIPConfigurationPrivateLinkConnectionProperties) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// InterfaceIPConfigurationPropertiesFormat properties of IP configuration.
|
||||
type InterfaceIPConfigurationPropertiesFormat struct {
|
||||
// VirtualNetworkTaps - The reference to Virtual Network Taps.
|
||||
|
@ -20483,6 +20561,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct {
|
|||
ClientID *string `json:"clientId,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ManagedServiceIdentityUserAssignedIdentitiesValue.
|
||||
func (msiAiv ManagedServiceIdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// MatchCondition define match conditions.
|
||||
type MatchCondition struct {
|
||||
// MatchVariables - List of match variables.
|
||||
|
@ -29623,6 +29707,12 @@ type ServiceTagInformation struct {
|
|||
ID *string `json:"id,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ServiceTagInformation.
|
||||
func (sti ServiceTagInformation) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ServiceTagInformationPropertiesFormat properties of the service tag information.
|
||||
type ServiceTagInformationPropertiesFormat struct {
|
||||
// ChangeNumber - READ-ONLY; The iteration number of service tag.
|
||||
|
@ -29635,6 +29725,12 @@ type ServiceTagInformationPropertiesFormat struct {
|
|||
AddressPrefixes *[]string `json:"addressPrefixes,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ServiceTagInformationPropertiesFormat.
|
||||
func (stipf ServiceTagInformationPropertiesFormat) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ServiceTagsListResult response for the ListServiceTags API service call.
|
||||
type ServiceTagsListResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -29652,6 +29748,12 @@ type ServiceTagsListResult struct {
|
|||
Values *[]ServiceTagInformation `json:"values,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ServiceTagsListResult.
|
||||
func (stlr ServiceTagsListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// String ...
|
||||
type String struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -30371,6 +30473,12 @@ type TunnelConnectionHealth struct {
|
|||
LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for TunnelConnectionHealth.
|
||||
func (tch TunnelConnectionHealth) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// UnprepareNetworkPoliciesRequest details of UnprepareNetworkPolicies for Subnet.
|
||||
type UnprepareNetworkPoliciesRequest struct {
|
||||
// ServiceName - The name of the service for which subnet is being unprepared for.
|
||||
|
@ -34483,6 +34591,12 @@ type VirtualNetworkUsage struct {
|
|||
Unit *string `json:"unit,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for VirtualNetworkUsage.
|
||||
func (vnu VirtualNetworkUsage) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// VirtualNetworkUsageName usage strings container.
|
||||
type VirtualNetworkUsageName struct {
|
||||
// LocalizedValue - READ-ONLY; Localized subnet size and usage string.
|
||||
|
@ -34491,6 +34605,12 @@ type VirtualNetworkUsageName struct {
|
|||
Value *string `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for VirtualNetworkUsageName.
|
||||
func (vnun VirtualNetworkUsageName) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// VirtualRouter virtualRouter Resource.
|
||||
type VirtualRouter struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -35611,6 +35731,12 @@ type VpnClientConnectionHealthDetail struct {
|
|||
MaxPacketsPerSecond *int64 `json:"maxPacketsPerSecond,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for VpnClientConnectionHealthDetail.
|
||||
func (vcchd VpnClientConnectionHealthDetail) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// VpnClientConnectionHealthDetailListResult list of virtual network gateway vpn client connection health.
|
||||
type VpnClientConnectionHealthDetailListResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -36552,6 +36678,12 @@ type VpnSiteID struct {
|
|||
VpnSite *string `json:"vpnSite,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for VpnSiteID.
|
||||
func (vsi VpnSiteID) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// VpnSiteLink vpnSiteLink Resource.
|
||||
type VpnSiteLink struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -37843,6 +37975,12 @@ type WebApplicationFirewallPolicyListResult struct {
|
|||
NextLink *string `json:"nextLink,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for WebApplicationFirewallPolicyListResult.
|
||||
func (wafplr WebApplicationFirewallPolicyListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// WebApplicationFirewallPolicyListResultIterator provides access to a complete listing of
|
||||
// WebApplicationFirewallPolicy values.
|
||||
type WebApplicationFirewallPolicyListResultIterator struct {
|
||||
|
|
5
vendor/github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2018-09-01-preview/authorization/CHANGELOG.md
сгенерированный
поставляемый
5
vendor/github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2018-09-01-preview/authorization/CHANGELOG.md
сгенерированный
поставляемый
|
@ -1,2 +1,7 @@
|
|||
# Change History
|
||||
|
||||
## Additive Changes
|
||||
|
||||
### New Funcs
|
||||
|
||||
1. Principal.MarshalJSON() ([]byte, error)
|
||||
|
|
4
vendor/github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2018-09-01-preview/authorization/_meta.json
сгенерированный
поставляемый
4
vendor/github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2018-09-01-preview/authorization/_meta.json
сгенерированный
поставляемый
|
@ -2,9 +2,9 @@
|
|||
"commit": "3c764635e7d442b3e74caf593029fcd440b3ef82",
|
||||
"readme": "/_/azure-rest-api-specs/specification/authorization/resource-manager/readme.md",
|
||||
"tag": "package-2018-09-01-preview",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.180",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.183",
|
||||
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-09-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/authorization/resource-manager/readme.md",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-09-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/authorization/resource-manager/readme.md",
|
||||
"additional_properties": {
|
||||
"additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION"
|
||||
}
|
||||
|
|
6
vendor/github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2018-09-01-preview/authorization/models.go
сгенерированный
поставляемый
6
vendor/github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2018-09-01-preview/authorization/models.go
сгенерированный
поставляемый
|
@ -720,6 +720,12 @@ type Principal struct {
|
|||
Type *string `json:"type,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for Principal.
|
||||
func (p Principal) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ProviderOperation operation
|
||||
type ProviderOperation struct {
|
||||
// Name - The operation name.
|
||||
|
|
|
@ -1,2 +1,13 @@
|
|||
# Change History
|
||||
|
||||
## Additive Changes
|
||||
|
||||
### New Funcs
|
||||
|
||||
1. ActivationProperties.MarshalJSON() ([]byte, error)
|
||||
1. LoginServerProperties.MarshalJSON() ([]byte, error)
|
||||
1. ProxyResource.MarshalJSON() ([]byte, error)
|
||||
1. Status.MarshalJSON() ([]byte, error)
|
||||
1. StatusDetailProperties.MarshalJSON() ([]byte, error)
|
||||
1. TLSCertificateProperties.MarshalJSON() ([]byte, error)
|
||||
1. TLSProperties.MarshalJSON() ([]byte, error)
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
"commit": "3c764635e7d442b3e74caf593029fcd440b3ef82",
|
||||
"readme": "/_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md",
|
||||
"tag": "package-2020-11-preview",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.180",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.183",
|
||||
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-11-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-11-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md",
|
||||
"additional_properties": {
|
||||
"additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION"
|
||||
}
|
||||
|
|
42
vendor/github.com/Azure/azure-sdk-for-go/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/models.go
сгенерированный
поставляемый
42
vendor/github.com/Azure/azure-sdk-for-go/services/preview/containerregistry/mgmt/2020-11-01-preview/containerregistry/models.go
сгенерированный
поставляемый
|
@ -26,6 +26,12 @@ type ActivationProperties struct {
|
|||
Status ActivationStatus `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ActivationProperties.
|
||||
func (ap ActivationProperties) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ActiveDirectoryObject the Active Directory Object that will be used for authenticating the token of a
|
||||
// container registry.
|
||||
type ActiveDirectoryObject struct {
|
||||
|
@ -3168,6 +3174,12 @@ type LoginServerProperties struct {
|
|||
TLS *TLSProperties `json:"tls,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for LoginServerProperties.
|
||||
func (lsp LoginServerProperties) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// NetworkRuleSet the network rule set for a container registry.
|
||||
type NetworkRuleSet struct {
|
||||
// DefaultAction - The default action of allow or deny when no other rules match. Possible values include: 'DefaultActionAllow', 'DefaultActionDeny'
|
||||
|
@ -4573,6 +4585,12 @@ type ProxyResource struct {
|
|||
SystemData *SystemData `json:"systemData,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ProxyResource.
|
||||
func (pr ProxyResource) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// QuarantinePolicy the quarantine policy for a container registry.
|
||||
type QuarantinePolicy struct {
|
||||
// Status - The value that indicates whether the policy is enabled or not. Possible values include: 'PolicyStatusEnabled', 'PolicyStatusDisabled'
|
||||
|
@ -7069,6 +7087,12 @@ type Status struct {
|
|||
Timestamp *date.Time `json:"timestamp,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for Status.
|
||||
func (s Status) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// StatusDetailProperties the status detail properties of the connected registry.
|
||||
type StatusDetailProperties struct {
|
||||
// Type - READ-ONLY; The component of the connected registry corresponding to the status.
|
||||
|
@ -7083,6 +7107,12 @@ type StatusDetailProperties struct {
|
|||
CorrelationID *string `json:"correlationId,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for StatusDetailProperties.
|
||||
func (sdp StatusDetailProperties) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// StorageAccountProperties the properties of a storage account for a container registry. Only applicable
|
||||
// to Classic SKU.
|
||||
type StorageAccountProperties struct {
|
||||
|
@ -8852,6 +8882,12 @@ type TLSCertificateProperties struct {
|
|||
Location *string `json:"location,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for TLSCertificateProperties.
|
||||
func (TCP TLSCertificateProperties) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// TLSProperties the TLS properties of the connected registry login server.
|
||||
type TLSProperties struct {
|
||||
// Status - READ-ONLY; Indicates whether HTTPS is enabled for the login server. Possible values include: 'TLSStatusEnabled', 'TLSStatusDisabled'
|
||||
|
@ -8860,6 +8896,12 @@ type TLSProperties struct {
|
|||
Certificate *TLSCertificateProperties `json:"certificate,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for TLSProperties.
|
||||
func (tp TLSProperties) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// Token an object that represents a token for a container registry.
|
||||
type Token struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
|
6
vendor/github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights/CHANGELOG.md
сгенерированный
поставляемый
6
vendor/github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights/CHANGELOG.md
сгенерированный
поставляемый
|
@ -1,2 +1,8 @@
|
|||
# Change History
|
||||
|
||||
## Additive Changes
|
||||
|
||||
### New Funcs
|
||||
|
||||
1. Incident.MarshalJSON() ([]byte, error)
|
||||
1. ProxyOnlyResource.MarshalJSON() ([]byte, error)
|
||||
|
|
4
vendor/github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights/_meta.json
сгенерированный
поставляемый
4
vendor/github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights/_meta.json
сгенерированный
поставляемый
|
@ -2,9 +2,9 @@
|
|||
"commit": "3c764635e7d442b3e74caf593029fcd440b3ef82",
|
||||
"readme": "/_/azure-rest-api-specs/specification/monitor/resource-manager/readme.md",
|
||||
"tag": "package-2018-03",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.180",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.183",
|
||||
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/monitor/resource-manager/readme.md",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-03 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/monitor/resource-manager/readme.md",
|
||||
"additional_properties": {
|
||||
"additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION"
|
||||
}
|
||||
|
|
12
vendor/github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights/models.go
сгенерированный
поставляемый
12
vendor/github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights/models.go
сгенерированный
поставляемый
|
@ -2088,6 +2088,12 @@ type Incident struct {
|
|||
ResolvedTime *date.Time `json:"resolvedTime,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for Incident.
|
||||
func (i Incident) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// IncidentListResult the List incidents operation response.
|
||||
type IncidentListResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -4150,6 +4156,12 @@ type ProxyOnlyResource struct {
|
|||
Type *string `json:"type,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ProxyOnlyResource.
|
||||
func (por ProxyOnlyResource) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// Recurrence the repeating times at which this profile begins. This element is not used if the FixedDate
|
||||
// element is used.
|
||||
type Recurrence struct {
|
||||
|
|
7
vendor/github.com/Azure/azure-sdk-for-go/services/privatedns/mgmt/2018-09-01/privatedns/CHANGELOG.md
сгенерированный
поставляемый
7
vendor/github.com/Azure/azure-sdk-for-go/services/privatedns/mgmt/2018-09-01/privatedns/CHANGELOG.md
сгенерированный
поставляемый
|
@ -1,2 +1,9 @@
|
|||
# Change History
|
||||
|
||||
## Additive Changes
|
||||
|
||||
### New Funcs
|
||||
|
||||
1. PrivateZoneProperties.MarshalJSON() ([]byte, error)
|
||||
1. ProxyResource.MarshalJSON() ([]byte, error)
|
||||
1. Resource.MarshalJSON() ([]byte, error)
|
||||
|
|
4
vendor/github.com/Azure/azure-sdk-for-go/services/privatedns/mgmt/2018-09-01/privatedns/_meta.json
сгенерированный
поставляемый
4
vendor/github.com/Azure/azure-sdk-for-go/services/privatedns/mgmt/2018-09-01/privatedns/_meta.json
сгенерированный
поставляемый
|
@ -2,9 +2,9 @@
|
|||
"commit": "3c764635e7d442b3e74caf593029fcd440b3ef82",
|
||||
"readme": "/_/azure-rest-api-specs/specification/privatedns/resource-manager/readme.md",
|
||||
"tag": "package-2018-09",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.180",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.183",
|
||||
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2018-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/privatedns/resource-manager/readme.md",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2018-09 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/privatedns/resource-manager/readme.md",
|
||||
"additional_properties": {
|
||||
"additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION"
|
||||
}
|
||||
|
|
18
vendor/github.com/Azure/azure-sdk-for-go/services/privatedns/mgmt/2018-09-01/privatedns/models.go
сгенерированный
поставляемый
18
vendor/github.com/Azure/azure-sdk-for-go/services/privatedns/mgmt/2018-09-01/privatedns/models.go
сгенерированный
поставляемый
|
@ -364,6 +364,12 @@ type PrivateZoneProperties struct {
|
|||
ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for PrivateZoneProperties.
|
||||
func (pzp PrivateZoneProperties) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// PrivateZonesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a
|
||||
// long-running operation.
|
||||
type PrivateZonesCreateOrUpdateFuture struct {
|
||||
|
@ -497,6 +503,12 @@ type ProxyResource struct {
|
|||
Type *string `json:"type,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ProxyResource.
|
||||
func (pr ProxyResource) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// PtrRecord a PTR record.
|
||||
type PtrRecord struct {
|
||||
// Ptrdname - The PTR target domain name for this PTR record.
|
||||
|
@ -833,6 +845,12 @@ type Resource struct {
|
|||
Type *string `json:"type,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for Resource.
|
||||
func (r Resource) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// SoaRecord an SOA record.
|
||||
type SoaRecord struct {
|
||||
// Host - The domain name of the authoritative name server for this SOA record.
|
||||
|
|
4
vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2015-12-01/features/_meta.json
сгенерированный
поставляемый
4
vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2015-12-01/features/_meta.json
сгенерированный
поставляемый
|
@ -2,9 +2,9 @@
|
|||
"commit": "3c764635e7d442b3e74caf593029fcd440b3ef82",
|
||||
"readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md",
|
||||
"tag": "package-features-2015-12",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.180",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.183",
|
||||
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-features-2015-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-features-2015-12 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md",
|
||||
"additional_properties": {
|
||||
"additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION"
|
||||
}
|
||||
|
|
10
vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-05-01/resources/CHANGELOG.md
сгенерированный
поставляемый
10
vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-05-01/resources/CHANGELOG.md
сгенерированный
поставляемый
|
@ -1,2 +1,12 @@
|
|||
# Change History
|
||||
|
||||
## Additive Changes
|
||||
|
||||
### New Funcs
|
||||
|
||||
1. DeploymentOperationProperties.MarshalJSON() ([]byte, error)
|
||||
1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error)
|
||||
1. ErrorResponse.MarshalJSON() ([]byte, error)
|
||||
1. GroupProperties.MarshalJSON() ([]byte, error)
|
||||
1. IdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error)
|
||||
1. ManagementErrorWithDetails.MarshalJSON() ([]byte, error)
|
||||
|
|
4
vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-05-01/resources/_meta.json
сгенерированный
поставляемый
4
vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-05-01/resources/_meta.json
сгенерированный
поставляемый
|
@ -2,9 +2,9 @@
|
|||
"commit": "3c764635e7d442b3e74caf593029fcd440b3ef82",
|
||||
"readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md",
|
||||
"tag": "package-resources-2019-05",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.180",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.183",
|
||||
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-resources-2019-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-resources-2019-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md",
|
||||
"additional_properties": {
|
||||
"additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION"
|
||||
}
|
||||
|
|
36
vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-05-01/resources/models.go
сгенерированный
поставляемый
36
vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-05-01/resources/models.go
сгенерированный
поставляемый
|
@ -485,6 +485,12 @@ type DeploymentOperationProperties struct {
|
|||
Response *HTTPMessage `json:"response,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for DeploymentOperationProperties.
|
||||
func (dop DeploymentOperationProperties) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// DeploymentOperationsListResult list of deployment operations.
|
||||
type DeploymentOperationsListResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -997,6 +1003,12 @@ type ErrorAdditionalInfo struct {
|
|||
Info interface{} `json:"info,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ErrorAdditionalInfo.
|
||||
func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ErrorResponse common error response for all Azure Resource Manager APIs to return error details for
|
||||
// failed operations. (This also follows the OData error response format.)
|
||||
type ErrorResponse struct {
|
||||
|
@ -1012,6 +1024,12 @@ type ErrorResponse struct {
|
|||
AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ErrorResponse.
|
||||
func (er ErrorResponse) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ExportTemplateRequest export resource group template request parameters.
|
||||
type ExportTemplateRequest struct {
|
||||
// ResourcesProperty - The IDs of the resources to filter the export by. To export all resources, supply an array with single entry '*'.
|
||||
|
@ -1407,6 +1425,12 @@ type GroupProperties struct {
|
|||
ProvisioningState *string `json:"provisioningState,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for GroupProperties.
|
||||
func (gp GroupProperties) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// GroupsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
|
||||
type GroupsDeleteFuture struct {
|
||||
azure.FutureAPI
|
||||
|
@ -1481,6 +1505,12 @@ type IdentityUserAssignedIdentitiesValue struct {
|
|||
ClientID *string `json:"clientId,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for IdentityUserAssignedIdentitiesValue.
|
||||
func (iAiv IdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ListResult list of resource groups.
|
||||
type ListResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -1661,6 +1691,12 @@ type ManagementErrorWithDetails struct {
|
|||
Details *[]ManagementErrorWithDetails `json:"details,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ManagementErrorWithDetails.
|
||||
func (mewd ManagementErrorWithDetails) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// MoveInfo parameters of move resources.
|
||||
type MoveInfo struct {
|
||||
// ResourcesProperty - The IDs of the resources.
|
||||
|
|
8
vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-06-01/subscriptions/CHANGELOG.md
сгенерированный
поставляемый
8
vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-06-01/subscriptions/CHANGELOG.md
сгенерированный
поставляемый
|
@ -1,2 +1,10 @@
|
|||
# Change History
|
||||
|
||||
## Additive Changes
|
||||
|
||||
### New Funcs
|
||||
|
||||
1. Location.MarshalJSON() ([]byte, error)
|
||||
1. ManagedByTenant.MarshalJSON() ([]byte, error)
|
||||
1. Policies.MarshalJSON() ([]byte, error)
|
||||
1. TenantIDDescription.MarshalJSON() ([]byte, error)
|
||||
|
|
4
vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-06-01/subscriptions/_meta.json
сгенерированный
поставляемый
4
vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-06-01/subscriptions/_meta.json
сгенерированный
поставляемый
|
@ -2,9 +2,9 @@
|
|||
"commit": "3c764635e7d442b3e74caf593029fcd440b3ef82",
|
||||
"readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md",
|
||||
"tag": "package-subscriptions-2019-06",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.180",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.183",
|
||||
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-subscriptions-2019-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-subscriptions-2019-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md",
|
||||
"additional_properties": {
|
||||
"additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION"
|
||||
}
|
||||
|
|
24
vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-06-01/subscriptions/models.go
сгенерированный
поставляемый
24
vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-06-01/subscriptions/models.go
сгенерированный
поставляемый
|
@ -219,6 +219,12 @@ type Location struct {
|
|||
Longitude *string `json:"longitude,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for Location.
|
||||
func (l Location) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// LocationListResult location list operation response.
|
||||
type LocationListResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -232,6 +238,12 @@ type ManagedByTenant struct {
|
|||
TenantID *string `json:"tenantId,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ManagedByTenant.
|
||||
func (mbt ManagedByTenant) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// Operation microsoft.Resources operation
|
||||
type Operation struct {
|
||||
// Name - Operation name: {provider}/{resource}/{operation}
|
||||
|
@ -422,6 +434,12 @@ type Policies struct {
|
|||
SpendingLimit SpendingLimit `json:"spendingLimit,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for Policies.
|
||||
func (p Policies) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ResourceName name and Type of the Resource
|
||||
type ResourceName struct {
|
||||
// Name - Name of the resource
|
||||
|
@ -484,6 +502,12 @@ type TenantIDDescription struct {
|
|||
Domains *[]string `json:"domains,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for TenantIDDescription.
|
||||
func (tid TenantIDDescription) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// TenantListResult tenant Ids information.
|
||||
type TenantListResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
|
9
vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-07-01/features/CHANGELOG.md
сгенерированный
поставляемый
9
vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-07-01/features/CHANGELOG.md
сгенерированный
поставляемый
|
@ -1,2 +1,11 @@
|
|||
# Change History
|
||||
|
||||
## Additive Changes
|
||||
|
||||
### New Funcs
|
||||
|
||||
1. DeploymentOperationProperties.MarshalJSON() ([]byte, error)
|
||||
1. ErrorAdditionalInfo.MarshalJSON() ([]byte, error)
|
||||
1. ErrorResponse.MarshalJSON() ([]byte, error)
|
||||
1. IdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error)
|
||||
1. ResourceGroupProperties.MarshalJSON() ([]byte, error)
|
||||
|
|
4
vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-07-01/features/_meta.json
сгенерированный
поставляемый
4
vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-07-01/features/_meta.json
сгенерированный
поставляемый
|
@ -2,9 +2,9 @@
|
|||
"commit": "3c764635e7d442b3e74caf593029fcd440b3ef82",
|
||||
"readme": "/_/azure-rest-api-specs/specification/resources/resource-manager/readme.md",
|
||||
"tag": "package-resources-2019-07",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.180",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.183",
|
||||
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-resources-2019-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-resources-2019-07 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/resources/resource-manager/readme.md",
|
||||
"additional_properties": {
|
||||
"additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION"
|
||||
}
|
||||
|
|
30
vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-07-01/features/models.go
сгенерированный
поставляемый
30
vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-07-01/features/models.go
сгенерированный
поставляемый
|
@ -327,6 +327,12 @@ type DeploymentOperationProperties struct {
|
|||
Response *HTTPMessage `json:"response,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for DeploymentOperationProperties.
|
||||
func (dop DeploymentOperationProperties) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// DeploymentOperationsListResult list of deployment operations.
|
||||
type DeploymentOperationsListResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -1119,6 +1125,12 @@ type ErrorAdditionalInfo struct {
|
|||
Info interface{} `json:"info,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ErrorAdditionalInfo.
|
||||
func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ErrorResponse common error response for all Azure Resource Manager APIs to return error details for
|
||||
// failed operations. (This also follows the OData error response format.)
|
||||
type ErrorResponse struct {
|
||||
|
@ -1134,6 +1146,12 @@ type ErrorResponse struct {
|
|||
AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ErrorResponse.
|
||||
func (er ErrorResponse) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ExportTemplateRequest export resource group template request parameters.
|
||||
type ExportTemplateRequest struct {
|
||||
// Resources - The IDs of the resources to filter the export by. To export all resources, supply an array with single entry '*'.
|
||||
|
@ -1309,6 +1327,12 @@ type IdentityUserAssignedIdentitiesValue struct {
|
|||
ClientID *string `json:"clientId,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for IdentityUserAssignedIdentitiesValue.
|
||||
func (iAiv IdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// OnErrorDeployment deployment on error behavior.
|
||||
type OnErrorDeployment struct {
|
||||
// Type - The deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment. Possible values include: 'LastSuccessful', 'SpecificDeployment'
|
||||
|
@ -2057,6 +2081,12 @@ type ResourceGroupProperties struct {
|
|||
ProvisioningState *string `json:"provisioningState,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ResourceGroupProperties.
|
||||
func (rgp ResourceGroupProperties) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ResourceGroupsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running
|
||||
// operation.
|
||||
type ResourceGroupsDeleteFuture struct {
|
||||
|
|
25
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-04-01/storage/CHANGELOG.md
сгенерированный
поставляемый
25
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-04-01/storage/CHANGELOG.md
сгенерированный
поставляемый
|
@ -1,2 +1,27 @@
|
|||
# Change History
|
||||
|
||||
## Additive Changes
|
||||
|
||||
### New Funcs
|
||||
|
||||
1. AccountKey.MarshalJSON() ([]byte, error)
|
||||
1. AccountListKeysResult.MarshalJSON() ([]byte, error)
|
||||
1. AccountListResult.MarshalJSON() ([]byte, error)
|
||||
1. AzureEntityResource.MarshalJSON() ([]byte, error)
|
||||
1. BlobServiceItems.MarshalJSON() ([]byte, error)
|
||||
1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error)
|
||||
1. Endpoints.MarshalJSON() ([]byte, error)
|
||||
1. FileServiceItems.MarshalJSON() ([]byte, error)
|
||||
1. FileShareItems.MarshalJSON() ([]byte, error)
|
||||
1. GeoReplicationStats.MarshalJSON() ([]byte, error)
|
||||
1. ListAccountSasResponse.MarshalJSON() ([]byte, error)
|
||||
1. ListContainerItems.MarshalJSON() ([]byte, error)
|
||||
1. ListServiceSasResponse.MarshalJSON() ([]byte, error)
|
||||
1. ProxyResource.MarshalJSON() ([]byte, error)
|
||||
1. Resource.MarshalJSON() ([]byte, error)
|
||||
1. SKUCapability.MarshalJSON() ([]byte, error)
|
||||
1. SkuListResult.MarshalJSON() ([]byte, error)
|
||||
1. TagProperty.MarshalJSON() ([]byte, error)
|
||||
1. UpdateHistoryProperty.MarshalJSON() ([]byte, error)
|
||||
1. Usage.MarshalJSON() ([]byte, error)
|
||||
1. UsageName.MarshalJSON() ([]byte, error)
|
||||
|
|
4
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-04-01/storage/_meta.json
сгенерированный
поставляемый
4
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-04-01/storage/_meta.json
сгенерированный
поставляемый
|
@ -2,9 +2,9 @@
|
|||
"commit": "3c764635e7d442b3e74caf593029fcd440b3ef82",
|
||||
"readme": "/_/azure-rest-api-specs/specification/storage/resource-manager/readme.md",
|
||||
"tag": "package-2019-04",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.180",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.183",
|
||||
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2019-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-04 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md",
|
||||
"additional_properties": {
|
||||
"additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION"
|
||||
}
|
||||
|
|
126
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-04-01/storage/models.go
сгенерированный
поставляемый
126
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-04-01/storage/models.go
сгенерированный
поставляемый
|
@ -285,6 +285,12 @@ type AccountKey struct {
|
|||
Permissions KeyPermission `json:"permissions,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for AccountKey.
|
||||
func (ak AccountKey) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// AccountListKeysResult the response from the ListKeys operation.
|
||||
type AccountListKeysResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -292,6 +298,12 @@ type AccountListKeysResult struct {
|
|||
Keys *[]AccountKey `json:"keys,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for AccountListKeysResult.
|
||||
func (alkr AccountListKeysResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// AccountListResult the response from the List Storage Accounts operation.
|
||||
type AccountListResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -301,6 +313,12 @@ type AccountListResult struct {
|
|||
NextLink *string `json:"nextLink,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for AccountListResult.
|
||||
func (alr AccountListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// AccountListResultIterator provides access to a complete listing of Account values.
|
||||
type AccountListResultIterator struct {
|
||||
i int
|
||||
|
@ -797,6 +815,12 @@ type AzureEntityResource struct {
|
|||
Type *string `json:"type,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for AzureEntityResource.
|
||||
func (aer AzureEntityResource) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// AzureFilesIdentityBasedAuthentication settings for Azure Files identity based authentication.
|
||||
type AzureFilesIdentityBasedAuthentication struct {
|
||||
// DirectoryServiceOptions - Indicates the directory service used. Possible values include: 'DirectoryServiceOptionsNone', 'DirectoryServiceOptionsAADDS', 'DirectoryServiceOptionsAD'
|
||||
|
@ -896,6 +920,12 @@ type BlobServiceItems struct {
|
|||
Value *[]BlobServiceProperties `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for BlobServiceItems.
|
||||
func (bsi BlobServiceItems) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// BlobServiceProperties the properties of a storage account’s Blob service.
|
||||
type BlobServiceProperties struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -1000,6 +1030,12 @@ type CheckNameAvailabilityResult struct {
|
|||
Message *string `json:"message,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for CheckNameAvailabilityResult.
|
||||
func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// CloudError an error response from the Storage service.
|
||||
type CloudError struct {
|
||||
Error *CloudErrorBody `json:"error,omitempty"`
|
||||
|
@ -1177,6 +1213,12 @@ type Endpoints struct {
|
|||
Dfs *string `json:"dfs,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for Endpoints.
|
||||
func (e Endpoints) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// FileServiceItems ...
|
||||
type FileServiceItems struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -1184,6 +1226,12 @@ type FileServiceItems struct {
|
|||
Value *[]FileServiceProperties `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for FileServiceItems.
|
||||
func (fsi FileServiceItems) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// FileServiceProperties the properties of File services in storage account.
|
||||
type FileServiceProperties struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -1440,6 +1488,12 @@ type FileShareItems struct {
|
|||
NextLink *string `json:"nextLink,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for FileShareItems.
|
||||
func (fsi FileShareItems) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// FileShareItemsIterator provides access to a complete listing of FileShareItem values.
|
||||
type FileShareItemsIterator struct {
|
||||
i int
|
||||
|
@ -1623,6 +1677,12 @@ type GeoReplicationStats struct {
|
|||
CanFailover *bool `json:"canFailover,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for GeoReplicationStats.
|
||||
func (grs GeoReplicationStats) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// Identity identity for the resource.
|
||||
type Identity struct {
|
||||
// PrincipalID - READ-ONLY; The principal ID of resource identity.
|
||||
|
@ -1888,6 +1948,12 @@ type ListAccountSasResponse struct {
|
|||
AccountSasToken *string `json:"accountSasToken,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ListAccountSasResponse.
|
||||
func (lasr ListAccountSasResponse) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ListContainerItem the blob container properties be listed out.
|
||||
type ListContainerItem struct {
|
||||
// ContainerProperties - The blob container properties be listed out.
|
||||
|
@ -1981,6 +2047,12 @@ type ListContainerItems struct {
|
|||
NextLink *string `json:"nextLink,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ListContainerItems.
|
||||
func (lci ListContainerItems) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ListContainerItemsIterator provides access to a complete listing of ListContainerItem values.
|
||||
type ListContainerItemsIterator struct {
|
||||
i int
|
||||
|
@ -2138,6 +2210,12 @@ type ListServiceSasResponse struct {
|
|||
ServiceSasToken *string `json:"serviceSasToken,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ListServiceSasResponse.
|
||||
func (lssr ListServiceSasResponse) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// ManagementPolicy the Get Storage Account ManagementPolicies operation response.
|
||||
type ManagementPolicy struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -2441,6 +2519,12 @@ type ProxyResource struct {
|
|||
Type *string `json:"type,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for ProxyResource.
|
||||
func (pr ProxyResource) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// Resource common fields that are returned in the response for all Azure Resource Manager resources
|
||||
type Resource struct {
|
||||
// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
|
||||
|
@ -2451,6 +2535,12 @@ type Resource struct {
|
|||
Type *string `json:"type,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for Resource.
|
||||
func (r Resource) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// Restriction the restriction because of which SKU cannot be used.
|
||||
type Restriction struct {
|
||||
// Type - READ-ONLY; The type of restrictions. As of now only possible value for this is location.
|
||||
|
@ -2555,6 +2645,12 @@ type SKUCapability struct {
|
|||
Value *string `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for SKUCapability.
|
||||
func (sc SKUCapability) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// SkuListResult the response from the List Storage SKUs operation.
|
||||
type SkuListResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -2562,6 +2658,12 @@ type SkuListResult struct {
|
|||
Value *[]Sku `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for SkuListResult.
|
||||
func (slr SkuListResult) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// TagProperty a tag of the LegalHold of a blob container.
|
||||
type TagProperty struct {
|
||||
// Tag - READ-ONLY; The tag value.
|
||||
|
@ -2576,6 +2678,12 @@ type TagProperty struct {
|
|||
Upn *string `json:"upn,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for TagProperty.
|
||||
func (tp TagProperty) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource
|
||||
// which has 'tags' and a 'location'
|
||||
type TrackedResource struct {
|
||||
|
@ -2619,6 +2727,12 @@ type UpdateHistoryProperty struct {
|
|||
Upn *string `json:"upn,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for UpdateHistoryProperty.
|
||||
func (uhp UpdateHistoryProperty) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// Usage describes Storage Resource Usage.
|
||||
type Usage struct {
|
||||
// Unit - READ-ONLY; Gets the unit of measurement. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond', 'BytesPerSecond'
|
||||
|
@ -2631,6 +2745,12 @@ type Usage struct {
|
|||
Name *UsageName `json:"name,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for Usage.
|
||||
func (u Usage) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// UsageListResult the response from the List Usages operation.
|
||||
type UsageListResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
|
@ -2646,6 +2766,12 @@ type UsageName struct {
|
|||
LocalizedValue *string `json:"localizedValue,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalJSON is the custom marshaler for UsageName.
|
||||
func (un UsageName) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// VirtualNetworkRule virtual Network rule.
|
||||
type VirtualNetworkRule struct {
|
||||
// VirtualNetworkResourceID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
|
||||
|
|
36
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/CHANGELOG.md
сгенерированный
поставляемый
Normal file
36
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/CHANGELOG.md
сгенерированный
поставляемый
Normal file
|
@ -0,0 +1,36 @@
|
|||
# Change History
|
||||
|
||||
## Additive Changes
|
||||
|
||||
### New Funcs
|
||||
|
||||
1. AccountInternetEndpoints.MarshalJSON() ([]byte, error)
|
||||
1. AccountKey.MarshalJSON() ([]byte, error)
|
||||
1. AccountListKeysResult.MarshalJSON() ([]byte, error)
|
||||
1. AccountListResult.MarshalJSON() ([]byte, error)
|
||||
1. AccountMicrosoftEndpoints.MarshalJSON() ([]byte, error)
|
||||
1. AzureEntityResource.MarshalJSON() ([]byte, error)
|
||||
1. BlobRestoreStatus.MarshalJSON() ([]byte, error)
|
||||
1. BlobServiceItems.MarshalJSON() ([]byte, error)
|
||||
1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error)
|
||||
1. EncryptionScopeListResult.MarshalJSON() ([]byte, error)
|
||||
1. FileServiceItems.MarshalJSON() ([]byte, error)
|
||||
1. FileShareItems.MarshalJSON() ([]byte, error)
|
||||
1. GeoReplicationStats.MarshalJSON() ([]byte, error)
|
||||
1. ListAccountSasResponse.MarshalJSON() ([]byte, error)
|
||||
1. ListContainerItems.MarshalJSON() ([]byte, error)
|
||||
1. ListQueueResource.MarshalJSON() ([]byte, error)
|
||||
1. ListQueueServices.MarshalJSON() ([]byte, error)
|
||||
1. ListServiceSasResponse.MarshalJSON() ([]byte, error)
|
||||
1. ListTableResource.MarshalJSON() ([]byte, error)
|
||||
1. ListTableServices.MarshalJSON() ([]byte, error)
|
||||
1. PrivateEndpoint.MarshalJSON() ([]byte, error)
|
||||
1. ProxyResource.MarshalJSON() ([]byte, error)
|
||||
1. Resource.MarshalJSON() ([]byte, error)
|
||||
1. SKUCapability.MarshalJSON() ([]byte, error)
|
||||
1. SkuListResult.MarshalJSON() ([]byte, error)
|
||||
1. TableProperties.MarshalJSON() ([]byte, error)
|
||||
1. TagProperty.MarshalJSON() ([]byte, error)
|
||||
1. UpdateHistoryProperty.MarshalJSON() ([]byte, error)
|
||||
1. Usage.MarshalJSON() ([]byte, error)
|
||||
1. UsageName.MarshalJSON() ([]byte, error)
|
11
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/_meta.json
сгенерированный
поставляемый
Normal file
11
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/_meta.json
сгенерированный
поставляемый
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"commit": "3c764635e7d442b3e74caf593029fcd440b3ef82",
|
||||
"readme": "/_/azure-rest-api-specs/specification/storage/resource-manager/readme.md",
|
||||
"tag": "package-2019-06",
|
||||
"use": "@microsoft.azure/autorest.go@2.1.183",
|
||||
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
|
||||
"autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2019-06 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/storage/resource-manager/readme.md",
|
||||
"additional_properties": {
|
||||
"additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION"
|
||||
}
|
||||
}
|
1395
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/accounts.go
сгенерированный
поставляемый
Normal file
1395
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/accounts.go
сгенерированный
поставляемый
Normal file
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
1437
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/blobcontainers.go
сгенерированный
поставляемый
Normal file
1437
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/blobcontainers.go
сгенерированный
поставляемый
Normal file
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
336
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/blobservices.go
сгенерированный
поставляемый
Normal file
336
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/blobservices.go
сгенерированный
поставляемый
Normal file
|
@ -0,0 +1,336 @@
|
|||
package storage
|
||||
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
//
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/Azure/go-autorest/autorest"
|
||||
"github.com/Azure/go-autorest/autorest/azure"
|
||||
"github.com/Azure/go-autorest/autorest/validation"
|
||||
"github.com/Azure/go-autorest/tracing"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// BlobServicesClient is the the Azure Storage Management API.
|
||||
type BlobServicesClient struct {
|
||||
BaseClient
|
||||
}
|
||||
|
||||
// NewBlobServicesClient creates an instance of the BlobServicesClient client.
|
||||
func NewBlobServicesClient(subscriptionID string) BlobServicesClient {
|
||||
return NewBlobServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewBlobServicesClientWithBaseURI creates an instance of the BlobServicesClient client using a custom endpoint. Use
|
||||
// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
|
||||
func NewBlobServicesClientWithBaseURI(baseURI string, subscriptionID string) BlobServicesClient {
|
||||
return BlobServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// GetServiceProperties gets the properties of a storage account’s Blob service, including properties for Storage
|
||||
// Analytics and CORS (Cross-Origin Resource Sharing) rules.
|
||||
// Parameters:
|
||||
// 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.
|
||||
func (client BlobServicesClient) GetServiceProperties(ctx context.Context, resourceGroupName string, accountName string) (result BlobServiceProperties, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/BlobServicesClient.GetServiceProperties")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.BlobServicesClient", "GetServiceProperties", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.GetServicePropertiesPreparer(ctx, resourceGroupName, accountName)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.BlobServicesClient", "GetServiceProperties", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.GetServicePropertiesSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.BlobServicesClient", "GetServiceProperties", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.GetServicePropertiesResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.BlobServicesClient", "GetServiceProperties", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// GetServicePropertiesPreparer prepares the GetServiceProperties request.
|
||||
func (client BlobServicesClient) GetServicePropertiesPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"BlobServicesName": autorest.Encode("path", "default"),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/{BlobServicesName}", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// GetServicePropertiesSender sends the GetServiceProperties request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client BlobServicesClient) GetServicePropertiesSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// GetServicePropertiesResponder handles the response to the GetServiceProperties request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client BlobServicesClient) GetServicePropertiesResponder(resp *http.Response) (result BlobServiceProperties, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
||||
|
||||
// List list blob services of storage account. It returns a collection of one object named default.
|
||||
// Parameters:
|
||||
// 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.
|
||||
func (client BlobServicesClient) List(ctx context.Context, resourceGroupName string, accountName string) (result BlobServiceItems, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/BlobServicesClient.List")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.BlobServicesClient", "List", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.ListPreparer(ctx, resourceGroupName, accountName)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.BlobServicesClient", "List", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.ListSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.BlobServicesClient", "List", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.ListResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.BlobServicesClient", "List", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// ListPreparer prepares the List request.
|
||||
func (client BlobServicesClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// ListSender sends the List request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client BlobServicesClient) ListSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// ListResponder handles the response to the List request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client BlobServicesClient) ListResponder(resp *http.Response) (result BlobServiceItems, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
||||
|
||||
// SetServiceProperties sets the properties of a storage account’s Blob service, including properties for Storage
|
||||
// Analytics and CORS (Cross-Origin Resource Sharing) rules.
|
||||
// Parameters:
|
||||
// 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.
|
||||
// parameters - the properties of a storage account’s Blob service, including properties for Storage Analytics
|
||||
// and CORS (Cross-Origin Resource Sharing) rules.
|
||||
func (client BlobServicesClient) SetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, parameters BlobServiceProperties) (result BlobServiceProperties, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/BlobServicesClient.SetServiceProperties")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}},
|
||||
{TargetValue: parameters,
|
||||
Constraints: []validation.Constraint{{Target: "parameters.BlobServicePropertiesProperties", Name: validation.Null, Rule: false,
|
||||
Chain: []validation.Constraint{{Target: "parameters.BlobServicePropertiesProperties.DeleteRetentionPolicy", Name: validation.Null, Rule: false,
|
||||
Chain: []validation.Constraint{{Target: "parameters.BlobServicePropertiesProperties.DeleteRetentionPolicy.Days", Name: validation.Null, Rule: false,
|
||||
Chain: []validation.Constraint{{Target: "parameters.BlobServicePropertiesProperties.DeleteRetentionPolicy.Days", Name: validation.InclusiveMaximum, Rule: int64(365), Chain: nil},
|
||||
{Target: "parameters.BlobServicePropertiesProperties.DeleteRetentionPolicy.Days", Name: validation.InclusiveMinimum, Rule: int64(1), Chain: nil},
|
||||
}},
|
||||
}},
|
||||
{Target: "parameters.BlobServicePropertiesProperties.RestorePolicy", Name: validation.Null, Rule: false,
|
||||
Chain: []validation.Constraint{{Target: "parameters.BlobServicePropertiesProperties.RestorePolicy.Enabled", Name: validation.Null, Rule: true, Chain: nil},
|
||||
{Target: "parameters.BlobServicePropertiesProperties.RestorePolicy.Days", Name: validation.Null, Rule: false,
|
||||
Chain: []validation.Constraint{{Target: "parameters.BlobServicePropertiesProperties.RestorePolicy.Days", Name: validation.InclusiveMaximum, Rule: int64(365), Chain: nil},
|
||||
{Target: "parameters.BlobServicePropertiesProperties.RestorePolicy.Days", Name: validation.InclusiveMinimum, Rule: int64(1), Chain: nil},
|
||||
}},
|
||||
}},
|
||||
{Target: "parameters.BlobServicePropertiesProperties.ContainerDeleteRetentionPolicy", Name: validation.Null, Rule: false,
|
||||
Chain: []validation.Constraint{{Target: "parameters.BlobServicePropertiesProperties.ContainerDeleteRetentionPolicy.Days", Name: validation.Null, Rule: false,
|
||||
Chain: []validation.Constraint{{Target: "parameters.BlobServicePropertiesProperties.ContainerDeleteRetentionPolicy.Days", Name: validation.InclusiveMaximum, Rule: int64(365), Chain: nil},
|
||||
{Target: "parameters.BlobServicePropertiesProperties.ContainerDeleteRetentionPolicy.Days", Name: validation.InclusiveMinimum, Rule: int64(1), Chain: nil},
|
||||
}},
|
||||
}},
|
||||
}}}}}); err != nil {
|
||||
return result, validation.NewError("storage.BlobServicesClient", "SetServiceProperties", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.SetServicePropertiesPreparer(ctx, resourceGroupName, accountName, parameters)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.BlobServicesClient", "SetServiceProperties", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.SetServicePropertiesSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.BlobServicesClient", "SetServiceProperties", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.SetServicePropertiesResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.BlobServicesClient", "SetServiceProperties", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// SetServicePropertiesPreparer prepares the SetServiceProperties request.
|
||||
func (client BlobServicesClient) SetServicePropertiesPreparer(ctx context.Context, resourceGroupName string, accountName string, parameters BlobServiceProperties) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"BlobServicesName": autorest.Encode("path", "default"),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
parameters.Sku = nil
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsContentType("application/json; charset=utf-8"),
|
||||
autorest.AsPut(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/{BlobServicesName}", pathParameters),
|
||||
autorest.WithJSON(parameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// SetServicePropertiesSender sends the SetServiceProperties request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client BlobServicesClient) SetServicePropertiesSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// SetServicePropertiesResponder handles the response to the SetServiceProperties request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client BlobServicesClient) SetServicePropertiesResponder(resp *http.Response) (result BlobServiceProperties, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
41
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/client.go
сгенерированный
поставляемый
Normal file
41
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/client.go
сгенерированный
поставляемый
Normal file
|
@ -0,0 +1,41 @@
|
|||
// Package storage implements the Azure ARM Storage service API version 2019-06-01.
|
||||
//
|
||||
// The Azure Storage Management API.
|
||||
package storage
|
||||
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
//
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
import (
|
||||
"github.com/Azure/go-autorest/autorest"
|
||||
)
|
||||
|
||||
const (
|
||||
// DefaultBaseURI is the default URI used for the service Storage
|
||||
DefaultBaseURI = "https://management.azure.com"
|
||||
)
|
||||
|
||||
// BaseClient is the base client for Storage.
|
||||
type BaseClient struct {
|
||||
autorest.Client
|
||||
BaseURI string
|
||||
SubscriptionID string
|
||||
}
|
||||
|
||||
// New creates an instance of the BaseClient client.
|
||||
func New(subscriptionID string) BaseClient {
|
||||
return NewWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with
|
||||
// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
|
||||
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
|
||||
return BaseClient{
|
||||
Client: autorest.NewClientWithUserAgent(UserAgent()),
|
||||
BaseURI: baseURI,
|
||||
SubscriptionID: subscriptionID,
|
||||
}
|
||||
}
|
469
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/encryptionscopes.go
сгенерированный
поставляемый
Normal file
469
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/encryptionscopes.go
сгенерированный
поставляемый
Normal file
|
@ -0,0 +1,469 @@
|
|||
package storage
|
||||
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
//
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/Azure/go-autorest/autorest"
|
||||
"github.com/Azure/go-autorest/autorest/azure"
|
||||
"github.com/Azure/go-autorest/autorest/validation"
|
||||
"github.com/Azure/go-autorest/tracing"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// EncryptionScopesClient is the the Azure Storage Management API.
|
||||
type EncryptionScopesClient struct {
|
||||
BaseClient
|
||||
}
|
||||
|
||||
// NewEncryptionScopesClient creates an instance of the EncryptionScopesClient client.
|
||||
func NewEncryptionScopesClient(subscriptionID string) EncryptionScopesClient {
|
||||
return NewEncryptionScopesClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewEncryptionScopesClientWithBaseURI creates an instance of the EncryptionScopesClient client using a custom
|
||||
// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
|
||||
// stack).
|
||||
func NewEncryptionScopesClientWithBaseURI(baseURI string, subscriptionID string) EncryptionScopesClient {
|
||||
return EncryptionScopesClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// Get returns the properties for the specified encryption scope.
|
||||
// Parameters:
|
||||
// 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.
|
||||
// encryptionScopeName - the name of the encryption scope within the specified storage account. Encryption
|
||||
// scope names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-)
|
||||
// only. Every dash (-) character must be immediately preceded and followed by a letter or number.
|
||||
func (client EncryptionScopesClient) Get(ctx context.Context, resourceGroupName string, accountName string, encryptionScopeName string) (result EncryptionScope, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/EncryptionScopesClient.Get")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}},
|
||||
{TargetValue: encryptionScopeName,
|
||||
Constraints: []validation.Constraint{{Target: "encryptionScopeName", Name: validation.MaxLength, Rule: 63, Chain: nil},
|
||||
{Target: "encryptionScopeName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.EncryptionScopesClient", "Get", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.GetPreparer(ctx, resourceGroupName, accountName, encryptionScopeName)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "Get", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.GetSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "Get", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.GetResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "Get", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// GetPreparer prepares the Get request.
|
||||
func (client EncryptionScopesClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, encryptionScopeName string) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"encryptionScopeName": autorest.Encode("path", encryptionScopeName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes/{encryptionScopeName}", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// GetSender sends the Get request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client EncryptionScopesClient) GetSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// GetResponder handles the response to the Get request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client EncryptionScopesClient) GetResponder(resp *http.Response) (result EncryptionScope, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
||||
|
||||
// List lists all the encryption scopes available under the specified storage account.
|
||||
// Parameters:
|
||||
// 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.
|
||||
func (client EncryptionScopesClient) List(ctx context.Context, resourceGroupName string, accountName string) (result EncryptionScopeListResultPage, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/EncryptionScopesClient.List")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.eslr.Response.Response != nil {
|
||||
sc = result.eslr.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.EncryptionScopesClient", "List", err.Error())
|
||||
}
|
||||
|
||||
result.fn = client.listNextResults
|
||||
req, err := client.ListPreparer(ctx, resourceGroupName, accountName)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "List", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.ListSender(req)
|
||||
if err != nil {
|
||||
result.eslr.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "List", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result.eslr, err = client.ListResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "List", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
if result.eslr.hasNextLink() && result.eslr.IsEmpty() {
|
||||
err = result.NextWithContext(ctx)
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// ListPreparer prepares the List request.
|
||||
func (client EncryptionScopesClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// ListSender sends the List request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client EncryptionScopesClient) ListSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// ListResponder handles the response to the List request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client EncryptionScopesClient) ListResponder(resp *http.Response) (result EncryptionScopeListResult, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
||||
|
||||
// listNextResults retrieves the next set of results, if any.
|
||||
func (client EncryptionScopesClient) listNextResults(ctx context.Context, lastResults EncryptionScopeListResult) (result EncryptionScopeListResult, err error) {
|
||||
req, err := lastResults.encryptionScopeListResultPreparer(ctx)
|
||||
if err != nil {
|
||||
return result, autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "listNextResults", nil, "Failure preparing next results request")
|
||||
}
|
||||
if req == nil {
|
||||
return
|
||||
}
|
||||
resp, err := client.ListSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return result, autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "listNextResults", resp, "Failure sending next results request")
|
||||
}
|
||||
result, err = client.ListResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "listNextResults", resp, "Failure responding to next results request")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// ListComplete enumerates all values, automatically crossing page boundaries as required.
|
||||
func (client EncryptionScopesClient) ListComplete(ctx context.Context, resourceGroupName string, accountName string) (result EncryptionScopeListResultIterator, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/EncryptionScopesClient.List")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response().Response.Response != nil {
|
||||
sc = result.page.Response().Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
result.page, err = client.List(ctx, resourceGroupName, accountName)
|
||||
return
|
||||
}
|
||||
|
||||
// Patch update encryption scope properties as specified in the request body. Update fails if the specified encryption
|
||||
// scope does not already exist.
|
||||
// Parameters:
|
||||
// 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.
|
||||
// encryptionScopeName - the name of the encryption scope within the specified storage account. Encryption
|
||||
// scope names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-)
|
||||
// only. Every dash (-) character must be immediately preceded and followed by a letter or number.
|
||||
// encryptionScope - encryption scope properties to be used for the update.
|
||||
func (client EncryptionScopesClient) Patch(ctx context.Context, resourceGroupName string, accountName string, encryptionScopeName string, encryptionScope EncryptionScope) (result EncryptionScope, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/EncryptionScopesClient.Patch")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}},
|
||||
{TargetValue: encryptionScopeName,
|
||||
Constraints: []validation.Constraint{{Target: "encryptionScopeName", Name: validation.MaxLength, Rule: 63, Chain: nil},
|
||||
{Target: "encryptionScopeName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.EncryptionScopesClient", "Patch", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.PatchPreparer(ctx, resourceGroupName, accountName, encryptionScopeName, encryptionScope)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "Patch", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.PatchSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "Patch", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.PatchResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "Patch", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// PatchPreparer prepares the Patch request.
|
||||
func (client EncryptionScopesClient) PatchPreparer(ctx context.Context, resourceGroupName string, accountName string, encryptionScopeName string, encryptionScope EncryptionScope) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"encryptionScopeName": autorest.Encode("path", encryptionScopeName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsContentType("application/json; charset=utf-8"),
|
||||
autorest.AsPatch(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes/{encryptionScopeName}", pathParameters),
|
||||
autorest.WithJSON(encryptionScope),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// PatchSender sends the Patch request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client EncryptionScopesClient) PatchSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// PatchResponder handles the response to the Patch request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client EncryptionScopesClient) PatchResponder(resp *http.Response) (result EncryptionScope, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
||||
|
||||
// Put synchronously creates or updates an encryption scope under the specified storage account. If an encryption scope
|
||||
// is already created and a subsequent request is issued with different properties, the encryption scope properties
|
||||
// will be updated per the specified request.
|
||||
// Parameters:
|
||||
// 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.
|
||||
// encryptionScopeName - the name of the encryption scope within the specified storage account. Encryption
|
||||
// scope names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-)
|
||||
// only. Every dash (-) character must be immediately preceded and followed by a letter or number.
|
||||
// encryptionScope - encryption scope properties to be used for the create or update.
|
||||
func (client EncryptionScopesClient) Put(ctx context.Context, resourceGroupName string, accountName string, encryptionScopeName string, encryptionScope EncryptionScope) (result EncryptionScope, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/EncryptionScopesClient.Put")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}},
|
||||
{TargetValue: encryptionScopeName,
|
||||
Constraints: []validation.Constraint{{Target: "encryptionScopeName", Name: validation.MaxLength, Rule: 63, Chain: nil},
|
||||
{Target: "encryptionScopeName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.EncryptionScopesClient", "Put", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.PutPreparer(ctx, resourceGroupName, accountName, encryptionScopeName, encryptionScope)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "Put", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.PutSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "Put", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.PutResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.EncryptionScopesClient", "Put", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// PutPreparer prepares the Put request.
|
||||
func (client EncryptionScopesClient) PutPreparer(ctx context.Context, resourceGroupName string, accountName string, encryptionScopeName string, encryptionScope EncryptionScope) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"encryptionScopeName": autorest.Encode("path", encryptionScopeName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsContentType("application/json; charset=utf-8"),
|
||||
autorest.AsPut(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes/{encryptionScopeName}", pathParameters),
|
||||
autorest.WithJSON(encryptionScope),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// PutSender sends the Put request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client EncryptionScopesClient) PutSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// PutResponder handles the response to the Put request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client EncryptionScopesClient) PutResponder(resp *http.Response) (result EncryptionScope, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
784
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/enums.go
сгенерированный
поставляемый
Normal file
784
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/enums.go
сгенерированный
поставляемый
Normal file
|
@ -0,0 +1,784 @@
|
|||
package storage
|
||||
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
//
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
// AccessTier enumerates the values for access tier.
|
||||
type AccessTier string
|
||||
|
||||
const (
|
||||
// Cool ...
|
||||
Cool AccessTier = "Cool"
|
||||
// Hot ...
|
||||
Hot AccessTier = "Hot"
|
||||
)
|
||||
|
||||
// PossibleAccessTierValues returns an array of possible values for the AccessTier const type.
|
||||
func PossibleAccessTierValues() []AccessTier {
|
||||
return []AccessTier{Cool, Hot}
|
||||
}
|
||||
|
||||
// AccountExpand enumerates the values for account expand.
|
||||
type AccountExpand string
|
||||
|
||||
const (
|
||||
// AccountExpandBlobRestoreStatus ...
|
||||
AccountExpandBlobRestoreStatus AccountExpand = "blobRestoreStatus"
|
||||
// AccountExpandGeoReplicationStats ...
|
||||
AccountExpandGeoReplicationStats AccountExpand = "geoReplicationStats"
|
||||
)
|
||||
|
||||
// PossibleAccountExpandValues returns an array of possible values for the AccountExpand const type.
|
||||
func PossibleAccountExpandValues() []AccountExpand {
|
||||
return []AccountExpand{AccountExpandBlobRestoreStatus, AccountExpandGeoReplicationStats}
|
||||
}
|
||||
|
||||
// AccountStatus enumerates the values for account status.
|
||||
type AccountStatus string
|
||||
|
||||
const (
|
||||
// Available ...
|
||||
Available AccountStatus = "available"
|
||||
// Unavailable ...
|
||||
Unavailable AccountStatus = "unavailable"
|
||||
)
|
||||
|
||||
// PossibleAccountStatusValues returns an array of possible values for the AccountStatus const type.
|
||||
func PossibleAccountStatusValues() []AccountStatus {
|
||||
return []AccountStatus{Available, Unavailable}
|
||||
}
|
||||
|
||||
// Action enumerates the values for action.
|
||||
type Action string
|
||||
|
||||
const (
|
||||
// Allow ...
|
||||
Allow Action = "Allow"
|
||||
)
|
||||
|
||||
// PossibleActionValues returns an array of possible values for the Action const type.
|
||||
func PossibleActionValues() []Action {
|
||||
return []Action{Allow}
|
||||
}
|
||||
|
||||
// Action1 enumerates the values for action 1.
|
||||
type Action1 string
|
||||
|
||||
const (
|
||||
// Acquire ...
|
||||
Acquire Action1 = "Acquire"
|
||||
// Break ...
|
||||
Break Action1 = "Break"
|
||||
// Change ...
|
||||
Change Action1 = "Change"
|
||||
// Release ...
|
||||
Release Action1 = "Release"
|
||||
// Renew ...
|
||||
Renew Action1 = "Renew"
|
||||
)
|
||||
|
||||
// PossibleAction1Values returns an array of possible values for the Action1 const type.
|
||||
func PossibleAction1Values() []Action1 {
|
||||
return []Action1{Acquire, Break, Change, Release, Renew}
|
||||
}
|
||||
|
||||
// BlobRestoreProgressStatus enumerates the values for blob restore progress status.
|
||||
type BlobRestoreProgressStatus string
|
||||
|
||||
const (
|
||||
// Complete ...
|
||||
Complete BlobRestoreProgressStatus = "Complete"
|
||||
// Failed ...
|
||||
Failed BlobRestoreProgressStatus = "Failed"
|
||||
// InProgress ...
|
||||
InProgress BlobRestoreProgressStatus = "InProgress"
|
||||
)
|
||||
|
||||
// PossibleBlobRestoreProgressStatusValues returns an array of possible values for the BlobRestoreProgressStatus const type.
|
||||
func PossibleBlobRestoreProgressStatusValues() []BlobRestoreProgressStatus {
|
||||
return []BlobRestoreProgressStatus{Complete, Failed, InProgress}
|
||||
}
|
||||
|
||||
// Bypass enumerates the values for bypass.
|
||||
type Bypass string
|
||||
|
||||
const (
|
||||
// AzureServices ...
|
||||
AzureServices Bypass = "AzureServices"
|
||||
// Logging ...
|
||||
Logging Bypass = "Logging"
|
||||
// Metrics ...
|
||||
Metrics Bypass = "Metrics"
|
||||
// None ...
|
||||
None Bypass = "None"
|
||||
)
|
||||
|
||||
// PossibleBypassValues returns an array of possible values for the Bypass const type.
|
||||
func PossibleBypassValues() []Bypass {
|
||||
return []Bypass{AzureServices, Logging, Metrics, None}
|
||||
}
|
||||
|
||||
// DefaultAction enumerates the values for default action.
|
||||
type DefaultAction string
|
||||
|
||||
const (
|
||||
// DefaultActionAllow ...
|
||||
DefaultActionAllow DefaultAction = "Allow"
|
||||
// DefaultActionDeny ...
|
||||
DefaultActionDeny DefaultAction = "Deny"
|
||||
)
|
||||
|
||||
// PossibleDefaultActionValues returns an array of possible values for the DefaultAction const type.
|
||||
func PossibleDefaultActionValues() []DefaultAction {
|
||||
return []DefaultAction{DefaultActionAllow, DefaultActionDeny}
|
||||
}
|
||||
|
||||
// DirectoryServiceOptions enumerates the values for directory service options.
|
||||
type DirectoryServiceOptions string
|
||||
|
||||
const (
|
||||
// DirectoryServiceOptionsAADDS ...
|
||||
DirectoryServiceOptionsAADDS DirectoryServiceOptions = "AADDS"
|
||||
// DirectoryServiceOptionsAD ...
|
||||
DirectoryServiceOptionsAD DirectoryServiceOptions = "AD"
|
||||
// DirectoryServiceOptionsNone ...
|
||||
DirectoryServiceOptionsNone DirectoryServiceOptions = "None"
|
||||
)
|
||||
|
||||
// PossibleDirectoryServiceOptionsValues returns an array of possible values for the DirectoryServiceOptions const type.
|
||||
func PossibleDirectoryServiceOptionsValues() []DirectoryServiceOptions {
|
||||
return []DirectoryServiceOptions{DirectoryServiceOptionsAADDS, DirectoryServiceOptionsAD, DirectoryServiceOptionsNone}
|
||||
}
|
||||
|
||||
// EnabledProtocols enumerates the values for enabled protocols.
|
||||
type EnabledProtocols string
|
||||
|
||||
const (
|
||||
// NFS ...
|
||||
NFS EnabledProtocols = "NFS"
|
||||
// SMB ...
|
||||
SMB EnabledProtocols = "SMB"
|
||||
)
|
||||
|
||||
// PossibleEnabledProtocolsValues returns an array of possible values for the EnabledProtocols const type.
|
||||
func PossibleEnabledProtocolsValues() []EnabledProtocols {
|
||||
return []EnabledProtocols{NFS, SMB}
|
||||
}
|
||||
|
||||
// EncryptionScopeSource enumerates the values for encryption scope source.
|
||||
type EncryptionScopeSource string
|
||||
|
||||
const (
|
||||
// MicrosoftKeyVault ...
|
||||
MicrosoftKeyVault EncryptionScopeSource = "Microsoft.KeyVault"
|
||||
// MicrosoftStorage ...
|
||||
MicrosoftStorage EncryptionScopeSource = "Microsoft.Storage"
|
||||
)
|
||||
|
||||
// PossibleEncryptionScopeSourceValues returns an array of possible values for the EncryptionScopeSource const type.
|
||||
func PossibleEncryptionScopeSourceValues() []EncryptionScopeSource {
|
||||
return []EncryptionScopeSource{MicrosoftKeyVault, MicrosoftStorage}
|
||||
}
|
||||
|
||||
// EncryptionScopeState enumerates the values for encryption scope state.
|
||||
type EncryptionScopeState string
|
||||
|
||||
const (
|
||||
// Disabled ...
|
||||
Disabled EncryptionScopeState = "Disabled"
|
||||
// Enabled ...
|
||||
Enabled EncryptionScopeState = "Enabled"
|
||||
)
|
||||
|
||||
// PossibleEncryptionScopeStateValues returns an array of possible values for the EncryptionScopeState const type.
|
||||
func PossibleEncryptionScopeStateValues() []EncryptionScopeState {
|
||||
return []EncryptionScopeState{Disabled, Enabled}
|
||||
}
|
||||
|
||||
// GeoReplicationStatus enumerates the values for geo replication status.
|
||||
type GeoReplicationStatus string
|
||||
|
||||
const (
|
||||
// GeoReplicationStatusBootstrap ...
|
||||
GeoReplicationStatusBootstrap GeoReplicationStatus = "Bootstrap"
|
||||
// GeoReplicationStatusLive ...
|
||||
GeoReplicationStatusLive GeoReplicationStatus = "Live"
|
||||
// GeoReplicationStatusUnavailable ...
|
||||
GeoReplicationStatusUnavailable GeoReplicationStatus = "Unavailable"
|
||||
)
|
||||
|
||||
// PossibleGeoReplicationStatusValues returns an array of possible values for the GeoReplicationStatus const type.
|
||||
func PossibleGeoReplicationStatusValues() []GeoReplicationStatus {
|
||||
return []GeoReplicationStatus{GeoReplicationStatusBootstrap, GeoReplicationStatusLive, GeoReplicationStatusUnavailable}
|
||||
}
|
||||
|
||||
// GetShareExpand enumerates the values for get share expand.
|
||||
type GetShareExpand string
|
||||
|
||||
const (
|
||||
// Stats ...
|
||||
Stats GetShareExpand = "stats"
|
||||
)
|
||||
|
||||
// PossibleGetShareExpandValues returns an array of possible values for the GetShareExpand const type.
|
||||
func PossibleGetShareExpandValues() []GetShareExpand {
|
||||
return []GetShareExpand{Stats}
|
||||
}
|
||||
|
||||
// HTTPProtocol enumerates the values for http protocol.
|
||||
type HTTPProtocol string
|
||||
|
||||
const (
|
||||
// HTTPS ...
|
||||
HTTPS HTTPProtocol = "https"
|
||||
// Httpshttp ...
|
||||
Httpshttp HTTPProtocol = "https,http"
|
||||
)
|
||||
|
||||
// PossibleHTTPProtocolValues returns an array of possible values for the HTTPProtocol const type.
|
||||
func PossibleHTTPProtocolValues() []HTTPProtocol {
|
||||
return []HTTPProtocol{HTTPS, Httpshttp}
|
||||
}
|
||||
|
||||
// ImmutabilityPolicyState enumerates the values for immutability policy state.
|
||||
type ImmutabilityPolicyState string
|
||||
|
||||
const (
|
||||
// Locked ...
|
||||
Locked ImmutabilityPolicyState = "Locked"
|
||||
// Unlocked ...
|
||||
Unlocked ImmutabilityPolicyState = "Unlocked"
|
||||
)
|
||||
|
||||
// PossibleImmutabilityPolicyStateValues returns an array of possible values for the ImmutabilityPolicyState const type.
|
||||
func PossibleImmutabilityPolicyStateValues() []ImmutabilityPolicyState {
|
||||
return []ImmutabilityPolicyState{Locked, Unlocked}
|
||||
}
|
||||
|
||||
// ImmutabilityPolicyUpdateType enumerates the values for immutability policy update type.
|
||||
type ImmutabilityPolicyUpdateType string
|
||||
|
||||
const (
|
||||
// Extend ...
|
||||
Extend ImmutabilityPolicyUpdateType = "extend"
|
||||
// Lock ...
|
||||
Lock ImmutabilityPolicyUpdateType = "lock"
|
||||
// Put ...
|
||||
Put ImmutabilityPolicyUpdateType = "put"
|
||||
)
|
||||
|
||||
// PossibleImmutabilityPolicyUpdateTypeValues returns an array of possible values for the ImmutabilityPolicyUpdateType const type.
|
||||
func PossibleImmutabilityPolicyUpdateTypeValues() []ImmutabilityPolicyUpdateType {
|
||||
return []ImmutabilityPolicyUpdateType{Extend, Lock, Put}
|
||||
}
|
||||
|
||||
// KeyPermission enumerates the values for key permission.
|
||||
type KeyPermission string
|
||||
|
||||
const (
|
||||
// Full ...
|
||||
Full KeyPermission = "Full"
|
||||
// Read ...
|
||||
Read KeyPermission = "Read"
|
||||
)
|
||||
|
||||
// PossibleKeyPermissionValues returns an array of possible values for the KeyPermission const type.
|
||||
func PossibleKeyPermissionValues() []KeyPermission {
|
||||
return []KeyPermission{Full, Read}
|
||||
}
|
||||
|
||||
// KeySource enumerates the values for key source.
|
||||
type KeySource string
|
||||
|
||||
const (
|
||||
// KeySourceMicrosoftKeyvault ...
|
||||
KeySourceMicrosoftKeyvault KeySource = "Microsoft.Keyvault"
|
||||
// KeySourceMicrosoftStorage ...
|
||||
KeySourceMicrosoftStorage KeySource = "Microsoft.Storage"
|
||||
)
|
||||
|
||||
// PossibleKeySourceValues returns an array of possible values for the KeySource const type.
|
||||
func PossibleKeySourceValues() []KeySource {
|
||||
return []KeySource{KeySourceMicrosoftKeyvault, KeySourceMicrosoftStorage}
|
||||
}
|
||||
|
||||
// KeyType enumerates the values for key type.
|
||||
type KeyType string
|
||||
|
||||
const (
|
||||
// KeyTypeAccount ...
|
||||
KeyTypeAccount KeyType = "Account"
|
||||
// KeyTypeService ...
|
||||
KeyTypeService KeyType = "Service"
|
||||
)
|
||||
|
||||
// PossibleKeyTypeValues returns an array of possible values for the KeyType const type.
|
||||
func PossibleKeyTypeValues() []KeyType {
|
||||
return []KeyType{KeyTypeAccount, KeyTypeService}
|
||||
}
|
||||
|
||||
// Kind enumerates the values for kind.
|
||||
type Kind string
|
||||
|
||||
const (
|
||||
// BlobStorage ...
|
||||
BlobStorage Kind = "BlobStorage"
|
||||
// BlockBlobStorage ...
|
||||
BlockBlobStorage Kind = "BlockBlobStorage"
|
||||
// FileStorage ...
|
||||
FileStorage Kind = "FileStorage"
|
||||
// Storage ...
|
||||
Storage Kind = "Storage"
|
||||
// StorageV2 ...
|
||||
StorageV2 Kind = "StorageV2"
|
||||
)
|
||||
|
||||
// PossibleKindValues returns an array of possible values for the Kind const type.
|
||||
func PossibleKindValues() []Kind {
|
||||
return []Kind{BlobStorage, BlockBlobStorage, FileStorage, Storage, StorageV2}
|
||||
}
|
||||
|
||||
// LargeFileSharesState enumerates the values for large file shares state.
|
||||
type LargeFileSharesState string
|
||||
|
||||
const (
|
||||
// LargeFileSharesStateDisabled ...
|
||||
LargeFileSharesStateDisabled LargeFileSharesState = "Disabled"
|
||||
// LargeFileSharesStateEnabled ...
|
||||
LargeFileSharesStateEnabled LargeFileSharesState = "Enabled"
|
||||
)
|
||||
|
||||
// PossibleLargeFileSharesStateValues returns an array of possible values for the LargeFileSharesState const type.
|
||||
func PossibleLargeFileSharesStateValues() []LargeFileSharesState {
|
||||
return []LargeFileSharesState{LargeFileSharesStateDisabled, LargeFileSharesStateEnabled}
|
||||
}
|
||||
|
||||
// LeaseDuration enumerates the values for lease duration.
|
||||
type LeaseDuration string
|
||||
|
||||
const (
|
||||
// Fixed ...
|
||||
Fixed LeaseDuration = "Fixed"
|
||||
// Infinite ...
|
||||
Infinite LeaseDuration = "Infinite"
|
||||
)
|
||||
|
||||
// PossibleLeaseDurationValues returns an array of possible values for the LeaseDuration const type.
|
||||
func PossibleLeaseDurationValues() []LeaseDuration {
|
||||
return []LeaseDuration{Fixed, Infinite}
|
||||
}
|
||||
|
||||
// LeaseState enumerates the values for lease state.
|
||||
type LeaseState string
|
||||
|
||||
const (
|
||||
// LeaseStateAvailable ...
|
||||
LeaseStateAvailable LeaseState = "Available"
|
||||
// LeaseStateBreaking ...
|
||||
LeaseStateBreaking LeaseState = "Breaking"
|
||||
// LeaseStateBroken ...
|
||||
LeaseStateBroken LeaseState = "Broken"
|
||||
// LeaseStateExpired ...
|
||||
LeaseStateExpired LeaseState = "Expired"
|
||||
// LeaseStateLeased ...
|
||||
LeaseStateLeased LeaseState = "Leased"
|
||||
)
|
||||
|
||||
// PossibleLeaseStateValues returns an array of possible values for the LeaseState const type.
|
||||
func PossibleLeaseStateValues() []LeaseState {
|
||||
return []LeaseState{LeaseStateAvailable, LeaseStateBreaking, LeaseStateBroken, LeaseStateExpired, LeaseStateLeased}
|
||||
}
|
||||
|
||||
// LeaseStatus enumerates the values for lease status.
|
||||
type LeaseStatus string
|
||||
|
||||
const (
|
||||
// LeaseStatusLocked ...
|
||||
LeaseStatusLocked LeaseStatus = "Locked"
|
||||
// LeaseStatusUnlocked ...
|
||||
LeaseStatusUnlocked LeaseStatus = "Unlocked"
|
||||
)
|
||||
|
||||
// PossibleLeaseStatusValues returns an array of possible values for the LeaseStatus const type.
|
||||
func PossibleLeaseStatusValues() []LeaseStatus {
|
||||
return []LeaseStatus{LeaseStatusLocked, LeaseStatusUnlocked}
|
||||
}
|
||||
|
||||
// ListContainersInclude enumerates the values for list containers include.
|
||||
type ListContainersInclude string
|
||||
|
||||
const (
|
||||
// Deleted ...
|
||||
Deleted ListContainersInclude = "deleted"
|
||||
)
|
||||
|
||||
// PossibleListContainersIncludeValues returns an array of possible values for the ListContainersInclude const type.
|
||||
func PossibleListContainersIncludeValues() []ListContainersInclude {
|
||||
return []ListContainersInclude{Deleted}
|
||||
}
|
||||
|
||||
// ListKeyExpand enumerates the values for list key expand.
|
||||
type ListKeyExpand string
|
||||
|
||||
const (
|
||||
// Kerb ...
|
||||
Kerb ListKeyExpand = "kerb"
|
||||
)
|
||||
|
||||
// PossibleListKeyExpandValues returns an array of possible values for the ListKeyExpand const type.
|
||||
func PossibleListKeyExpandValues() []ListKeyExpand {
|
||||
return []ListKeyExpand{Kerb}
|
||||
}
|
||||
|
||||
// ListSharesExpand enumerates the values for list shares expand.
|
||||
type ListSharesExpand string
|
||||
|
||||
const (
|
||||
// ListSharesExpandDeleted ...
|
||||
ListSharesExpandDeleted ListSharesExpand = "deleted"
|
||||
)
|
||||
|
||||
// PossibleListSharesExpandValues returns an array of possible values for the ListSharesExpand const type.
|
||||
func PossibleListSharesExpandValues() []ListSharesExpand {
|
||||
return []ListSharesExpand{ListSharesExpandDeleted}
|
||||
}
|
||||
|
||||
// MinimumTLSVersion enumerates the values for minimum tls version.
|
||||
type MinimumTLSVersion string
|
||||
|
||||
const (
|
||||
// TLS10 ...
|
||||
TLS10 MinimumTLSVersion = "TLS1_0"
|
||||
// TLS11 ...
|
||||
TLS11 MinimumTLSVersion = "TLS1_1"
|
||||
// TLS12 ...
|
||||
TLS12 MinimumTLSVersion = "TLS1_2"
|
||||
)
|
||||
|
||||
// PossibleMinimumTLSVersionValues returns an array of possible values for the MinimumTLSVersion const type.
|
||||
func PossibleMinimumTLSVersionValues() []MinimumTLSVersion {
|
||||
return []MinimumTLSVersion{TLS10, TLS11, TLS12}
|
||||
}
|
||||
|
||||
// Permissions enumerates the values for permissions.
|
||||
type Permissions string
|
||||
|
||||
const (
|
||||
// A ...
|
||||
A Permissions = "a"
|
||||
// C ...
|
||||
C Permissions = "c"
|
||||
// D ...
|
||||
D Permissions = "d"
|
||||
// L ...
|
||||
L Permissions = "l"
|
||||
// P ...
|
||||
P Permissions = "p"
|
||||
// R ...
|
||||
R Permissions = "r"
|
||||
// U ...
|
||||
U Permissions = "u"
|
||||
// W ...
|
||||
W Permissions = "w"
|
||||
)
|
||||
|
||||
// PossiblePermissionsValues returns an array of possible values for the Permissions const type.
|
||||
func PossiblePermissionsValues() []Permissions {
|
||||
return []Permissions{A, C, D, L, P, R, U, W}
|
||||
}
|
||||
|
||||
// PrivateEndpointConnectionProvisioningState enumerates the values for private endpoint connection
|
||||
// provisioning state.
|
||||
type PrivateEndpointConnectionProvisioningState string
|
||||
|
||||
const (
|
||||
// PrivateEndpointConnectionProvisioningStateCreating ...
|
||||
PrivateEndpointConnectionProvisioningStateCreating PrivateEndpointConnectionProvisioningState = "Creating"
|
||||
// PrivateEndpointConnectionProvisioningStateDeleting ...
|
||||
PrivateEndpointConnectionProvisioningStateDeleting PrivateEndpointConnectionProvisioningState = "Deleting"
|
||||
// PrivateEndpointConnectionProvisioningStateFailed ...
|
||||
PrivateEndpointConnectionProvisioningStateFailed PrivateEndpointConnectionProvisioningState = "Failed"
|
||||
// PrivateEndpointConnectionProvisioningStateSucceeded ...
|
||||
PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded"
|
||||
)
|
||||
|
||||
// PossiblePrivateEndpointConnectionProvisioningStateValues returns an array of possible values for the PrivateEndpointConnectionProvisioningState const type.
|
||||
func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpointConnectionProvisioningState {
|
||||
return []PrivateEndpointConnectionProvisioningState{PrivateEndpointConnectionProvisioningStateCreating, PrivateEndpointConnectionProvisioningStateDeleting, PrivateEndpointConnectionProvisioningStateFailed, PrivateEndpointConnectionProvisioningStateSucceeded}
|
||||
}
|
||||
|
||||
// PrivateEndpointServiceConnectionStatus enumerates the values for private endpoint service connection status.
|
||||
type PrivateEndpointServiceConnectionStatus string
|
||||
|
||||
const (
|
||||
// Approved ...
|
||||
Approved PrivateEndpointServiceConnectionStatus = "Approved"
|
||||
// Pending ...
|
||||
Pending PrivateEndpointServiceConnectionStatus = "Pending"
|
||||
// Rejected ...
|
||||
Rejected PrivateEndpointServiceConnectionStatus = "Rejected"
|
||||
)
|
||||
|
||||
// PossiblePrivateEndpointServiceConnectionStatusValues returns an array of possible values for the PrivateEndpointServiceConnectionStatus const type.
|
||||
func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus {
|
||||
return []PrivateEndpointServiceConnectionStatus{Approved, Pending, Rejected}
|
||||
}
|
||||
|
||||
// ProvisioningState enumerates the values for provisioning state.
|
||||
type ProvisioningState string
|
||||
|
||||
const (
|
||||
// Creating ...
|
||||
Creating ProvisioningState = "Creating"
|
||||
// ResolvingDNS ...
|
||||
ResolvingDNS ProvisioningState = "ResolvingDNS"
|
||||
// Succeeded ...
|
||||
Succeeded ProvisioningState = "Succeeded"
|
||||
)
|
||||
|
||||
// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
|
||||
func PossibleProvisioningStateValues() []ProvisioningState {
|
||||
return []ProvisioningState{Creating, ResolvingDNS, Succeeded}
|
||||
}
|
||||
|
||||
// PublicAccess enumerates the values for public access.
|
||||
type PublicAccess string
|
||||
|
||||
const (
|
||||
// PublicAccessBlob ...
|
||||
PublicAccessBlob PublicAccess = "Blob"
|
||||
// PublicAccessContainer ...
|
||||
PublicAccessContainer PublicAccess = "Container"
|
||||
// PublicAccessNone ...
|
||||
PublicAccessNone PublicAccess = "None"
|
||||
)
|
||||
|
||||
// PossiblePublicAccessValues returns an array of possible values for the PublicAccess const type.
|
||||
func PossiblePublicAccessValues() []PublicAccess {
|
||||
return []PublicAccess{PublicAccessBlob, PublicAccessContainer, PublicAccessNone}
|
||||
}
|
||||
|
||||
// Reason enumerates the values for reason.
|
||||
type Reason string
|
||||
|
||||
const (
|
||||
// AccountNameInvalid ...
|
||||
AccountNameInvalid Reason = "AccountNameInvalid"
|
||||
// AlreadyExists ...
|
||||
AlreadyExists Reason = "AlreadyExists"
|
||||
)
|
||||
|
||||
// PossibleReasonValues returns an array of possible values for the Reason const type.
|
||||
func PossibleReasonValues() []Reason {
|
||||
return []Reason{AccountNameInvalid, AlreadyExists}
|
||||
}
|
||||
|
||||
// ReasonCode enumerates the values for reason code.
|
||||
type ReasonCode string
|
||||
|
||||
const (
|
||||
// NotAvailableForSubscription ...
|
||||
NotAvailableForSubscription ReasonCode = "NotAvailableForSubscription"
|
||||
// QuotaID ...
|
||||
QuotaID ReasonCode = "QuotaId"
|
||||
)
|
||||
|
||||
// PossibleReasonCodeValues returns an array of possible values for the ReasonCode const type.
|
||||
func PossibleReasonCodeValues() []ReasonCode {
|
||||
return []ReasonCode{NotAvailableForSubscription, QuotaID}
|
||||
}
|
||||
|
||||
// RootSquashType enumerates the values for root squash type.
|
||||
type RootSquashType string
|
||||
|
||||
const (
|
||||
// AllSquash ...
|
||||
AllSquash RootSquashType = "AllSquash"
|
||||
// NoRootSquash ...
|
||||
NoRootSquash RootSquashType = "NoRootSquash"
|
||||
// RootSquash ...
|
||||
RootSquash RootSquashType = "RootSquash"
|
||||
)
|
||||
|
||||
// PossibleRootSquashTypeValues returns an array of possible values for the RootSquashType const type.
|
||||
func PossibleRootSquashTypeValues() []RootSquashType {
|
||||
return []RootSquashType{AllSquash, NoRootSquash, RootSquash}
|
||||
}
|
||||
|
||||
// RoutingChoice enumerates the values for routing choice.
|
||||
type RoutingChoice string
|
||||
|
||||
const (
|
||||
// InternetRouting ...
|
||||
InternetRouting RoutingChoice = "InternetRouting"
|
||||
// MicrosoftRouting ...
|
||||
MicrosoftRouting RoutingChoice = "MicrosoftRouting"
|
||||
)
|
||||
|
||||
// PossibleRoutingChoiceValues returns an array of possible values for the RoutingChoice const type.
|
||||
func PossibleRoutingChoiceValues() []RoutingChoice {
|
||||
return []RoutingChoice{InternetRouting, MicrosoftRouting}
|
||||
}
|
||||
|
||||
// Services enumerates the values for services.
|
||||
type Services string
|
||||
|
||||
const (
|
||||
// B ...
|
||||
B Services = "b"
|
||||
// F ...
|
||||
F Services = "f"
|
||||
// Q ...
|
||||
Q Services = "q"
|
||||
// T ...
|
||||
T Services = "t"
|
||||
)
|
||||
|
||||
// PossibleServicesValues returns an array of possible values for the Services const type.
|
||||
func PossibleServicesValues() []Services {
|
||||
return []Services{B, F, Q, T}
|
||||
}
|
||||
|
||||
// ShareAccessTier enumerates the values for share access tier.
|
||||
type ShareAccessTier string
|
||||
|
||||
const (
|
||||
// ShareAccessTierCool ...
|
||||
ShareAccessTierCool ShareAccessTier = "Cool"
|
||||
// ShareAccessTierHot ...
|
||||
ShareAccessTierHot ShareAccessTier = "Hot"
|
||||
// ShareAccessTierPremium ...
|
||||
ShareAccessTierPremium ShareAccessTier = "Premium"
|
||||
// ShareAccessTierTransactionOptimized ...
|
||||
ShareAccessTierTransactionOptimized ShareAccessTier = "TransactionOptimized"
|
||||
)
|
||||
|
||||
// PossibleShareAccessTierValues returns an array of possible values for the ShareAccessTier const type.
|
||||
func PossibleShareAccessTierValues() []ShareAccessTier {
|
||||
return []ShareAccessTier{ShareAccessTierCool, ShareAccessTierHot, ShareAccessTierPremium, ShareAccessTierTransactionOptimized}
|
||||
}
|
||||
|
||||
// SignedResource enumerates the values for signed resource.
|
||||
type SignedResource string
|
||||
|
||||
const (
|
||||
// SignedResourceB ...
|
||||
SignedResourceB SignedResource = "b"
|
||||
// SignedResourceC ...
|
||||
SignedResourceC SignedResource = "c"
|
||||
// SignedResourceF ...
|
||||
SignedResourceF SignedResource = "f"
|
||||
// SignedResourceS ...
|
||||
SignedResourceS SignedResource = "s"
|
||||
)
|
||||
|
||||
// PossibleSignedResourceValues returns an array of possible values for the SignedResource const type.
|
||||
func PossibleSignedResourceValues() []SignedResource {
|
||||
return []SignedResource{SignedResourceB, SignedResourceC, SignedResourceF, SignedResourceS}
|
||||
}
|
||||
|
||||
// SignedResourceTypes enumerates the values for signed resource types.
|
||||
type SignedResourceTypes string
|
||||
|
||||
const (
|
||||
// SignedResourceTypesC ...
|
||||
SignedResourceTypesC SignedResourceTypes = "c"
|
||||
// SignedResourceTypesO ...
|
||||
SignedResourceTypesO SignedResourceTypes = "o"
|
||||
// SignedResourceTypesS ...
|
||||
SignedResourceTypesS SignedResourceTypes = "s"
|
||||
)
|
||||
|
||||
// PossibleSignedResourceTypesValues returns an array of possible values for the SignedResourceTypes const type.
|
||||
func PossibleSignedResourceTypesValues() []SignedResourceTypes {
|
||||
return []SignedResourceTypes{SignedResourceTypesC, SignedResourceTypesO, SignedResourceTypesS}
|
||||
}
|
||||
|
||||
// SkuName enumerates the values for sku name.
|
||||
type SkuName string
|
||||
|
||||
const (
|
||||
// PremiumLRS ...
|
||||
PremiumLRS SkuName = "Premium_LRS"
|
||||
// PremiumZRS ...
|
||||
PremiumZRS SkuName = "Premium_ZRS"
|
||||
// StandardGRS ...
|
||||
StandardGRS SkuName = "Standard_GRS"
|
||||
// StandardGZRS ...
|
||||
StandardGZRS SkuName = "Standard_GZRS"
|
||||
// StandardLRS ...
|
||||
StandardLRS SkuName = "Standard_LRS"
|
||||
// StandardRAGRS ...
|
||||
StandardRAGRS SkuName = "Standard_RAGRS"
|
||||
// StandardRAGZRS ...
|
||||
StandardRAGZRS SkuName = "Standard_RAGZRS"
|
||||
// StandardZRS ...
|
||||
StandardZRS SkuName = "Standard_ZRS"
|
||||
)
|
||||
|
||||
// PossibleSkuNameValues returns an array of possible values for the SkuName const type.
|
||||
func PossibleSkuNameValues() []SkuName {
|
||||
return []SkuName{PremiumLRS, PremiumZRS, StandardGRS, StandardGZRS, StandardLRS, StandardRAGRS, StandardRAGZRS, StandardZRS}
|
||||
}
|
||||
|
||||
// SkuTier enumerates the values for sku tier.
|
||||
type SkuTier string
|
||||
|
||||
const (
|
||||
// Premium ...
|
||||
Premium SkuTier = "Premium"
|
||||
// Standard ...
|
||||
Standard SkuTier = "Standard"
|
||||
)
|
||||
|
||||
// PossibleSkuTierValues returns an array of possible values for the SkuTier const type.
|
||||
func PossibleSkuTierValues() []SkuTier {
|
||||
return []SkuTier{Premium, Standard}
|
||||
}
|
||||
|
||||
// State enumerates the values for state.
|
||||
type State string
|
||||
|
||||
const (
|
||||
// StateDeprovisioning ...
|
||||
StateDeprovisioning State = "deprovisioning"
|
||||
// StateFailed ...
|
||||
StateFailed State = "failed"
|
||||
// StateNetworkSourceDeleted ...
|
||||
StateNetworkSourceDeleted State = "networkSourceDeleted"
|
||||
// StateProvisioning ...
|
||||
StateProvisioning State = "provisioning"
|
||||
// StateSucceeded ...
|
||||
StateSucceeded State = "succeeded"
|
||||
)
|
||||
|
||||
// PossibleStateValues returns an array of possible values for the State const type.
|
||||
func PossibleStateValues() []State {
|
||||
return []State{StateDeprovisioning, StateFailed, StateNetworkSourceDeleted, StateProvisioning, StateSucceeded}
|
||||
}
|
||||
|
||||
// UsageUnit enumerates the values for usage unit.
|
||||
type UsageUnit string
|
||||
|
||||
const (
|
||||
// Bytes ...
|
||||
Bytes UsageUnit = "Bytes"
|
||||
// BytesPerSecond ...
|
||||
BytesPerSecond UsageUnit = "BytesPerSecond"
|
||||
// Count ...
|
||||
Count UsageUnit = "Count"
|
||||
// CountsPerSecond ...
|
||||
CountsPerSecond UsageUnit = "CountsPerSecond"
|
||||
// Percent ...
|
||||
Percent UsageUnit = "Percent"
|
||||
// Seconds ...
|
||||
Seconds UsageUnit = "Seconds"
|
||||
)
|
||||
|
||||
// PossibleUsageUnitValues returns an array of possible values for the UsageUnit const type.
|
||||
func PossibleUsageUnitValues() []UsageUnit {
|
||||
return []UsageUnit{Bytes, BytesPerSecond, Count, CountsPerSecond, Percent, Seconds}
|
||||
}
|
323
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/fileservices.go
сгенерированный
поставляемый
Normal file
323
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/fileservices.go
сгенерированный
поставляемый
Normal file
|
@ -0,0 +1,323 @@
|
|||
package storage
|
||||
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
//
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/Azure/go-autorest/autorest"
|
||||
"github.com/Azure/go-autorest/autorest/azure"
|
||||
"github.com/Azure/go-autorest/autorest/validation"
|
||||
"github.com/Azure/go-autorest/tracing"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// FileServicesClient is the the Azure Storage Management API.
|
||||
type FileServicesClient struct {
|
||||
BaseClient
|
||||
}
|
||||
|
||||
// NewFileServicesClient creates an instance of the FileServicesClient client.
|
||||
func NewFileServicesClient(subscriptionID string) FileServicesClient {
|
||||
return NewFileServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewFileServicesClientWithBaseURI creates an instance of the FileServicesClient client using a custom endpoint. Use
|
||||
// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
|
||||
func NewFileServicesClientWithBaseURI(baseURI string, subscriptionID string) FileServicesClient {
|
||||
return FileServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// GetServiceProperties gets the properties of file services in storage accounts, including CORS (Cross-Origin Resource
|
||||
// Sharing) rules.
|
||||
// Parameters:
|
||||
// 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.
|
||||
func (client FileServicesClient) GetServiceProperties(ctx context.Context, resourceGroupName string, accountName string) (result FileServiceProperties, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/FileServicesClient.GetServiceProperties")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.FileServicesClient", "GetServiceProperties", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.GetServicePropertiesPreparer(ctx, resourceGroupName, accountName)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.FileServicesClient", "GetServiceProperties", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.GetServicePropertiesSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.FileServicesClient", "GetServiceProperties", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.GetServicePropertiesResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.FileServicesClient", "GetServiceProperties", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// GetServicePropertiesPreparer prepares the GetServiceProperties request.
|
||||
func (client FileServicesClient) GetServicePropertiesPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"FileServicesName": autorest.Encode("path", "default"),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// GetServicePropertiesSender sends the GetServiceProperties request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client FileServicesClient) GetServicePropertiesSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// GetServicePropertiesResponder handles the response to the GetServiceProperties request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client FileServicesClient) GetServicePropertiesResponder(resp *http.Response) (result FileServiceProperties, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
||||
|
||||
// List list all file services in storage accounts
|
||||
// Parameters:
|
||||
// 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.
|
||||
func (client FileServicesClient) List(ctx context.Context, resourceGroupName string, accountName string) (result FileServiceItems, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/FileServicesClient.List")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.FileServicesClient", "List", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.ListPreparer(ctx, resourceGroupName, accountName)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.FileServicesClient", "List", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.ListSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.FileServicesClient", "List", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.ListResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.FileServicesClient", "List", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// ListPreparer prepares the List request.
|
||||
func (client FileServicesClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// ListSender sends the List request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client FileServicesClient) ListSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// ListResponder handles the response to the List request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client FileServicesClient) ListResponder(resp *http.Response) (result FileServiceItems, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
||||
|
||||
// SetServiceProperties sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource
|
||||
// Sharing) rules.
|
||||
// Parameters:
|
||||
// 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.
|
||||
// parameters - the properties of file services in storage accounts, including CORS (Cross-Origin Resource
|
||||
// Sharing) rules.
|
||||
func (client FileServicesClient) SetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, parameters FileServiceProperties) (result FileServiceProperties, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/FileServicesClient.SetServiceProperties")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}},
|
||||
{TargetValue: parameters,
|
||||
Constraints: []validation.Constraint{{Target: "parameters.FileServicePropertiesProperties", Name: validation.Null, Rule: false,
|
||||
Chain: []validation.Constraint{{Target: "parameters.FileServicePropertiesProperties.ShareDeleteRetentionPolicy", Name: validation.Null, Rule: false,
|
||||
Chain: []validation.Constraint{{Target: "parameters.FileServicePropertiesProperties.ShareDeleteRetentionPolicy.Days", Name: validation.Null, Rule: false,
|
||||
Chain: []validation.Constraint{{Target: "parameters.FileServicePropertiesProperties.ShareDeleteRetentionPolicy.Days", Name: validation.InclusiveMaximum, Rule: int64(365), Chain: nil},
|
||||
{Target: "parameters.FileServicePropertiesProperties.ShareDeleteRetentionPolicy.Days", Name: validation.InclusiveMinimum, Rule: int64(1), Chain: nil},
|
||||
}},
|
||||
}},
|
||||
}}}}}); err != nil {
|
||||
return result, validation.NewError("storage.FileServicesClient", "SetServiceProperties", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.SetServicePropertiesPreparer(ctx, resourceGroupName, accountName, parameters)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.FileServicesClient", "SetServiceProperties", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.SetServicePropertiesSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.FileServicesClient", "SetServiceProperties", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.SetServicePropertiesResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.FileServicesClient", "SetServiceProperties", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// SetServicePropertiesPreparer prepares the SetServiceProperties request.
|
||||
func (client FileServicesClient) SetServicePropertiesPreparer(ctx context.Context, resourceGroupName string, accountName string, parameters FileServiceProperties) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"FileServicesName": autorest.Encode("path", "default"),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
parameters.Sku = nil
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsContentType("application/json; charset=utf-8"),
|
||||
autorest.AsPut(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}", pathParameters),
|
||||
autorest.WithJSON(parameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// SetServicePropertiesSender sends the SetServiceProperties request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client FileServicesClient) SetServicePropertiesSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// SetServicePropertiesResponder handles the response to the SetServiceProperties request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client FileServicesClient) SetServicePropertiesResponder(resp *http.Response) (result FileServiceProperties, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
689
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/fileshares.go
сгенерированный
поставляемый
Normal file
689
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/fileshares.go
сгенерированный
поставляемый
Normal file
|
@ -0,0 +1,689 @@
|
|||
package storage
|
||||
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
//
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/Azure/go-autorest/autorest"
|
||||
"github.com/Azure/go-autorest/autorest/azure"
|
||||
"github.com/Azure/go-autorest/autorest/validation"
|
||||
"github.com/Azure/go-autorest/tracing"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// FileSharesClient is the the Azure Storage Management API.
|
||||
type FileSharesClient struct {
|
||||
BaseClient
|
||||
}
|
||||
|
||||
// NewFileSharesClient creates an instance of the FileSharesClient client.
|
||||
func NewFileSharesClient(subscriptionID string) FileSharesClient {
|
||||
return NewFileSharesClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewFileSharesClientWithBaseURI creates an instance of the FileSharesClient client using a custom endpoint. Use this
|
||||
// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
|
||||
func NewFileSharesClientWithBaseURI(baseURI string, subscriptionID string) FileSharesClient {
|
||||
return FileSharesClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// Create creates a new share under the specified account as described by request body. The share resource includes
|
||||
// metadata and properties for that share. It does not include a list of the files contained by the share.
|
||||
// Parameters:
|
||||
// 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.
|
||||
// shareName - the name of the file share within the specified storage account. File share names must be
|
||||
// between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-)
|
||||
// character must be immediately preceded and followed by a letter or number.
|
||||
// fileShare - properties of the file share to create.
|
||||
func (client FileSharesClient) Create(ctx context.Context, resourceGroupName string, accountName string, shareName string, fileShare FileShare) (result FileShare, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/FileSharesClient.Create")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: shareName,
|
||||
Constraints: []validation.Constraint{{Target: "shareName", Name: validation.MaxLength, Rule: 63, Chain: nil},
|
||||
{Target: "shareName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: fileShare,
|
||||
Constraints: []validation.Constraint{{Target: "fileShare.FileShareProperties", Name: validation.Null, Rule: false,
|
||||
Chain: []validation.Constraint{{Target: "fileShare.FileShareProperties.ShareQuota", Name: validation.Null, Rule: false,
|
||||
Chain: []validation.Constraint{{Target: "fileShare.FileShareProperties.ShareQuota", Name: validation.InclusiveMaximum, Rule: int64(102400), Chain: nil},
|
||||
{Target: "fileShare.FileShareProperties.ShareQuota", Name: validation.InclusiveMinimum, Rule: int64(1), Chain: nil},
|
||||
}},
|
||||
}}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.FileSharesClient", "Create", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.CreatePreparer(ctx, resourceGroupName, accountName, shareName, fileShare)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Create", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.CreateSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Create", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.CreateResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Create", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// CreatePreparer prepares the Create request.
|
||||
func (client FileSharesClient) CreatePreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, fileShare FileShare) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"shareName": autorest.Encode("path", shareName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsContentType("application/json; charset=utf-8"),
|
||||
autorest.AsPut(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}", pathParameters),
|
||||
autorest.WithJSON(fileShare),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// CreateSender sends the Create request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client FileSharesClient) CreateSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// CreateResponder handles the response to the Create request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client FileSharesClient) CreateResponder(resp *http.Response) (result FileShare, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
||||
|
||||
// Delete deletes specified share under its account.
|
||||
// Parameters:
|
||||
// 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.
|
||||
// shareName - the name of the file share within the specified storage account. File share names must be
|
||||
// between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-)
|
||||
// character must be immediately preceded and followed by a letter or number.
|
||||
func (client FileSharesClient) Delete(ctx context.Context, resourceGroupName string, accountName string, shareName string) (result autorest.Response, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/FileSharesClient.Delete")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response != nil {
|
||||
sc = result.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: shareName,
|
||||
Constraints: []validation.Constraint{{Target: "shareName", Name: validation.MaxLength, Rule: 63, Chain: nil},
|
||||
{Target: "shareName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.FileSharesClient", "Delete", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.DeletePreparer(ctx, resourceGroupName, accountName, shareName)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Delete", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.DeleteSender(req)
|
||||
if err != nil {
|
||||
result.Response = resp
|
||||
err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Delete", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.DeleteResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Delete", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// DeletePreparer prepares the Delete request.
|
||||
func (client FileSharesClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"shareName": autorest.Encode("path", shareName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsDelete(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// DeleteSender sends the Delete request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client FileSharesClient) DeleteSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// DeleteResponder handles the response to the Delete request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client FileSharesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
|
||||
autorest.ByClosing())
|
||||
result.Response = resp
|
||||
return
|
||||
}
|
||||
|
||||
// Get gets properties of a specified share.
|
||||
// Parameters:
|
||||
// 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.
|
||||
// shareName - the name of the file share within the specified storage account. File share names must be
|
||||
// between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-)
|
||||
// character must be immediately preceded and followed by a letter or number.
|
||||
// expand - optional, used to expand the properties within share's properties.
|
||||
func (client FileSharesClient) Get(ctx context.Context, resourceGroupName string, accountName string, shareName string, expand GetShareExpand) (result FileShare, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/FileSharesClient.Get")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: shareName,
|
||||
Constraints: []validation.Constraint{{Target: "shareName", Name: validation.MaxLength, Rule: 63, Chain: nil},
|
||||
{Target: "shareName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.FileSharesClient", "Get", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.GetPreparer(ctx, resourceGroupName, accountName, shareName, expand)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Get", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.GetSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Get", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.GetResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Get", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// GetPreparer prepares the Get request.
|
||||
func (client FileSharesClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, expand GetShareExpand) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"shareName": autorest.Encode("path", shareName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
if len(string(expand)) > 0 {
|
||||
queryParameters["$expand"] = autorest.Encode("query", expand)
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// GetSender sends the Get request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client FileSharesClient) GetSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// GetResponder handles the response to the Get request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client FileSharesClient) GetResponder(resp *http.Response) (result FileShare, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
||||
|
||||
// List lists all shares.
|
||||
// Parameters:
|
||||
// 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.
|
||||
// maxpagesize - optional. Specified maximum number of shares that can be included in the list.
|
||||
// filter - optional. When specified, only share names starting with the filter will be listed.
|
||||
// expand - optional, used to expand the properties within share's properties.
|
||||
func (client FileSharesClient) List(ctx context.Context, resourceGroupName string, accountName string, maxpagesize string, filter string, expand ListSharesExpand) (result FileShareItemsPage, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/FileSharesClient.List")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.fsi.Response.Response != nil {
|
||||
sc = result.fsi.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.FileSharesClient", "List", err.Error())
|
||||
}
|
||||
|
||||
result.fn = client.listNextResults
|
||||
req, err := client.ListPreparer(ctx, resourceGroupName, accountName, maxpagesize, filter, expand)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "List", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.ListSender(req)
|
||||
if err != nil {
|
||||
result.fsi.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "List", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result.fsi, err = client.ListResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "List", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
if result.fsi.hasNextLink() && result.fsi.IsEmpty() {
|
||||
err = result.NextWithContext(ctx)
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// ListPreparer prepares the List request.
|
||||
func (client FileSharesClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string, maxpagesize string, filter string, expand ListSharesExpand) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
if len(maxpagesize) > 0 {
|
||||
queryParameters["$maxpagesize"] = autorest.Encode("query", maxpagesize)
|
||||
}
|
||||
if len(filter) > 0 {
|
||||
queryParameters["$filter"] = autorest.Encode("query", filter)
|
||||
}
|
||||
if len(string(expand)) > 0 {
|
||||
queryParameters["$expand"] = autorest.Encode("query", expand)
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// ListSender sends the List request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client FileSharesClient) ListSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// ListResponder handles the response to the List request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client FileSharesClient) ListResponder(resp *http.Response) (result FileShareItems, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
||||
|
||||
// listNextResults retrieves the next set of results, if any.
|
||||
func (client FileSharesClient) listNextResults(ctx context.Context, lastResults FileShareItems) (result FileShareItems, err error) {
|
||||
req, err := lastResults.fileShareItemsPreparer(ctx)
|
||||
if err != nil {
|
||||
return result, autorest.NewErrorWithError(err, "storage.FileSharesClient", "listNextResults", nil, "Failure preparing next results request")
|
||||
}
|
||||
if req == nil {
|
||||
return
|
||||
}
|
||||
resp, err := client.ListSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return result, autorest.NewErrorWithError(err, "storage.FileSharesClient", "listNextResults", resp, "Failure sending next results request")
|
||||
}
|
||||
result, err = client.ListResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "listNextResults", resp, "Failure responding to next results request")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// ListComplete enumerates all values, automatically crossing page boundaries as required.
|
||||
func (client FileSharesClient) ListComplete(ctx context.Context, resourceGroupName string, accountName string, maxpagesize string, filter string, expand ListSharesExpand) (result FileShareItemsIterator, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/FileSharesClient.List")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response().Response.Response != nil {
|
||||
sc = result.page.Response().Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
result.page, err = client.List(ctx, resourceGroupName, accountName, maxpagesize, filter, expand)
|
||||
return
|
||||
}
|
||||
|
||||
// Restore restore a file share within a valid retention days if share soft delete is enabled
|
||||
// Parameters:
|
||||
// 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.
|
||||
// shareName - the name of the file share within the specified storage account. File share names must be
|
||||
// between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-)
|
||||
// character must be immediately preceded and followed by a letter or number.
|
||||
func (client FileSharesClient) Restore(ctx context.Context, resourceGroupName string, accountName string, shareName string, deletedShare DeletedShare) (result autorest.Response, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/FileSharesClient.Restore")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response != nil {
|
||||
sc = result.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: shareName,
|
||||
Constraints: []validation.Constraint{{Target: "shareName", Name: validation.MaxLength, Rule: 63, Chain: nil},
|
||||
{Target: "shareName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: deletedShare,
|
||||
Constraints: []validation.Constraint{{Target: "deletedShare.DeletedShareName", Name: validation.Null, Rule: true, Chain: nil},
|
||||
{Target: "deletedShare.DeletedShareVersion", Name: validation.Null, Rule: true, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.FileSharesClient", "Restore", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.RestorePreparer(ctx, resourceGroupName, accountName, shareName, deletedShare)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Restore", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.RestoreSender(req)
|
||||
if err != nil {
|
||||
result.Response = resp
|
||||
err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Restore", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.RestoreResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Restore", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// RestorePreparer prepares the Restore request.
|
||||
func (client FileSharesClient) RestorePreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, deletedShare DeletedShare) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"shareName": autorest.Encode("path", shareName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsContentType("application/json; charset=utf-8"),
|
||||
autorest.AsPost(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}/restore", pathParameters),
|
||||
autorest.WithJSON(deletedShare),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// RestoreSender sends the Restore request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client FileSharesClient) RestoreSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// RestoreResponder handles the response to the Restore request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client FileSharesClient) RestoreResponder(resp *http.Response) (result autorest.Response, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByClosing())
|
||||
result.Response = resp
|
||||
return
|
||||
}
|
||||
|
||||
// Update updates share properties as specified in request body. Properties not mentioned in the request will not be
|
||||
// changed. Update fails if the specified share does not already exist.
|
||||
// Parameters:
|
||||
// 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.
|
||||
// shareName - the name of the file share within the specified storage account. File share names must be
|
||||
// between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-)
|
||||
// character must be immediately preceded and followed by a letter or number.
|
||||
// fileShare - properties to update for the file share.
|
||||
func (client FileSharesClient) Update(ctx context.Context, resourceGroupName string, accountName string, shareName string, fileShare FileShare) (result FileShare, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/FileSharesClient.Update")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: shareName,
|
||||
Constraints: []validation.Constraint{{Target: "shareName", Name: validation.MaxLength, Rule: 63, Chain: nil},
|
||||
{Target: "shareName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.FileSharesClient", "Update", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.UpdatePreparer(ctx, resourceGroupName, accountName, shareName, fileShare)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Update", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.UpdateSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Update", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.UpdateResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.FileSharesClient", "Update", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// UpdatePreparer prepares the Update request.
|
||||
func (client FileSharesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, fileShare FileShare) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"shareName": autorest.Encode("path", shareName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsContentType("application/json; charset=utf-8"),
|
||||
autorest.AsPatch(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}", pathParameters),
|
||||
autorest.WithJSON(fileShare),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// UpdateSender sends the Update request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client FileSharesClient) UpdateSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// UpdateResponder handles the response to the Update request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client FileSharesClient) UpdateResponder(resp *http.Response) (result FileShare, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
316
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/managementpolicies.go
сгенерированный
поставляемый
Normal file
316
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/managementpolicies.go
сгенерированный
поставляемый
Normal file
|
@ -0,0 +1,316 @@
|
|||
package storage
|
||||
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
//
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/Azure/go-autorest/autorest"
|
||||
"github.com/Azure/go-autorest/autorest/azure"
|
||||
"github.com/Azure/go-autorest/autorest/validation"
|
||||
"github.com/Azure/go-autorest/tracing"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// ManagementPoliciesClient is the the Azure Storage Management API.
|
||||
type ManagementPoliciesClient struct {
|
||||
BaseClient
|
||||
}
|
||||
|
||||
// NewManagementPoliciesClient creates an instance of the ManagementPoliciesClient client.
|
||||
func NewManagementPoliciesClient(subscriptionID string) ManagementPoliciesClient {
|
||||
return NewManagementPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewManagementPoliciesClientWithBaseURI creates an instance of the ManagementPoliciesClient client using a custom
|
||||
// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
|
||||
// stack).
|
||||
func NewManagementPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ManagementPoliciesClient {
|
||||
return ManagementPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// CreateOrUpdate sets the managementpolicy to the specified storage account.
|
||||
// Parameters:
|
||||
// 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.
|
||||
// properties - the ManagementPolicy set to a storage account.
|
||||
func (client ManagementPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, properties ManagementPolicy) (result ManagementPolicy, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/ManagementPoliciesClient.CreateOrUpdate")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}},
|
||||
{TargetValue: properties,
|
||||
Constraints: []validation.Constraint{{Target: "properties.ManagementPolicyProperties", Name: validation.Null, Rule: false,
|
||||
Chain: []validation.Constraint{{Target: "properties.ManagementPolicyProperties.Policy", Name: validation.Null, Rule: true,
|
||||
Chain: []validation.Constraint{{Target: "properties.ManagementPolicyProperties.Policy.Rules", Name: validation.Null, Rule: true, Chain: nil}}},
|
||||
}}}}}); err != nil {
|
||||
return result, validation.NewError("storage.ManagementPoliciesClient", "CreateOrUpdate", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, accountName, properties)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "CreateOrUpdate", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.CreateOrUpdateSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "CreateOrUpdate", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.CreateOrUpdateResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
|
||||
func (client ManagementPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, properties ManagementPolicy) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"managementPolicyName": autorest.Encode("path", "default"),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsContentType("application/json; charset=utf-8"),
|
||||
autorest.AsPut(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}", pathParameters),
|
||||
autorest.WithJSON(properties),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client ManagementPoliciesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client ManagementPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result ManagementPolicy, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
||||
|
||||
// Delete deletes the managementpolicy associated with the specified storage account.
|
||||
// Parameters:
|
||||
// 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.
|
||||
func (client ManagementPoliciesClient) Delete(ctx context.Context, resourceGroupName string, accountName string) (result autorest.Response, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/ManagementPoliciesClient.Delete")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response != nil {
|
||||
sc = result.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.ManagementPoliciesClient", "Delete", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.DeletePreparer(ctx, resourceGroupName, accountName)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "Delete", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.DeleteSender(req)
|
||||
if err != nil {
|
||||
result.Response = resp
|
||||
err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "Delete", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.DeleteResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "Delete", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// DeletePreparer prepares the Delete request.
|
||||
func (client ManagementPoliciesClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"managementPolicyName": autorest.Encode("path", "default"),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsDelete(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// DeleteSender sends the Delete request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client ManagementPoliciesClient) DeleteSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// DeleteResponder handles the response to the Delete request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client ManagementPoliciesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
|
||||
autorest.ByClosing())
|
||||
result.Response = resp
|
||||
return
|
||||
}
|
||||
|
||||
// Get gets the managementpolicy associated with the specified storage account.
|
||||
// Parameters:
|
||||
// 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.
|
||||
func (client ManagementPoliciesClient) Get(ctx context.Context, resourceGroupName string, accountName string) (result ManagementPolicy, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/ManagementPoliciesClient.Get")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.ManagementPoliciesClient", "Get", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.GetPreparer(ctx, resourceGroupName, accountName)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "Get", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.GetSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "Get", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.GetResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.ManagementPoliciesClient", "Get", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// GetPreparer prepares the Get request.
|
||||
func (client ManagementPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"managementPolicyName": autorest.Encode("path", "default"),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// GetSender sends the Get request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client ManagementPoliciesClient) GetSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// GetResponder handles the response to the Get request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client ManagementPoliciesClient) GetResponder(resp *http.Response) (result ManagementPolicy, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
4491
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/models.go
сгенерированный
поставляемый
Normal file
4491
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/models.go
сгенерированный
поставляемый
Normal file
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
417
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/objectreplicationpolicies.go
сгенерированный
поставляемый
Normal file
417
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/objectreplicationpolicies.go
сгенерированный
поставляемый
Normal file
|
@ -0,0 +1,417 @@
|
|||
package storage
|
||||
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
//
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/Azure/go-autorest/autorest"
|
||||
"github.com/Azure/go-autorest/autorest/azure"
|
||||
"github.com/Azure/go-autorest/autorest/validation"
|
||||
"github.com/Azure/go-autorest/tracing"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// ObjectReplicationPoliciesClient is the the Azure Storage Management API.
|
||||
type ObjectReplicationPoliciesClient struct {
|
||||
BaseClient
|
||||
}
|
||||
|
||||
// NewObjectReplicationPoliciesClient creates an instance of the ObjectReplicationPoliciesClient client.
|
||||
func NewObjectReplicationPoliciesClient(subscriptionID string) ObjectReplicationPoliciesClient {
|
||||
return NewObjectReplicationPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewObjectReplicationPoliciesClientWithBaseURI creates an instance of the ObjectReplicationPoliciesClient client
|
||||
// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
|
||||
// clouds, Azure stack).
|
||||
func NewObjectReplicationPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ObjectReplicationPoliciesClient {
|
||||
return ObjectReplicationPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// CreateOrUpdate create or update the object replication policy of the storage account.
|
||||
// Parameters:
|
||||
// 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.
|
||||
// objectReplicationPolicyID - the ID of object replication policy or 'default' if the policy ID is unknown.
|
||||
// properties - the object replication policy set to a storage account. A unique policy ID will be created if
|
||||
// absent.
|
||||
func (client ObjectReplicationPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, objectReplicationPolicyID string, properties ObjectReplicationPolicy) (result ObjectReplicationPolicy, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/ObjectReplicationPoliciesClient.CreateOrUpdate")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}},
|
||||
{TargetValue: objectReplicationPolicyID,
|
||||
Constraints: []validation.Constraint{{Target: "objectReplicationPolicyID", Name: validation.MinLength, Rule: 1, Chain: nil}}},
|
||||
{TargetValue: properties,
|
||||
Constraints: []validation.Constraint{{Target: "properties.ObjectReplicationPolicyProperties", Name: validation.Null, Rule: false,
|
||||
Chain: []validation.Constraint{{Target: "properties.ObjectReplicationPolicyProperties.SourceAccount", Name: validation.Null, Rule: true, Chain: nil},
|
||||
{Target: "properties.ObjectReplicationPolicyProperties.DestinationAccount", Name: validation.Null, Rule: true, Chain: nil},
|
||||
}}}}}); err != nil {
|
||||
return result, validation.NewError("storage.ObjectReplicationPoliciesClient", "CreateOrUpdate", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, accountName, objectReplicationPolicyID, properties)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "CreateOrUpdate", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.CreateOrUpdateSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "CreateOrUpdate", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.CreateOrUpdateResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
|
||||
func (client ObjectReplicationPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, objectReplicationPolicyID string, properties ObjectReplicationPolicy) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"objectReplicationPolicyId": autorest.Encode("path", objectReplicationPolicyID),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsContentType("application/json; charset=utf-8"),
|
||||
autorest.AsPut(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}", pathParameters),
|
||||
autorest.WithJSON(properties),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client ObjectReplicationPoliciesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client ObjectReplicationPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result ObjectReplicationPolicy, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
||||
|
||||
// Delete deletes the object replication policy associated with the specified storage account.
|
||||
// Parameters:
|
||||
// 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.
|
||||
// objectReplicationPolicyID - the ID of object replication policy or 'default' if the policy ID is unknown.
|
||||
func (client ObjectReplicationPoliciesClient) Delete(ctx context.Context, resourceGroupName string, accountName string, objectReplicationPolicyID string) (result autorest.Response, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/ObjectReplicationPoliciesClient.Delete")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response != nil {
|
||||
sc = result.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}},
|
||||
{TargetValue: objectReplicationPolicyID,
|
||||
Constraints: []validation.Constraint{{Target: "objectReplicationPolicyID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.ObjectReplicationPoliciesClient", "Delete", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.DeletePreparer(ctx, resourceGroupName, accountName, objectReplicationPolicyID)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "Delete", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.DeleteSender(req)
|
||||
if err != nil {
|
||||
result.Response = resp
|
||||
err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "Delete", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.DeleteResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "Delete", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// DeletePreparer prepares the Delete request.
|
||||
func (client ObjectReplicationPoliciesClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, objectReplicationPolicyID string) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"objectReplicationPolicyId": autorest.Encode("path", objectReplicationPolicyID),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsDelete(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// DeleteSender sends the Delete request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client ObjectReplicationPoliciesClient) DeleteSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// DeleteResponder handles the response to the Delete request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client ObjectReplicationPoliciesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
|
||||
autorest.ByClosing())
|
||||
result.Response = resp
|
||||
return
|
||||
}
|
||||
|
||||
// Get get the object replication policy of the storage account by policy ID.
|
||||
// Parameters:
|
||||
// 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.
|
||||
// objectReplicationPolicyID - the ID of object replication policy or 'default' if the policy ID is unknown.
|
||||
func (client ObjectReplicationPoliciesClient) Get(ctx context.Context, resourceGroupName string, accountName string, objectReplicationPolicyID string) (result ObjectReplicationPolicy, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/ObjectReplicationPoliciesClient.Get")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}},
|
||||
{TargetValue: objectReplicationPolicyID,
|
||||
Constraints: []validation.Constraint{{Target: "objectReplicationPolicyID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.ObjectReplicationPoliciesClient", "Get", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.GetPreparer(ctx, resourceGroupName, accountName, objectReplicationPolicyID)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "Get", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.GetSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "Get", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.GetResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "Get", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// GetPreparer prepares the Get request.
|
||||
func (client ObjectReplicationPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, objectReplicationPolicyID string) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"objectReplicationPolicyId": autorest.Encode("path", objectReplicationPolicyID),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// GetSender sends the Get request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client ObjectReplicationPoliciesClient) GetSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// GetResponder handles the response to the Get request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client ObjectReplicationPoliciesClient) GetResponder(resp *http.Response) (result ObjectReplicationPolicy, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
||||
|
||||
// List list the object replication policies associated with the storage account.
|
||||
// Parameters:
|
||||
// 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.
|
||||
func (client ObjectReplicationPoliciesClient) List(ctx context.Context, resourceGroupName string, accountName string) (result ObjectReplicationPolicies, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/ObjectReplicationPoliciesClient.List")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.ObjectReplicationPoliciesClient", "List", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.ListPreparer(ctx, resourceGroupName, accountName)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "List", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.ListSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "List", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.ListResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.ObjectReplicationPoliciesClient", "List", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// ListPreparer prepares the List request.
|
||||
func (client ObjectReplicationPoliciesClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// ListSender sends the List request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client ObjectReplicationPoliciesClient) ListSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// ListResponder handles the response to the List request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client ObjectReplicationPoliciesClient) ListResponder(resp *http.Response) (result ObjectReplicationPolicies, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
98
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/operations.go
сгенерированный
поставляемый
Normal file
98
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/operations.go
сгенерированный
поставляемый
Normal file
|
@ -0,0 +1,98 @@
|
|||
package storage
|
||||
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
//
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/Azure/go-autorest/autorest"
|
||||
"github.com/Azure/go-autorest/autorest/azure"
|
||||
"github.com/Azure/go-autorest/tracing"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// OperationsClient is the the Azure Storage Management API.
|
||||
type OperationsClient struct {
|
||||
BaseClient
|
||||
}
|
||||
|
||||
// NewOperationsClient creates an instance of the OperationsClient client.
|
||||
func NewOperationsClient(subscriptionID string) OperationsClient {
|
||||
return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this
|
||||
// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
|
||||
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
|
||||
return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// List lists all of the available Storage Rest API operations.
|
||||
func (client OperationsClient) List(ctx context.Context) (result OperationListResult, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
req, err := client.ListPreparer(ctx)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.OperationsClient", "List", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.ListSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.OperationsClient", "List", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.ListResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.OperationsClient", "List", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// ListPreparer prepares the List request.
|
||||
func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) {
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPath("/providers/Microsoft.Storage/operations"),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// ListSender sends the List request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
|
||||
}
|
||||
|
||||
// ListResponder handles the response to the List request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
411
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/privateendpointconnections.go
сгенерированный
поставляемый
Normal file
411
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/privateendpointconnections.go
сгенерированный
поставляемый
Normal file
|
@ -0,0 +1,411 @@
|
|||
package storage
|
||||
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
//
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/Azure/go-autorest/autorest"
|
||||
"github.com/Azure/go-autorest/autorest/azure"
|
||||
"github.com/Azure/go-autorest/autorest/validation"
|
||||
"github.com/Azure/go-autorest/tracing"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// PrivateEndpointConnectionsClient is the the Azure Storage Management API.
|
||||
type PrivateEndpointConnectionsClient struct {
|
||||
BaseClient
|
||||
}
|
||||
|
||||
// NewPrivateEndpointConnectionsClient creates an instance of the PrivateEndpointConnectionsClient client.
|
||||
func NewPrivateEndpointConnectionsClient(subscriptionID string) PrivateEndpointConnectionsClient {
|
||||
return NewPrivateEndpointConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewPrivateEndpointConnectionsClientWithBaseURI creates an instance of the PrivateEndpointConnectionsClient client
|
||||
// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
|
||||
// clouds, Azure stack).
|
||||
func NewPrivateEndpointConnectionsClientWithBaseURI(baseURI string, subscriptionID string) PrivateEndpointConnectionsClient {
|
||||
return PrivateEndpointConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// Delete deletes the specified private endpoint connection associated with the storage account.
|
||||
// Parameters:
|
||||
// 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.
|
||||
// privateEndpointConnectionName - the name of the private endpoint connection associated with the Azure
|
||||
// resource
|
||||
func (client PrivateEndpointConnectionsClient) Delete(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string) (result autorest.Response, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionsClient.Delete")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response != nil {
|
||||
sc = result.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.PrivateEndpointConnectionsClient", "Delete", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.DeletePreparer(ctx, resourceGroupName, accountName, privateEndpointConnectionName)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "Delete", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.DeleteSender(req)
|
||||
if err != nil {
|
||||
result.Response = resp
|
||||
err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "Delete", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.DeleteResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "Delete", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// DeletePreparer prepares the Delete request.
|
||||
func (client PrivateEndpointConnectionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"privateEndpointConnectionName": autorest.Encode("path", privateEndpointConnectionName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsDelete(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// DeleteSender sends the Delete request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client PrivateEndpointConnectionsClient) DeleteSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// DeleteResponder handles the response to the Delete request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client PrivateEndpointConnectionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
|
||||
autorest.ByClosing())
|
||||
result.Response = resp
|
||||
return
|
||||
}
|
||||
|
||||
// Get gets the specified private endpoint connection associated with the storage account.
|
||||
// Parameters:
|
||||
// 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.
|
||||
// privateEndpointConnectionName - the name of the private endpoint connection associated with the Azure
|
||||
// resource
|
||||
func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string) (result PrivateEndpointConnection, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionsClient.Get")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.PrivateEndpointConnectionsClient", "Get", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.GetPreparer(ctx, resourceGroupName, accountName, privateEndpointConnectionName)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "Get", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.GetSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "Get", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.GetResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "Get", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// GetPreparer prepares the Get request.
|
||||
func (client PrivateEndpointConnectionsClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"privateEndpointConnectionName": autorest.Encode("path", privateEndpointConnectionName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// GetSender sends the Get request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client PrivateEndpointConnectionsClient) GetSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// GetResponder handles the response to the Get request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client PrivateEndpointConnectionsClient) GetResponder(resp *http.Response) (result PrivateEndpointConnection, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
||||
|
||||
// List list all the private endpoint connections associated with the storage account.
|
||||
// Parameters:
|
||||
// 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.
|
||||
func (client PrivateEndpointConnectionsClient) List(ctx context.Context, resourceGroupName string, accountName string) (result PrivateEndpointConnectionListResult, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionsClient.List")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.PrivateEndpointConnectionsClient", "List", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.ListPreparer(ctx, resourceGroupName, accountName)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "List", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.ListSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "List", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.ListResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "List", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// ListPreparer prepares the List request.
|
||||
func (client PrivateEndpointConnectionsClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// ListSender sends the List request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client PrivateEndpointConnectionsClient) ListSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// ListResponder handles the response to the List request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client PrivateEndpointConnectionsClient) ListResponder(resp *http.Response) (result PrivateEndpointConnectionListResult, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
||||
|
||||
// Put update the state of specified private endpoint connection associated with the storage account.
|
||||
// Parameters:
|
||||
// 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.
|
||||
// privateEndpointConnectionName - the name of the private endpoint connection associated with the Azure
|
||||
// resource
|
||||
// properties - the private endpoint connection properties.
|
||||
func (client PrivateEndpointConnectionsClient) Put(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string, properties PrivateEndpointConnection) (result PrivateEndpointConnection, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionsClient.Put")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}},
|
||||
{TargetValue: properties,
|
||||
Constraints: []validation.Constraint{{Target: "properties.PrivateEndpointConnectionProperties", Name: validation.Null, Rule: false,
|
||||
Chain: []validation.Constraint{{Target: "properties.PrivateEndpointConnectionProperties.PrivateLinkServiceConnectionState", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil {
|
||||
return result, validation.NewError("storage.PrivateEndpointConnectionsClient", "Put", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.PutPreparer(ctx, resourceGroupName, accountName, privateEndpointConnectionName, properties)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "Put", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.PutSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "Put", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.PutResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.PrivateEndpointConnectionsClient", "Put", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// PutPreparer prepares the Put request.
|
||||
func (client PrivateEndpointConnectionsClient) PutPreparer(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string, properties PrivateEndpointConnection) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"privateEndpointConnectionName": autorest.Encode("path", privateEndpointConnectionName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsContentType("application/json; charset=utf-8"),
|
||||
autorest.AsPut(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", pathParameters),
|
||||
autorest.WithJSON(properties),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// PutSender sends the Put request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client PrivateEndpointConnectionsClient) PutSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// PutResponder handles the response to the Put request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client PrivateEndpointConnectionsClient) PutResponder(resp *http.Response) (result PrivateEndpointConnection, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
124
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/privatelinkresources.go
сгенерированный
поставляемый
Normal file
124
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/privatelinkresources.go
сгенерированный
поставляемый
Normal file
|
@ -0,0 +1,124 @@
|
|||
package storage
|
||||
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
//
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/Azure/go-autorest/autorest"
|
||||
"github.com/Azure/go-autorest/autorest/azure"
|
||||
"github.com/Azure/go-autorest/autorest/validation"
|
||||
"github.com/Azure/go-autorest/tracing"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// PrivateLinkResourcesClient is the the Azure Storage Management API.
|
||||
type PrivateLinkResourcesClient struct {
|
||||
BaseClient
|
||||
}
|
||||
|
||||
// NewPrivateLinkResourcesClient creates an instance of the PrivateLinkResourcesClient client.
|
||||
func NewPrivateLinkResourcesClient(subscriptionID string) PrivateLinkResourcesClient {
|
||||
return NewPrivateLinkResourcesClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewPrivateLinkResourcesClientWithBaseURI creates an instance of the PrivateLinkResourcesClient client using a custom
|
||||
// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
|
||||
// stack).
|
||||
func NewPrivateLinkResourcesClientWithBaseURI(baseURI string, subscriptionID string) PrivateLinkResourcesClient {
|
||||
return PrivateLinkResourcesClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// ListByStorageAccount gets the private link resources that need to be created for a storage account.
|
||||
// Parameters:
|
||||
// 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.
|
||||
func (client PrivateLinkResourcesClient) ListByStorageAccount(ctx context.Context, resourceGroupName string, accountName string) (result PrivateLinkResourceListResult, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/PrivateLinkResourcesClient.ListByStorageAccount")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.PrivateLinkResourcesClient", "ListByStorageAccount", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.ListByStorageAccountPreparer(ctx, resourceGroupName, accountName)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.PrivateLinkResourcesClient", "ListByStorageAccount", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.ListByStorageAccountSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.PrivateLinkResourcesClient", "ListByStorageAccount", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.ListByStorageAccountResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.PrivateLinkResourcesClient", "ListByStorageAccount", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// ListByStorageAccountPreparer prepares the ListByStorageAccount request.
|
||||
func (client PrivateLinkResourcesClient) ListByStorageAccountPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateLinkResources", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// ListByStorageAccountSender sends the ListByStorageAccount request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client PrivateLinkResourcesClient) ListByStorageAccountSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// ListByStorageAccountResponder handles the response to the ListByStorageAccount request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client PrivateLinkResourcesClient) ListByStorageAccountResponder(resp *http.Response) (result PrivateLinkResourceListResult, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
571
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/queue.go
сгенерированный
поставляемый
Normal file
571
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/queue.go
сгенерированный
поставляемый
Normal file
|
@ -0,0 +1,571 @@
|
|||
package storage
|
||||
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
//
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/Azure/go-autorest/autorest"
|
||||
"github.com/Azure/go-autorest/autorest/azure"
|
||||
"github.com/Azure/go-autorest/autorest/validation"
|
||||
"github.com/Azure/go-autorest/tracing"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// QueueClient is the the Azure Storage Management API.
|
||||
type QueueClient struct {
|
||||
BaseClient
|
||||
}
|
||||
|
||||
// NewQueueClient creates an instance of the QueueClient client.
|
||||
func NewQueueClient(subscriptionID string) QueueClient {
|
||||
return NewQueueClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewQueueClientWithBaseURI creates an instance of the QueueClient client using a custom endpoint. Use this when
|
||||
// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
|
||||
func NewQueueClientWithBaseURI(baseURI string, subscriptionID string) QueueClient {
|
||||
return QueueClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// Create creates a new queue with the specified queue name, under the specified account.
|
||||
// Parameters:
|
||||
// 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.
|
||||
// queueName - a queue name must be unique within a storage account and must be between 3 and 63 characters.The
|
||||
// name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an
|
||||
// alphanumeric character and it cannot have two consecutive dash(-) characters.
|
||||
// queue - queue properties and metadata to be created with
|
||||
func (client QueueClient) Create(ctx context.Context, resourceGroupName string, accountName string, queueName string, queue Queue) (result Queue, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/QueueClient.Create")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}},
|
||||
{TargetValue: queueName,
|
||||
Constraints: []validation.Constraint{{Target: "queueName", Name: validation.MaxLength, Rule: 63, Chain: nil},
|
||||
{Target: "queueName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.QueueClient", "Create", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.CreatePreparer(ctx, resourceGroupName, accountName, queueName, queue)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.QueueClient", "Create", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.CreateSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.QueueClient", "Create", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.CreateResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.QueueClient", "Create", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// CreatePreparer prepares the Create request.
|
||||
func (client QueueClient) CreatePreparer(ctx context.Context, resourceGroupName string, accountName string, queueName string, queue Queue) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"queueName": autorest.Encode("path", queueName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsContentType("application/json; charset=utf-8"),
|
||||
autorest.AsPut(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}", pathParameters),
|
||||
autorest.WithJSON(queue),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// CreateSender sends the Create request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client QueueClient) CreateSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// CreateResponder handles the response to the Create request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client QueueClient) CreateResponder(resp *http.Response) (result Queue, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
||||
|
||||
// Delete deletes the queue with the specified queue name, under the specified account if it exists.
|
||||
// Parameters:
|
||||
// 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.
|
||||
// queueName - a queue name must be unique within a storage account and must be between 3 and 63 characters.The
|
||||
// name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an
|
||||
// alphanumeric character and it cannot have two consecutive dash(-) characters.
|
||||
func (client QueueClient) Delete(ctx context.Context, resourceGroupName string, accountName string, queueName string) (result autorest.Response, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/QueueClient.Delete")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response != nil {
|
||||
sc = result.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}},
|
||||
{TargetValue: queueName,
|
||||
Constraints: []validation.Constraint{{Target: "queueName", Name: validation.MaxLength, Rule: 63, Chain: nil},
|
||||
{Target: "queueName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.QueueClient", "Delete", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.DeletePreparer(ctx, resourceGroupName, accountName, queueName)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.QueueClient", "Delete", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.DeleteSender(req)
|
||||
if err != nil {
|
||||
result.Response = resp
|
||||
err = autorest.NewErrorWithError(err, "storage.QueueClient", "Delete", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.DeleteResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.QueueClient", "Delete", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// DeletePreparer prepares the Delete request.
|
||||
func (client QueueClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, queueName string) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"queueName": autorest.Encode("path", queueName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsDelete(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// DeleteSender sends the Delete request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client QueueClient) DeleteSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// DeleteResponder handles the response to the Delete request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client QueueClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
|
||||
autorest.ByClosing())
|
||||
result.Response = resp
|
||||
return
|
||||
}
|
||||
|
||||
// Get gets the queue with the specified queue name, under the specified account if it exists.
|
||||
// Parameters:
|
||||
// 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.
|
||||
// queueName - a queue name must be unique within a storage account and must be between 3 and 63 characters.The
|
||||
// name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an
|
||||
// alphanumeric character and it cannot have two consecutive dash(-) characters.
|
||||
func (client QueueClient) Get(ctx context.Context, resourceGroupName string, accountName string, queueName string) (result Queue, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/QueueClient.Get")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}},
|
||||
{TargetValue: queueName,
|
||||
Constraints: []validation.Constraint{{Target: "queueName", Name: validation.MaxLength, Rule: 63, Chain: nil},
|
||||
{Target: "queueName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.QueueClient", "Get", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.GetPreparer(ctx, resourceGroupName, accountName, queueName)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.QueueClient", "Get", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.GetSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.QueueClient", "Get", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.GetResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.QueueClient", "Get", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// GetPreparer prepares the Get request.
|
||||
func (client QueueClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, queueName string) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"queueName": autorest.Encode("path", queueName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// GetSender sends the Get request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client QueueClient) GetSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// GetResponder handles the response to the Get request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client QueueClient) GetResponder(resp *http.Response) (result Queue, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
||||
|
||||
// List gets a list of all the queues under the specified storage account
|
||||
// Parameters:
|
||||
// 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.
|
||||
// maxpagesize - optional, a maximum number of queues that should be included in a list queue response
|
||||
// filter - optional, When specified, only the queues with a name starting with the given filter will be
|
||||
// listed.
|
||||
func (client QueueClient) List(ctx context.Context, resourceGroupName string, accountName string, maxpagesize string, filter string) (result ListQueueResourcePage, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/QueueClient.List")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.lqr.Response.Response != nil {
|
||||
sc = result.lqr.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.QueueClient", "List", err.Error())
|
||||
}
|
||||
|
||||
result.fn = client.listNextResults
|
||||
req, err := client.ListPreparer(ctx, resourceGroupName, accountName, maxpagesize, filter)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.QueueClient", "List", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.ListSender(req)
|
||||
if err != nil {
|
||||
result.lqr.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.QueueClient", "List", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result.lqr, err = client.ListResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.QueueClient", "List", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
if result.lqr.hasNextLink() && result.lqr.IsEmpty() {
|
||||
err = result.NextWithContext(ctx)
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// ListPreparer prepares the List request.
|
||||
func (client QueueClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string, maxpagesize string, filter string) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
if len(maxpagesize) > 0 {
|
||||
queryParameters["$maxpagesize"] = autorest.Encode("query", maxpagesize)
|
||||
}
|
||||
if len(filter) > 0 {
|
||||
queryParameters["$filter"] = autorest.Encode("query", filter)
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// ListSender sends the List request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client QueueClient) ListSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// ListResponder handles the response to the List request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client QueueClient) ListResponder(resp *http.Response) (result ListQueueResource, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
||||
|
||||
// listNextResults retrieves the next set of results, if any.
|
||||
func (client QueueClient) listNextResults(ctx context.Context, lastResults ListQueueResource) (result ListQueueResource, err error) {
|
||||
req, err := lastResults.listQueueResourcePreparer(ctx)
|
||||
if err != nil {
|
||||
return result, autorest.NewErrorWithError(err, "storage.QueueClient", "listNextResults", nil, "Failure preparing next results request")
|
||||
}
|
||||
if req == nil {
|
||||
return
|
||||
}
|
||||
resp, err := client.ListSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return result, autorest.NewErrorWithError(err, "storage.QueueClient", "listNextResults", resp, "Failure sending next results request")
|
||||
}
|
||||
result, err = client.ListResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.QueueClient", "listNextResults", resp, "Failure responding to next results request")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// ListComplete enumerates all values, automatically crossing page boundaries as required.
|
||||
func (client QueueClient) ListComplete(ctx context.Context, resourceGroupName string, accountName string, maxpagesize string, filter string) (result ListQueueResourceIterator, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/QueueClient.List")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response().Response.Response != nil {
|
||||
sc = result.page.Response().Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
result.page, err = client.List(ctx, resourceGroupName, accountName, maxpagesize, filter)
|
||||
return
|
||||
}
|
||||
|
||||
// Update creates a new queue with the specified queue name, under the specified account.
|
||||
// Parameters:
|
||||
// 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.
|
||||
// queueName - a queue name must be unique within a storage account and must be between 3 and 63 characters.The
|
||||
// name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an
|
||||
// alphanumeric character and it cannot have two consecutive dash(-) characters.
|
||||
// queue - queue properties and metadata to be created with
|
||||
func (client QueueClient) Update(ctx context.Context, resourceGroupName string, accountName string, queueName string, queue Queue) (result Queue, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/QueueClient.Update")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}},
|
||||
{TargetValue: queueName,
|
||||
Constraints: []validation.Constraint{{Target: "queueName", Name: validation.MaxLength, Rule: 63, Chain: nil},
|
||||
{Target: "queueName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.QueueClient", "Update", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.UpdatePreparer(ctx, resourceGroupName, accountName, queueName, queue)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.QueueClient", "Update", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.UpdateSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.QueueClient", "Update", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.UpdateResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.QueueClient", "Update", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// UpdatePreparer prepares the Update request.
|
||||
func (client QueueClient) UpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, queueName string, queue Queue) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"queueName": autorest.Encode("path", queueName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsContentType("application/json; charset=utf-8"),
|
||||
autorest.AsPatch(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}", pathParameters),
|
||||
autorest.WithJSON(queue),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// UpdateSender sends the Update request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client QueueClient) UpdateSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// UpdateResponder handles the response to the Update request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client QueueClient) UpdateResponder(resp *http.Response) (result Queue, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
313
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/queueservices.go
сгенерированный
поставляемый
Normal file
313
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/queueservices.go
сгенерированный
поставляемый
Normal file
|
@ -0,0 +1,313 @@
|
|||
package storage
|
||||
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
//
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/Azure/go-autorest/autorest"
|
||||
"github.com/Azure/go-autorest/autorest/azure"
|
||||
"github.com/Azure/go-autorest/autorest/validation"
|
||||
"github.com/Azure/go-autorest/tracing"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// QueueServicesClient is the the Azure Storage Management API.
|
||||
type QueueServicesClient struct {
|
||||
BaseClient
|
||||
}
|
||||
|
||||
// NewQueueServicesClient creates an instance of the QueueServicesClient client.
|
||||
func NewQueueServicesClient(subscriptionID string) QueueServicesClient {
|
||||
return NewQueueServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewQueueServicesClientWithBaseURI creates an instance of the QueueServicesClient client using a custom endpoint.
|
||||
// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
|
||||
func NewQueueServicesClientWithBaseURI(baseURI string, subscriptionID string) QueueServicesClient {
|
||||
return QueueServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// GetServiceProperties gets the properties of a storage account’s Queue service, including properties for Storage
|
||||
// Analytics and CORS (Cross-Origin Resource Sharing) rules.
|
||||
// Parameters:
|
||||
// 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.
|
||||
func (client QueueServicesClient) GetServiceProperties(ctx context.Context, resourceGroupName string, accountName string) (result QueueServiceProperties, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/QueueServicesClient.GetServiceProperties")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.QueueServicesClient", "GetServiceProperties", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.GetServicePropertiesPreparer(ctx, resourceGroupName, accountName)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.QueueServicesClient", "GetServiceProperties", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.GetServicePropertiesSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.QueueServicesClient", "GetServiceProperties", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.GetServicePropertiesResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.QueueServicesClient", "GetServiceProperties", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// GetServicePropertiesPreparer prepares the GetServiceProperties request.
|
||||
func (client QueueServicesClient) GetServicePropertiesPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"queueServiceName": autorest.Encode("path", "default"),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/{queueServiceName}", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// GetServicePropertiesSender sends the GetServiceProperties request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client QueueServicesClient) GetServicePropertiesSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// GetServicePropertiesResponder handles the response to the GetServiceProperties request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client QueueServicesClient) GetServicePropertiesResponder(resp *http.Response) (result QueueServiceProperties, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
||||
|
||||
// List list all queue services for the storage account
|
||||
// Parameters:
|
||||
// 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.
|
||||
func (client QueueServicesClient) List(ctx context.Context, resourceGroupName string, accountName string) (result ListQueueServices, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/QueueServicesClient.List")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.QueueServicesClient", "List", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.ListPreparer(ctx, resourceGroupName, accountName)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.QueueServicesClient", "List", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.ListSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.QueueServicesClient", "List", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.ListResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.QueueServicesClient", "List", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// ListPreparer prepares the List request.
|
||||
func (client QueueServicesClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// ListSender sends the List request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client QueueServicesClient) ListSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// ListResponder handles the response to the List request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client QueueServicesClient) ListResponder(resp *http.Response) (result ListQueueServices, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
||||
|
||||
// SetServiceProperties sets the properties of a storage account’s Queue service, including properties for Storage
|
||||
// Analytics and CORS (Cross-Origin Resource Sharing) rules.
|
||||
// Parameters:
|
||||
// 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.
|
||||
// parameters - the properties of a storage account’s Queue service, only properties for Storage Analytics and
|
||||
// CORS (Cross-Origin Resource Sharing) rules can be specified.
|
||||
func (client QueueServicesClient) SetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, parameters QueueServiceProperties) (result QueueServiceProperties, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/QueueServicesClient.SetServiceProperties")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.QueueServicesClient", "SetServiceProperties", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.SetServicePropertiesPreparer(ctx, resourceGroupName, accountName, parameters)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.QueueServicesClient", "SetServiceProperties", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.SetServicePropertiesSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.QueueServicesClient", "SetServiceProperties", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.SetServicePropertiesResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.QueueServicesClient", "SetServiceProperties", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// SetServicePropertiesPreparer prepares the SetServiceProperties request.
|
||||
func (client QueueServicesClient) SetServicePropertiesPreparer(ctx context.Context, resourceGroupName string, accountName string, parameters QueueServiceProperties) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"queueServiceName": autorest.Encode("path", "default"),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsContentType("application/json; charset=utf-8"),
|
||||
autorest.AsPut(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/{queueServiceName}", pathParameters),
|
||||
autorest.WithJSON(parameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// SetServicePropertiesSender sends the SetServiceProperties request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client QueueServicesClient) SetServicePropertiesSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// SetServicePropertiesResponder handles the response to the SetServiceProperties request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client QueueServicesClient) SetServicePropertiesResponder(resp *http.Response) (result QueueServiceProperties, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
109
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/skus.go
сгенерированный
поставляемый
Normal file
109
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/skus.go
сгенерированный
поставляемый
Normal file
|
@ -0,0 +1,109 @@
|
|||
package storage
|
||||
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
//
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/Azure/go-autorest/autorest"
|
||||
"github.com/Azure/go-autorest/autorest/azure"
|
||||
"github.com/Azure/go-autorest/autorest/validation"
|
||||
"github.com/Azure/go-autorest/tracing"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// SkusClient is the the Azure Storage Management API.
|
||||
type SkusClient struct {
|
||||
BaseClient
|
||||
}
|
||||
|
||||
// NewSkusClient creates an instance of the SkusClient client.
|
||||
func NewSkusClient(subscriptionID string) SkusClient {
|
||||
return NewSkusClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewSkusClientWithBaseURI creates an instance of the SkusClient client using a custom endpoint. Use this when
|
||||
// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
|
||||
func NewSkusClientWithBaseURI(baseURI string, subscriptionID string) SkusClient {
|
||||
return SkusClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// List lists the available SKUs supported by Microsoft.Storage for given subscription.
|
||||
func (client SkusClient) List(ctx context.Context) (result SkuListResult, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/SkusClient.List")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.SkusClient", "List", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.ListPreparer(ctx)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.SkusClient", "List", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.ListSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.SkusClient", "List", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.ListResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.SkusClient", "List", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// ListPreparer prepares the List request.
|
||||
func (client SkusClient) ListPreparer(ctx context.Context) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Storage/skus", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// ListSender sends the List request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client SkusClient) ListSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// ListResponder handles the response to the List request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client SkusClient) ListResponder(resp *http.Response) (result SkuListResult, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
556
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/table.go
сгенерированный
поставляемый
Normal file
556
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/table.go
сгенерированный
поставляемый
Normal file
|
@ -0,0 +1,556 @@
|
|||
package storage
|
||||
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
//
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/Azure/go-autorest/autorest"
|
||||
"github.com/Azure/go-autorest/autorest/azure"
|
||||
"github.com/Azure/go-autorest/autorest/validation"
|
||||
"github.com/Azure/go-autorest/tracing"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// TableClient is the the Azure Storage Management API.
|
||||
type TableClient struct {
|
||||
BaseClient
|
||||
}
|
||||
|
||||
// NewTableClient creates an instance of the TableClient client.
|
||||
func NewTableClient(subscriptionID string) TableClient {
|
||||
return NewTableClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewTableClientWithBaseURI creates an instance of the TableClient client using a custom endpoint. Use this when
|
||||
// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
|
||||
func NewTableClientWithBaseURI(baseURI string, subscriptionID string) TableClient {
|
||||
return TableClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// Create creates a new table with the specified table name, under the specified account.
|
||||
// Parameters:
|
||||
// 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.
|
||||
// tableName - a table name must be unique within a storage account and must be between 3 and 63 characters.The
|
||||
// name must comprise of only alphanumeric characters and it cannot begin with a numeric character.
|
||||
func (client TableClient) Create(ctx context.Context, resourceGroupName string, accountName string, tableName string) (result Table, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/TableClient.Create")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}},
|
||||
{TargetValue: tableName,
|
||||
Constraints: []validation.Constraint{{Target: "tableName", Name: validation.MaxLength, Rule: 63, Chain: nil},
|
||||
{Target: "tableName", Name: validation.MinLength, Rule: 3, Chain: nil},
|
||||
{Target: "tableName", Name: validation.Pattern, Rule: `^[A-Za-z][A-Za-z0-9]{2,62}$`, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.TableClient", "Create", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.CreatePreparer(ctx, resourceGroupName, accountName, tableName)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.TableClient", "Create", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.CreateSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.TableClient", "Create", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.CreateResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.TableClient", "Create", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// CreatePreparer prepares the Create request.
|
||||
func (client TableClient) CreatePreparer(ctx context.Context, resourceGroupName string, accountName string, tableName string) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
"tableName": autorest.Encode("path", tableName),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsPut(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// CreateSender sends the Create request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client TableClient) CreateSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// CreateResponder handles the response to the Create request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client TableClient) CreateResponder(resp *http.Response) (result Table, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
||||
|
||||
// Delete deletes the table with the specified table name, under the specified account if it exists.
|
||||
// Parameters:
|
||||
// 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.
|
||||
// tableName - a table name must be unique within a storage account and must be between 3 and 63 characters.The
|
||||
// name must comprise of only alphanumeric characters and it cannot begin with a numeric character.
|
||||
func (client TableClient) Delete(ctx context.Context, resourceGroupName string, accountName string, tableName string) (result autorest.Response, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/TableClient.Delete")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response != nil {
|
||||
sc = result.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}},
|
||||
{TargetValue: tableName,
|
||||
Constraints: []validation.Constraint{{Target: "tableName", Name: validation.MaxLength, Rule: 63, Chain: nil},
|
||||
{Target: "tableName", Name: validation.MinLength, Rule: 3, Chain: nil},
|
||||
{Target: "tableName", Name: validation.Pattern, Rule: `^[A-Za-z][A-Za-z0-9]{2,62}$`, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.TableClient", "Delete", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.DeletePreparer(ctx, resourceGroupName, accountName, tableName)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.TableClient", "Delete", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.DeleteSender(req)
|
||||
if err != nil {
|
||||
result.Response = resp
|
||||
err = autorest.NewErrorWithError(err, "storage.TableClient", "Delete", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.DeleteResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.TableClient", "Delete", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// DeletePreparer prepares the Delete request.
|
||||
func (client TableClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, tableName string) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
"tableName": autorest.Encode("path", tableName),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsDelete(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// DeleteSender sends the Delete request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client TableClient) DeleteSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// DeleteResponder handles the response to the Delete request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client TableClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
|
||||
autorest.ByClosing())
|
||||
result.Response = resp
|
||||
return
|
||||
}
|
||||
|
||||
// Get gets the table with the specified table name, under the specified account if it exists.
|
||||
// Parameters:
|
||||
// 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.
|
||||
// tableName - a table name must be unique within a storage account and must be between 3 and 63 characters.The
|
||||
// name must comprise of only alphanumeric characters and it cannot begin with a numeric character.
|
||||
func (client TableClient) Get(ctx context.Context, resourceGroupName string, accountName string, tableName string) (result Table, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/TableClient.Get")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}},
|
||||
{TargetValue: tableName,
|
||||
Constraints: []validation.Constraint{{Target: "tableName", Name: validation.MaxLength, Rule: 63, Chain: nil},
|
||||
{Target: "tableName", Name: validation.MinLength, Rule: 3, Chain: nil},
|
||||
{Target: "tableName", Name: validation.Pattern, Rule: `^[A-Za-z][A-Za-z0-9]{2,62}$`, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.TableClient", "Get", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.GetPreparer(ctx, resourceGroupName, accountName, tableName)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.TableClient", "Get", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.GetSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.TableClient", "Get", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.GetResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.TableClient", "Get", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// GetPreparer prepares the Get request.
|
||||
func (client TableClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, tableName string) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
"tableName": autorest.Encode("path", tableName),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// GetSender sends the Get request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client TableClient) GetSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// GetResponder handles the response to the Get request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client TableClient) GetResponder(resp *http.Response) (result Table, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
||||
|
||||
// List gets a list of all the tables under the specified storage account
|
||||
// Parameters:
|
||||
// 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.
|
||||
func (client TableClient) List(ctx context.Context, resourceGroupName string, accountName string) (result ListTableResourcePage, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/TableClient.List")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.ltr.Response.Response != nil {
|
||||
sc = result.ltr.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.TableClient", "List", err.Error())
|
||||
}
|
||||
|
||||
result.fn = client.listNextResults
|
||||
req, err := client.ListPreparer(ctx, resourceGroupName, accountName)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.TableClient", "List", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.ListSender(req)
|
||||
if err != nil {
|
||||
result.ltr.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.TableClient", "List", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result.ltr, err = client.ListResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.TableClient", "List", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
if result.ltr.hasNextLink() && result.ltr.IsEmpty() {
|
||||
err = result.NextWithContext(ctx)
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// ListPreparer prepares the List request.
|
||||
func (client TableClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// ListSender sends the List request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client TableClient) ListSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// ListResponder handles the response to the List request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client TableClient) ListResponder(resp *http.Response) (result ListTableResource, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
||||
|
||||
// listNextResults retrieves the next set of results, if any.
|
||||
func (client TableClient) listNextResults(ctx context.Context, lastResults ListTableResource) (result ListTableResource, err error) {
|
||||
req, err := lastResults.listTableResourcePreparer(ctx)
|
||||
if err != nil {
|
||||
return result, autorest.NewErrorWithError(err, "storage.TableClient", "listNextResults", nil, "Failure preparing next results request")
|
||||
}
|
||||
if req == nil {
|
||||
return
|
||||
}
|
||||
resp, err := client.ListSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return result, autorest.NewErrorWithError(err, "storage.TableClient", "listNextResults", resp, "Failure sending next results request")
|
||||
}
|
||||
result, err = client.ListResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.TableClient", "listNextResults", resp, "Failure responding to next results request")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// ListComplete enumerates all values, automatically crossing page boundaries as required.
|
||||
func (client TableClient) ListComplete(ctx context.Context, resourceGroupName string, accountName string) (result ListTableResourceIterator, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/TableClient.List")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response().Response.Response != nil {
|
||||
sc = result.page.Response().Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
result.page, err = client.List(ctx, resourceGroupName, accountName)
|
||||
return
|
||||
}
|
||||
|
||||
// Update creates a new table with the specified table name, under the specified account.
|
||||
// Parameters:
|
||||
// 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.
|
||||
// tableName - a table name must be unique within a storage account and must be between 3 and 63 characters.The
|
||||
// name must comprise of only alphanumeric characters and it cannot begin with a numeric character.
|
||||
func (client TableClient) Update(ctx context.Context, resourceGroupName string, accountName string, tableName string) (result Table, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/TableClient.Update")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}},
|
||||
{TargetValue: tableName,
|
||||
Constraints: []validation.Constraint{{Target: "tableName", Name: validation.MaxLength, Rule: 63, Chain: nil},
|
||||
{Target: "tableName", Name: validation.MinLength, Rule: 3, Chain: nil},
|
||||
{Target: "tableName", Name: validation.Pattern, Rule: `^[A-Za-z][A-Za-z0-9]{2,62}$`, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.TableClient", "Update", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.UpdatePreparer(ctx, resourceGroupName, accountName, tableName)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.TableClient", "Update", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.UpdateSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.TableClient", "Update", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.UpdateResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.TableClient", "Update", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// UpdatePreparer prepares the Update request.
|
||||
func (client TableClient) UpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, tableName string) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
"tableName": autorest.Encode("path", tableName),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsPatch(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// UpdateSender sends the Update request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client TableClient) UpdateSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// UpdateResponder handles the response to the Update request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client TableClient) UpdateResponder(resp *http.Response) (result Table, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
313
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/tableservices.go
сгенерированный
поставляемый
Normal file
313
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/tableservices.go
сгенерированный
поставляемый
Normal file
|
@ -0,0 +1,313 @@
|
|||
package storage
|
||||
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
//
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/Azure/go-autorest/autorest"
|
||||
"github.com/Azure/go-autorest/autorest/azure"
|
||||
"github.com/Azure/go-autorest/autorest/validation"
|
||||
"github.com/Azure/go-autorest/tracing"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// TableServicesClient is the the Azure Storage Management API.
|
||||
type TableServicesClient struct {
|
||||
BaseClient
|
||||
}
|
||||
|
||||
// NewTableServicesClient creates an instance of the TableServicesClient client.
|
||||
func NewTableServicesClient(subscriptionID string) TableServicesClient {
|
||||
return NewTableServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewTableServicesClientWithBaseURI creates an instance of the TableServicesClient client using a custom endpoint.
|
||||
// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
|
||||
func NewTableServicesClientWithBaseURI(baseURI string, subscriptionID string) TableServicesClient {
|
||||
return TableServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// GetServiceProperties gets the properties of a storage account’s Table service, including properties for Storage
|
||||
// Analytics and CORS (Cross-Origin Resource Sharing) rules.
|
||||
// Parameters:
|
||||
// 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.
|
||||
func (client TableServicesClient) GetServiceProperties(ctx context.Context, resourceGroupName string, accountName string) (result TableServiceProperties, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/TableServicesClient.GetServiceProperties")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.TableServicesClient", "GetServiceProperties", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.GetServicePropertiesPreparer(ctx, resourceGroupName, accountName)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.TableServicesClient", "GetServiceProperties", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.GetServicePropertiesSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.TableServicesClient", "GetServiceProperties", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.GetServicePropertiesResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.TableServicesClient", "GetServiceProperties", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// GetServicePropertiesPreparer prepares the GetServiceProperties request.
|
||||
func (client TableServicesClient) GetServicePropertiesPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
"tableServiceName": autorest.Encode("path", "default"),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/{tableServiceName}", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// GetServicePropertiesSender sends the GetServiceProperties request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client TableServicesClient) GetServicePropertiesSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// GetServicePropertiesResponder handles the response to the GetServiceProperties request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client TableServicesClient) GetServicePropertiesResponder(resp *http.Response) (result TableServiceProperties, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
||||
|
||||
// List list all table services for the storage account.
|
||||
// Parameters:
|
||||
// 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.
|
||||
func (client TableServicesClient) List(ctx context.Context, resourceGroupName string, accountName string) (result ListTableServices, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/TableServicesClient.List")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.TableServicesClient", "List", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.ListPreparer(ctx, resourceGroupName, accountName)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.TableServicesClient", "List", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.ListSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.TableServicesClient", "List", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.ListResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.TableServicesClient", "List", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// ListPreparer prepares the List request.
|
||||
func (client TableServicesClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// ListSender sends the List request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client TableServicesClient) ListSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// ListResponder handles the response to the List request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client TableServicesClient) ListResponder(resp *http.Response) (result ListTableServices, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
||||
|
||||
// SetServiceProperties sets the properties of a storage account’s Table service, including properties for Storage
|
||||
// Analytics and CORS (Cross-Origin Resource Sharing) rules.
|
||||
// Parameters:
|
||||
// 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.
|
||||
// parameters - the properties of a storage account’s Table service, only properties for Storage Analytics and
|
||||
// CORS (Cross-Origin Resource Sharing) rules can be specified.
|
||||
func (client TableServicesClient) SetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, parameters TableServiceProperties) (result TableServiceProperties, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/TableServicesClient.SetServiceProperties")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
|
||||
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}},
|
||||
{TargetValue: accountName,
|
||||
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}},
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.TableServicesClient", "SetServiceProperties", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.SetServicePropertiesPreparer(ctx, resourceGroupName, accountName, parameters)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.TableServicesClient", "SetServiceProperties", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.SetServicePropertiesSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.TableServicesClient", "SetServiceProperties", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.SetServicePropertiesResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.TableServicesClient", "SetServiceProperties", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// SetServicePropertiesPreparer prepares the SetServiceProperties request.
|
||||
func (client TableServicesClient) SetServicePropertiesPreparer(ctx context.Context, resourceGroupName string, accountName string, parameters TableServiceProperties) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
"tableServiceName": autorest.Encode("path", "default"),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsContentType("application/json; charset=utf-8"),
|
||||
autorest.AsPut(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/{tableServiceName}", pathParameters),
|
||||
autorest.WithJSON(parameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// SetServicePropertiesSender sends the SetServiceProperties request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client TableServicesClient) SetServicePropertiesSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// SetServicePropertiesResponder handles the response to the SetServiceProperties request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client TableServicesClient) SetServicePropertiesResponder(resp *http.Response) (result TableServiceProperties, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
112
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/usages.go
сгенерированный
поставляемый
Normal file
112
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/usages.go
сгенерированный
поставляемый
Normal file
|
@ -0,0 +1,112 @@
|
|||
package storage
|
||||
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
//
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/Azure/go-autorest/autorest"
|
||||
"github.com/Azure/go-autorest/autorest/azure"
|
||||
"github.com/Azure/go-autorest/autorest/validation"
|
||||
"github.com/Azure/go-autorest/tracing"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// UsagesClient is the the Azure Storage Management API.
|
||||
type UsagesClient struct {
|
||||
BaseClient
|
||||
}
|
||||
|
||||
// NewUsagesClient creates an instance of the UsagesClient client.
|
||||
func NewUsagesClient(subscriptionID string) UsagesClient {
|
||||
return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when
|
||||
// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
|
||||
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient {
|
||||
return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// ListByLocation gets the current usage count and the limit for the resources of the location under the subscription.
|
||||
// Parameters:
|
||||
// location - the location of the Azure Storage resource.
|
||||
func (client UsagesClient) ListByLocation(ctx context.Context, location string) (result UsageListResult, err error) {
|
||||
if tracing.IsEnabled() {
|
||||
ctx = tracing.StartSpan(ctx, fqdn+"/UsagesClient.ListByLocation")
|
||||
defer func() {
|
||||
sc := -1
|
||||
if result.Response.Response != nil {
|
||||
sc = result.Response.Response.StatusCode
|
||||
}
|
||||
tracing.EndSpan(ctx, sc, err)
|
||||
}()
|
||||
}
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: client.SubscriptionID,
|
||||
Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewError("storage.UsagesClient", "ListByLocation", err.Error())
|
||||
}
|
||||
|
||||
req, err := client.ListByLocationPreparer(ctx, location)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.UsagesClient", "ListByLocation", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.ListByLocationSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, "storage.UsagesClient", "ListByLocation", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.ListByLocationResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "storage.UsagesClient", "ListByLocation", resp, "Failure responding to request")
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// ListByLocationPreparer prepares the ListByLocation request.
|
||||
func (client UsagesClient) ListByLocationPreparer(ctx context.Context, location string) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"location": autorest.Encode("path", location),
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2019-06-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Storage/locations/{location}/usages", pathParameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare((&http.Request{}).WithContext(ctx))
|
||||
}
|
||||
|
||||
// ListByLocationSender sends the ListByLocation request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client UsagesClient) ListByLocationSender(req *http.Request) (*http.Response, error) {
|
||||
return client.Send(req, azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// ListByLocationResponder handles the response to the ListByLocation request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client UsagesClient) ListByLocationResponder(resp *http.Response) (result UsageListResult, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
}
|
19
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/version.go
сгенерированный
поставляемый
Normal file
19
vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage/version.go
сгенерированный
поставляемый
Normal file
|
@ -0,0 +1,19 @@
|
|||
package storage
|
||||
|
||||
import "github.com/Azure/azure-sdk-for-go/version"
|
||||
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
//
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
// UserAgent returns the UserAgent string to use when sending http.Requests.
|
||||
func UserAgent() string {
|
||||
return "Azure-SDK-For-Go/" + Version() + " storage/2019-06-01"
|
||||
}
|
||||
|
||||
// Version returns the semantic version (see http://semver.org) of the client.
|
||||
func Version() string {
|
||||
return version.Number
|
||||
}
|
|
@ -14,7 +14,7 @@ The `github.com/Azure/azure-sdk-for-go/storage` package is used to manage
|
|||
resources: containers, blobs, tables, and queues.
|
||||
|
||||
To manage storage *accounts* use Azure Resource Manager (ARM) via the packages
|
||||
at [github.com/Azure/azure-sdk-for-go/services/storage](https://github.com/Azure/azure-sdk-for-go/tree/master/services/storage).
|
||||
at [github.com/Azure/azure-sdk-for-go/services/storage](https://github.com/Azure/azure-sdk-for-go/tree/main/services/storage).
|
||||
|
||||
This package also supports the [Azure Storage
|
||||
Emulator](https://azure.microsoft.com/documentation/articles/storage-use-emulator/)
|
||||
|
|
|
@ -4,4 +4,4 @@ package version
|
|||
// Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
|
||||
// Number contains the semantic version of this SDK.
|
||||
const Number = "v54.3.0"
|
||||
const Number = "v56.1.0"
|
||||
|
|
|
@ -6,7 +6,7 @@ cloud.google.com/go/compute/metadata
|
|||
# github.com/AlekSi/gocov-xml v0.0.0-20190121064608-3a14fb1c4737
|
||||
## explicit
|
||||
github.com/AlekSi/gocov-xml
|
||||
# github.com/Azure/azure-sdk-for-go v54.3.0+incompatible
|
||||
# github.com/Azure/azure-sdk-for-go v56.1.0+incompatible
|
||||
## explicit
|
||||
github.com/Azure/azure-sdk-for-go/profiles/latest/dns/mgmt/dns
|
||||
github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-10-01/compute
|
||||
|
@ -28,6 +28,7 @@ github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-05-01/resources
|
|||
github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-06-01/subscriptions
|
||||
github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-07-01/features
|
||||
github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-04-01/storage
|
||||
github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage
|
||||
github.com/Azure/azure-sdk-for-go/storage
|
||||
github.com/Azure/azure-sdk-for-go/version
|
||||
# github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78
|
||||
|
|
Загрузка…
Ссылка в новой задаче